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

Diff for /src/usr.bin/ctags/C.c between version 1.5 and 1.6

version 1.5, 2000/07/25 19:28:30 version 1.6, 2000/07/26 17:46:52
Line 246 
Line 246 
                                 sp = tok;                                  sp = tok;
                         }                          }
                         else if (sp != tok || begtoken(c)) {                          else if (sp != tok || begtoken(c)) {
                                 if (sp >= tok + sizeof tok) {                                  /* hell... truncate it */
                                         /* hell... truncate it */                                  if (sp == tok + sizeof tok - 1)
                                         if (sp == tok + sizeof(tok))                                          *sp = EOS;
                                                 *sp = '\0';                                  else
                                         sp++;  
                                 } else  
                                         *sp++ = c;                                          *sp++ = c;
                                 token = YES;                                  token = YES;
                         }                          }
Line 353 
Line 351 
                         return;                          return;
                 if (iswhite(c))                  if (iswhite(c))
                         break;                          break;
                 if (sp >= tok + sizeof(tok)) {                  /* hell... truncate it */
                         /* hell... truncate it */                  if (sp == tok + sizeof tok - 1)
                         if (sp == tok + sizeof(tok))                          *sp = EOS;
                                 *sp = '\0';                  else
                         sp++;  
                 } else  
                         *sp++ = c;                          *sp++ = c;
         }          }
         *sp = EOS;          *sp = EOS;
Line 371 
Line 367 
                         break;                          break;
         }          }
         for (sp = tok;;) {              /* get next token */          for (sp = tok;;) {              /* get next token */
                 if (sp >= tok + sizeof tok) {                  /* hell... truncate it */
                         /* hell... truncate it */                  if (sp == tok + sizeof tok - 1)
                         if (sp == tok + sizeof(tok))                          *sp = EOS;
                                 *sp = '\0';                  else
                         sp++;  
                 } else  
                         *sp++ = c;                          *sp++ = c;
                 if (GETC(==, EOF))                  if (GETC(==, EOF))
                         return;                          return;
Line 419 
Line 413 
         if (c == '{')           /* it was "struct {" */          if (c == '{')           /* it was "struct {" */
                 return (YES);                  return (YES);
         for (sp = tok;;) {              /* get next token */          for (sp = tok;;) {              /* get next token */
                 if (sp >= tok + sizeof tok) {                  /* hell... truncate it */
                         /* hell... truncate it */                  if (sp == tok + sizeof tok - 1)
                         if (sp == tok + sizeof(tok))                          *sp = EOS;
                                 *sp = '\0';                  else
                         sp++;  
                 } else  
                         *sp++ = c;                          *sp++ = c;
                 if (GETC(==, EOF))                  if (GETC(==, EOF))
                         return (NO);                          return (NO);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6