aboutsummaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
authorWaldemar Celes <celes@tecgraf.puc-rio.br>1994-04-15 16:00:28 -0300
committerWaldemar Celes <celes@tecgraf.puc-rio.br>1994-04-15 16:00:28 -0300
commitdd704b8fe473eb8c934fe9dd756bda8117beb304 (patch)
tree3ebc7edc2ee0891424a8a1baa27818f7793c564a /lex.c
parented80de37d9f61493daa50c28a9b427c19df17edf (diff)
downloadlua-dd704b8fe473eb8c934fe9dd756bda8117beb304.tar.gz
lua-dd704b8fe473eb8c934fe9dd756bda8117beb304.tar.bz2
lua-dd704b8fe473eb8c934fe9dd756bda8117beb304.zip
Retirar chamada da funcao lua_findsymbol associada a cada
token NAME. A decisao de chamar lua_findsymbol ou lua_findconstant fica a cargo do modulo "lua.stx".
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lex.c b/lex.c
index 6b40d452..c2730a05 100644
--- a/lex.c
+++ b/lex.c
@@ -1,5 +1,8 @@
1char *rcs_lex = "$Id: lex.c,v 1.2 1993/12/22 21:39:15 celes Exp roberto $"; 1char *rcs_lex = "$Id: lex.c,v 1.3 1993/12/28 16:42:29 roberto Exp celes $";
2/*$Log: lex.c,v $ 2/*$Log: lex.c,v $
3 * Revision 1.3 1993/12/28 16:42:29 roberto
4 * "include"s de string.h e stdlib.h para evitar warnings
5 *
3 * Revision 1.2 1993/12/22 21:39:15 celes 6 * Revision 1.2 1993/12/22 21:39:15 celes
4 * Tratamento do token $debug e $nodebug 7 * Tratamento do token $debug e $nodebug
5 * 8 *
@@ -187,7 +190,7 @@ int yylex ()
187 *yytextLast = 0; 190 *yytextLast = 0;
188 res = findReserved(yytext); 191 res = findReserved(yytext);
189 if (res) return res; 192 if (res) return res;
190 yylval.vWord = lua_findsymbol(yytext); 193 yylval.pChar = yytext;
191 return NAME; 194 return NAME;
192 } 195 }
193 196