[BACK]Return to ctags.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ctags

Diff for /src/usr.bin/ctags/ctags.c between version 1.13 and 1.14

version 1.13, 2010/11/03 19:39:38 version 1.14, 2014/12/10 19:44:21
Line 46 
Line 46 
 NODE    *head;                  /* head of the sorted binary tree */  NODE    *head;                  /* head of the sorted binary tree */
   
                                 /* boolean "func" (see init()) */                                  /* boolean "func" (see init()) */
 bool    _wht[256], _etk[256], _itk[256], _btk[256], _gd[256];  bool    _wht[256], _itk[256], _btk[256];
   
 FILE    *inf;                   /* ioptr for current input file */  FILE    *inf;                   /* ioptr for current input file */
 FILE    *outf;                  /* ioptr for tags file */  FILE    *outf;                  /* ioptr for tags file */
Line 183 
Line 183 
         int             i;          int             i;
         unsigned char   *sp;          unsigned char   *sp;
   
         for (i = 0; i < 256; i++) {          for (i = 0; i < 256; i++)
                 _wht[i] = _etk[i] = _itk[i] = _btk[i] = NO;                  _wht[i] = _itk[i] = _btk[i] = NO;
                 _gd[i] = YES;  
         }  
 #define CWHITE  " \f\t\n"  #define CWHITE  " \f\t\n"
         for (sp = CWHITE; *sp; sp++)    /* white space chars */          for (sp = CWHITE; *sp; sp++)    /* white space chars */
                 _wht[*sp] = YES;                  _wht[*sp] = YES;
 #define CTOKEN  " \t\n\"'#()[]{}=-+%*/&|^~!<>;,.:?"  
         for (sp = CTOKEN; *sp; sp++)    /* token ending chars */  
                 _etk[*sp] = YES;  
 #define CINTOK  "ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz0123456789"  #define CINTOK  "ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz0123456789"
         for (sp = CINTOK; *sp; sp++)    /* valid in-token chars */          for (sp = CINTOK; *sp; sp++)    /* valid in-token chars */
                 _itk[*sp] = YES;                  _itk[*sp] = YES;
 #define CBEGIN  "ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz"  #define CBEGIN  "ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz"
         for (sp = CBEGIN; *sp; sp++)    /* token starting chars */          for (sp = CBEGIN; *sp; sp++)    /* token starting chars */
                 _btk[*sp] = YES;                  _btk[*sp] = YES;
 #define CNOTGD  ",;"  
         for (sp = CNOTGD; *sp; sp++)    /* invalid after-function chars */  
                 _gd[*sp] = NO;  
 }  }
   
 /*  /*

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14