Update to file 4.13. Put the contrib files into contrib/file-4 instead
[dragonfly.git] / contrib / file-4 / magic / Magdir / c-lang
blob1dcf63680faed54d9625b50a2e9b6c8dc72b7982
2 #------------------------------------------------------------------------------
3 # c-lang:  file(1) magic for C programs (or REXX)
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
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
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)