diff options
| author | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1994-04-15 16:00:28 -0300 |
|---|---|---|
| committer | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1994-04-15 16:00:28 -0300 |
| commit | dd704b8fe473eb8c934fe9dd756bda8117beb304 (patch) | |
| tree | 3ebc7edc2ee0891424a8a1baa27818f7793c564a | |
| parent | ed80de37d9f61493daa50c28a9b427c19df17edf (diff) | |
| download | lua-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 '')
| -rw-r--r-- | lex.c | 7 |
1 files changed, 5 insertions, 2 deletions
| @@ -1,5 +1,8 @@ | |||
| 1 | char *rcs_lex = "$Id: lex.c,v 1.2 1993/12/22 21:39:15 celes Exp roberto $"; | 1 | char *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 | ||
