[BACK]Return to names.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / file

Diff for /src/usr.bin/file/Attic/names.h between version 1.2 and 1.3

version 1.2, 1996/06/26 05:32:59 version 1.3, 1997/02/09 23:58:29
Line 1 
Line 1 
 /* * $OpenBSD$*/  /*      $OpenBSD$       */
   
 /*  /*
  * Names.h - names and types used by ascmagic in file(1).   * Names.h - names and types used by ascmagic in file(1).
  * These tokens are here because they can appear anywhere in   * These tokens are here because they can appear anywhere in
Line 10 
Line 11 
  * Written by Ian F. Darwin.   * Written by Ian F. Darwin.
  *   *
  * See LEGAL.NOTICE   * See LEGAL.NOTICE
  *  
  */   */
   
 /* these types are used to index the table 'types': keep em in sync! */  /* these types are used to index the table 'types': keep em in sync! */
 #define L_C     0               /* first and foremost on UNIX */  #define L_C     0               /* first and foremost on UNIX */
 #define L_FORT  1               /* the oldest one */  #define L_CC    1               /* Bjarne's postincrement */
 #define L_MAKE  2               /* Makefiles */  #define L_FORT  2               /* the oldest one */
 #define L_PLI   3               /* PL/1 */  #define L_MAKE  3               /* Makefiles */
 #define L_MACH  4               /* some kinda assembler */  #define L_PLI   4               /* PL/1 */
 #define L_ENG   5               /* English */  #define L_MACH  5               /* some kinda assembler */
 #define L_PAS   6               /* Pascal */  #define L_ENG   6               /* English */
 #define L_MAIL  7               /* Electronic mail */  #define L_PAS   7               /* Pascal */
 #define L_NEWS  8               /* Usenet Netnews */  #define L_MAIL  8               /* Electronic mail */
   #define L_NEWS  9               /* Usenet Netnews */
   
 static char *types[] = {  static char *types[] = {
         "C program text",          "C program text",
           "C++ program text",
         "FORTRAN program text",          "FORTRAN program text",
         "make commands text" ,          "make commands text" ,
         "PL/1 program text",          "PL/1 program text",
Line 43 
Line 45 
 } names[] = {  } names[] = {
         /* These must be sorted by eye for optimal hit rate */          /* These must be sorted by eye for optimal hit rate */
         /* Add to this list only after substantial meditation */          /* Add to this list only after substantial meditation */
           {"//",          L_CC},
           {"template",    L_CC},
           {"virtual",     L_CC},
           {"class",       L_CC},
           {"public:",     L_CC},
           {"private:",    L_CC},
         {"/*",          L_C},   /* must precede "The", "the", etc. */          {"/*",          L_C},   /* must precede "The", "the", etc. */
         {"#include",    L_C},          {"#include",    L_C},
         {"char",        L_C},          {"char",        L_C},

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3