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

Diff for /src/usr.bin/indent/lexi.c between version 1.5 and 1.6

version 1.5, 1997/09/10 07:06:37 version 1.6, 1998/05/22 05:15:12
Line 157 
Line 157 
                                  * reserved words */                                   * reserved words */
         if (isdigit(*buf_ptr) || (buf_ptr[0] == '.' && isdigit(buf_ptr[1]))) {          if (isdigit(*buf_ptr) || (buf_ptr[0] == '.' && isdigit(buf_ptr[1]))) {
             int         seendot = 0,              int         seendot = 0,
                         seenexp = 0;                          seenexp = 0,
                           seensfx = 0;
             if (*buf_ptr == '0' &&              if (*buf_ptr == '0' &&
                     (buf_ptr[1] == 'x' || buf_ptr[1] == 'X')) {                      (buf_ptr[1] == 'x' || buf_ptr[1] == 'X')) {
                 *e_token++ = *buf_ptr++;                  *e_token++ = *buf_ptr++;
Line 188 
Line 189 
                                 *e_token++ = *buf_ptr++;                                  *e_token++ = *buf_ptr++;
                         }                          }
                 }                  }
             if (*buf_ptr == 'L' || *buf_ptr == 'l')              while (1) {
                 *e_token++ = *buf_ptr++;                  if (!(seensfx & 1) &&
                           (*buf_ptr == 'U' || *buf_ptr == 'u')) {
                       CHECK_SIZE_TOKEN;
                       *e_token++ = *buf_ptr++;
                       seensfx |= 1;
                       continue;
                   }
                   if (!(seensfx & 2) &&
                           (*buf_ptr == 'L' || *buf_ptr == 'l')) {
                       CHECK_SIZE_TOKEN;
                       if (buf_ptr[1] == buf_ptr[0])
                           *e_token++ = *buf_ptr++;
                       *e_token++ = *buf_ptr++;
                       seensfx |= 2;
                       continue;
                   }
                   break;
               }
         }          }
         else          else
             while (chartype[*buf_ptr] == alphanum) {    /* copy it over */              while (chartype[*buf_ptr] == alphanum) {    /* copy it over */

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