summaryrefslogtreecommitdiffstats
path: root/contrib/file/Magdir/c-lang
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2004-08-09 08:45:41 +0000
committerobrien <obrien@FreeBSD.org>2004-08-09 08:45:41 +0000
commitbda6cdf5897e5ebed7279aca3ea3387bddcb19b0 (patch)
treefa3b953aed2a4bff370cfcd813015e532403552e /contrib/file/Magdir/c-lang
parentf35360c37203a2efe4238a8ec8dd5c45cde0820b (diff)
downloadFreeBSD-src-bda6cdf5897e5ebed7279aca3ea3387bddcb19b0.zip
FreeBSD-src-bda6cdf5897e5ebed7279aca3ea3387bddcb19b0.tar.gz
Virgin import of Christos Zoulas's FILE 4.10.
*- file is now broken into a library containing and processing the magic and a consumer binary.
Diffstat (limited to 'contrib/file/Magdir/c-lang')
-rw-r--r--contrib/file/Magdir/c-lang13
1 files changed, 12 insertions, 1 deletions
diff --git a/contrib/file/Magdir/c-lang b/contrib/file/Magdir/c-lang
index 1b01475..1dcf636 100644
--- a/contrib/file/Magdir/c-lang
+++ b/contrib/file/Magdir/c-lang
@@ -10,4 +10,15 @@
# this first will upset you if you're a PL/1 shop...
# in which case rm it; ascmagic will catch real C programs
#0 string /* C or REXX program text
-0 string // C++ program text
+#0 string // C++ program text
+
+# From: Mikhail Teterin <mi@aldan.algebra.com>
+0 string cscope cscope reference data
+>7 string x version %.2s
+# We skip the path here, because it is often long (so file will
+# truncate it) and mostly redundant.
+# The inverted index functionality was added some time betwen
+# versions 11 and 15, so look for -q if version is above 14:
+>7 string >14
+>>10 regex .+\ -q\ with inverted index
+>10 regex .+\ -c\ text (non-compressed)
OpenPOWER on IntegriCloud