version 1.10, 2015/11/19 19:43:40 |
version 1.11, 2015/11/19 23:20:34 |
|
|
[[: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'; |
} |
} |
|
|
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 ); |
|
} |
|