c-lang 1.1 KB

1234567891011121314151617181920212223242526272829
  1. #------------------------------------------------------------------------------
  2. # $File: c-lang,v 1.14 2009/09/19 16:28:08 christos Exp $
  3. # c-lang: file(1) magic for C programs (or REXX)
  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. # 3DS (3d Studio files) Conflicts with diff output 0x3d '='
  10. #16 beshort 0x3d3d image/x-3ds
  11. # this first will upset you if you're a PL/1 shop...
  12. # in which case rm it; ascmagic will catch real C programs
  13. #0 search/1 /* C or REXX program text
  14. #0 search/1 // 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 search/100 \ -q\ with inverted index
  24. >10 search/100 \ -c\ text (non-compressed)