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