mirror of https://github.com/lua/lua
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".
This commit is contained in:
parent
ed80de37d9
commit
dd704b8fe4
7
lex.c
7
lex.c
|
@ -1,5 +1,8 @@
|
|||
char *rcs_lex = "$Id: lex.c,v 1.2 1993/12/22 21:39:15 celes Exp roberto $";
|
||||
char *rcs_lex = "$Id: lex.c,v 1.3 1993/12/28 16:42:29 roberto Exp celes $";
|
||||
/*$Log: lex.c,v $
|
||||
* Revision 1.3 1993/12/28 16:42:29 roberto
|
||||
* "include"s de string.h e stdlib.h para evitar warnings
|
||||
*
|
||||
* Revision 1.2 1993/12/22 21:39:15 celes
|
||||
* Tratamento do token $debug e $nodebug
|
||||
*
|
||||
|
@ -187,7 +190,7 @@ int yylex ()
|
|||
*yytextLast = 0;
|
||||
res = findReserved(yytext);
|
||||
if (res) return res;
|
||||
yylval.vWord = lua_findsymbol(yytext);
|
||||
yylval.pChar = yytext;
|
||||
return NAME;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue