version 1.6, 2009/12/07 18:43:11 |
version 1.7, 2010/03/01 11:36:47 |
|
|
#include "parse.h" |
#include "parse.h" |
#include <gram.h> |
#include <gram.h> |
|
|
#ifndef lint |
|
__unused static const char rcsid[] = "$Sudo: toke.l,v 1.40 2009/11/22 14:54:04 millert Exp $"; |
|
#endif /* lint */ |
|
|
|
extern YYSTYPE yylval; |
extern YYSTYPE yylval; |
extern int parse_error; |
extern int parse_error; |
int sudolineno = 1; |
int sudolineno = 1; |
|
|
efree(pl); |
efree(pl); |
} |
} |
efree(istack[idepth].path); |
efree(istack[idepth].path); |
if (!istack[idepth].keepopen) |
if (idepth && !istack[idepth].keepopen) |
fclose(istack[idepth].bs->yy_input_file); |
fclose(istack[idepth].bs->yy_input_file); |
yy_delete_buffer(istack[idepth].bs); |
yy_delete_buffer(istack[idepth].bs); |
} |
} |
|
|
} |
} |
istacksize += SUDOERS_STACK_INCREMENT; |
istacksize += SUDOERS_STACK_INCREMENT; |
istack = (struct include_stack *) realloc(istack, |
istack = (struct include_stack *) realloc(istack, |
sizeof(istack) * istacksize); |
sizeof(*istack) * istacksize); |
if (istack == NULL) { |
if (istack == NULL) { |
yyerror("unable to allocate memory"); |
yyerror("unable to allocate memory"); |
return(FALSE); |
return(FALSE); |