File: c-lang

package info (click to toggle)
file 4.17-5etch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 3,088 kB
  • ctags: 706
  • sloc: sh: 10,600; ansic: 6,354; makefile: 345; perl: 46; python: 24
file content (24 lines) | stat: -rw-r--r-- 912 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

#------------------------------------------------------------------------------
# c-lang:  file(1) magic for C programs (or REXX)
#

# XPM icons (Greg Roelofs, newt@uchicago.edu)
# if you uncomment "/*" for C/REXX below, also uncomment this entry
#0	string		/*\ XPM\ */	X pixmap image data

# 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

# 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)