=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/scan.l,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- src/usr.bin/lex/scan.l 2015/11/19 19:43:40 1.10 +++ src/usr.bin/lex/scan.l 2015/11/19 23:20:34 1.11 @@ -1,4 +1,4 @@ -/* $OpenBSD: scan.l,v 1.10 2015/11/19 19:43:40 tedu Exp $ */ +/* $OpenBSD: scan.l,v 1.11 2015/11/19 23:20:34 tedu Exp $ */ /* scan.l - scanner for flex input -*-C-*- */ @@ -233,7 +233,7 @@ [[:digit:]]+ linenum = myctoi( yytext ); \"[^"\n]*\" { - flex_free( (void *) infilename ); + free( (void *) infilename ); infilename = copy_string( yytext + 1 ); infilename[strlen( infilename ) - 1] = '\0'; } @@ -1008,25 +1008,3 @@ 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 ); - }