From: Todd C. Miller Date: Wed, 29 Sep 2004 18:29:40 +0000 (+0000) Subject: Remove us of unput() in favor of yyless() which is cheaper. X-Git-Tag: SUDO_1_7_0~923 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72894e693705665547df7e1fdcf25981b30e4bb9;p=sudo Remove us of unput() in favor of yyless() which is cheaper. --- diff --git a/parse.lex b/parse.lex index c7f868303..34710e7a6 100644 --- a/parse.lex +++ b/parse.lex @@ -94,6 +94,8 @@ WORD ([^#>@!=:,\(\) \t\n\\]|\\[^\n])+ ENVAR ([^#!=, \t\n\\]|\\[^\n])([^#=, \t\n\\]|\\[^\n])* DEFVAR [a-z_]+ +%option nounput + /* XXX - convert GOTRUNAS to exclusive state (GOTDEFS cannot be) */ %s GOTRUNAS %s GOTDEFS @@ -168,7 +170,7 @@ DEFVAR [a-z_]+ [#:\,=\n] { BEGIN INITIAL; - unput(*yytext); + yyless(1); return(COMMAND); } /* end of command line args */