From 01575b9d9d2b1608c79522c6ce1079410cf5aad9 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Fri, 23 Apr 1999 06:14:06 +0000 Subject: [PATCH] - Use yyless() instead of unput() where possible. I'll erase the commented out code in a day or so. --- Zend/zend-scanner.l | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Zend/zend-scanner.l b/Zend/zend-scanner.l index 9f0813a9077..49239c7ccc3 100644 --- a/Zend/zend-scanner.l +++ b/Zend/zend-scanner.l @@ -617,7 +617,8 @@ ESCAPED_AND_WHITESPACE [\n\t\r #'.:;,()|^&+-/*=%!~<>?@]+ } . { - unput(yytext[0]); + /*unput(yytext[0]);*/ + yyless(1); yy_pop_state(); } @@ -1161,9 +1162,10 @@ ESCAPED_AND_WHITESPACE [\n\t\r #'.:;,()|^&+-/*=%!~<>?@]+ "$"[^a-zA-Z_\x7f-\xff{] { zendlval->value.chval = yytext[0]; if (yyleng == 2) { - unput(yytext[1]); + yyless(1); + /*unput(yytext[1]); yytext[1] = 0; - yyleng--; + yyleng--;*/ } return T_CHARACTER; } @@ -1177,7 +1179,8 @@ ESCAPED_AND_WHITESPACE [\n\t\r #'.:;,()|^&+-/*=%!~<>?@]+ "{$" { zendlval->value.chval = yytext[0]; yy_push_state(IN_SCRIPTING); - unput('$'); + /*unput('$');*/ + yyless(1); return T_CURLY_OPEN; }