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

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

version 1.13, 2013/10/27 18:31:24 version 1.14, 2015/10/15 05:57:09
Line 109 
Line 109 
         {          {
         while ( *str )          while ( *str )
                 {                  {
                 if ( ! isascii( (Char) *str ) || ! islower( *str ) )                  if ( ! isascii( (Char) *str ) || ! islower( (Char) *str ) )
                         return 0;                          return 0;
                 ++str;                  ++str;
                 }                  }
Line 125 
Line 125 
         {          {
         while ( *str )          while ( *str )
                 {                  {
                 if ( ! isascii( (Char) *str ) || ! isupper( *str ) )                  if ( ! isascii( (Char) *str ) || ! isupper( (Char) *str ) )
                         return 0;                          return 0;
                 ++str;                  ++str;
                 }                  }
Line 590 
Line 590 
                         int sptr = 2;                          int sptr = 2;
   
                         while ( isascii( array[sptr] ) &&                          while ( isascii( array[sptr] ) &&
                                 isxdigit( (char) array[sptr] ) )                                  isxdigit( array[sptr] ) )
                                 /* Don't increment inside loop control                                  /* Don't increment inside loop control
                                  * because if isdigit() is a macro it might                                   * because if isdigit() is a macro it might
                                  * expand into multiple increments ...                                   * expand into multiple increments ...

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