summaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-12 15:32:40 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-12 15:32:40 -0300
commit41259bff31dbb904edfb8070006ccb15577f8f04 (patch)
tree664bf9cbe6394e9074435ecf2bd710712b4537c3 /lex.c
parentafaa98a666acd5f596b50f56bb288815838c096e (diff)
downloadlua-41259bff31dbb904edfb8070006ccb15577f8f04.tar.gz
lua-41259bff31dbb904edfb8070006ccb15577f8f04.tar.bz2
lua-41259bff31dbb904edfb8070006ccb15577f8f04.zip
BIG CHANGE: new data structure for constants, strings and globals, using
an array of hash tables for all them.
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lex.c b/lex.c
index f499d7a6..0940359c 100644
--- a/lex.c
+++ b/lex.c
@@ -1,4 +1,4 @@
1char *rcs_lex = "$Id: lex.c,v 2.23 1996/02/07 14:14:40 roberto Exp roberto $"; 1char *rcs_lex = "$Id: lex.c,v 2.24 1996/02/09 19:35:23 roberto Exp roberto $";
2 2
3 3
4#include <ctype.h> 4#include <ctype.h>
@@ -287,7 +287,7 @@ int luaY_lex (void)
287 *yytextLast = 0; 287 *yytextLast = 0;
288 res = findReserved(yytext); 288 res = findReserved(yytext);
289 if (res) return res; 289 if (res) return res;
290 luaY_lval.pNode = lua_constcreate(yytext); 290 luaY_lval.pTStr = luaI_createfixedstring(yytext);
291 return NAME; 291 return NAME;
292 } 292 }
293 293