=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/lex/Attic/initscan.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- src/usr.bin/lex/Attic/initscan.c 2015/11/19 19:43:40 1.15 +++ src/usr.bin/lex/Attic/initscan.c 2015/11/19 23:20:34 1.16 @@ -1,4 +1,4 @@ -/* $OpenBSD: initscan.c,v 1.15 2015/11/19 19:43:40 tedu Exp $ */ +/* $OpenBSD: initscan.c,v 1.16 2015/11/19 23:20:34 tedu Exp $ */ #line 3 "scan.c" @@ -2537,7 +2537,7 @@ YY_RULE_SETUP #line 233 "scan.l" { - flex_free( (void *) infilename ); + free( (void *) infilename ); infilename = copy_string( yytext + 1 ); infilename[strlen( infilename ) - 1] = '\0'; } @@ -5177,28 +5177,5 @@ } 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 ); }