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

Diff for /src/usr.bin/lex/scan.l between version 1.10 and 1.11

version 1.10, 2015/11/19 19:43:40 version 1.11, 2015/11/19 23:20:34
Line 233 
Line 233 
         [[:digit:]]+    linenum = myctoi( yytext );          [[:digit:]]+    linenum = myctoi( yytext );
   
         \"[^"\n]*\"     {          \"[^"\n]*\"     {
                         flex_free( (void *) infilename );                          free( (void *) infilename );
                         infilename = copy_string( yytext + 1 );                          infilename = copy_string( yytext + 1 );
                         infilename[strlen( infilename ) - 1] = '\0';                          infilename[strlen( infilename ) - 1] = '\0';
                         }                          }
Line 1008 
Line 1008 
         linenum = 1;          linenum = 1;
         }          }
   
   
 /* Wrapper routines for accessing the scanner's malloc routines. */  
   
 void *flex_alloc( size )  
 size_t size;  
         {  
         return (void *) malloc( size );  
         }  
   
 void *flex_realloc( ptr, size )  
 void *ptr;  
 size_t size;  
         {  
         return (void *) realloc( ptr, size );  
         }  
   
 void flex_free( ptr )  
 void *ptr;  
         {  
         if ( ptr )  
                 free( ptr );  
         }  

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11