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