From 72894e693705665547df7e1fdcf25981b30e4bb9 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 29 Sep 2004 18:29:40 +0000 Subject: [PATCH] Remove us of unput() in favor of yyless() which is cheaper. --- parse.lex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */ -- 2.50.1