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

Diff for /src/usr.bin/sudo/Attic/toke.l between version 1.6 and 1.7

version 1.6, 2009/12/07 18:43:11 version 1.7, 2010/03/01 11:36:47
Line 71 
Line 71 
 #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;
Line 844 
Line 840 
             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);
     }      }
Line 869 
Line 865 
         }          }
         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);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7