Merge commit '1276d1e1a1b128f7093a3021d3f6bc27afa80d23' into amd64
[dragonfly.git] / contrib / file / magic / Magdir / c-lang
1 #------------------------------------------------------------------------------
2 # c-lang:  file(1) magic for C programs (or REXX)
3 #
4
5 # XPM icons (Greg Roelofs, newt@uchicago.edu)
6 # if you uncomment "/*" for C/REXX below, also uncomment this entry
7 #0      string          /*\ XPM\ */     X pixmap image data
8 #!:mime image/x-xpmi
9
10 # 3DS (3d Studio files) Conflicts with diff output 0x3d '='
11 #16     beshort         0x3d3d          image/x-3ds
12
13 # this first will upset you if you're a PL/1 shop...
14 # in which case rm it; ascmagic will catch real C programs
15 #0      search/1        /*              C or REXX program text
16 #0      search/1        //              C++ program text
17
18 # From: Mikhail Teterin <mi@aldan.algebra.com> 
19 0       string          cscope          cscope reference data
20 >7      string          x               version %.2s
21 # We skip the path here, because it is often long (so file will
22 # truncate it) and mostly redundant.
23 # The inverted index functionality was added some time betwen
24 # versions 11 and 15, so look for -q if version is above 14:
25 >7      string          >14
26 >>10    search/100      \ -q\           with inverted index
27 >10     search/100      \ -c\           text (non-compressed)