c-lang 1.0 KB

123456789101112131415161718192021222324252627
  1. #------------------------------------------------------------------------------
  2. # c-lang: file(1) magic for C programs (or REXX)
  3. #
  4. # XPM icons (Greg Roelofs, newt@uchicago.edu)
  5. # if you uncomment "/*" for C/REXX below, also uncomment this entry
  6. #0 string /*\ XPM\ */ X pixmap image data
  7. #!:mime image/x-xpmi
  8. # 3DS (3d Studio files) Conflicts with diff output 0x3d '='
  9. #16 beshort 0x3d3d image/x-3ds
  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 search/1 /* C or REXX program text
  13. #0 search/1 // C++ program text
  14. # From: Mikhail Teterin <mi@aldan.algebra.com>
  15. 0 string cscope cscope reference data
  16. >7 string x version %.2s
  17. # We skip the path here, because it is often long (so file will
  18. # truncate it) and mostly redundant.
  19. # The inverted index functionality was added some time betwen
  20. # versions 11 and 15, so look for -q if version is above 14:
  21. >7 string >14
  22. >>10 search/100 \ -q\ with inverted index
  23. >10 search/100 \ -c\ text (non-compressed)