diff options
Diffstat (limited to 'lex.c')
-rw-r--r-- | lex.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | char *rcs_lex = "$Id: lex.c,v 2.17 1995/10/03 18:06:10 roberto Exp $"; | 1 | char *rcs_lex = "$Id: lex.c,v 2.18 1995/10/06 13:10:53 roberto Exp roberto $"; |
2 | 2 | ||
3 | 3 | ||
4 | #include <ctype.h> | 4 | #include <ctype.h> |
@@ -200,7 +200,7 @@ int yylex (void) | |||
200 | return WRONGTOKEN; | 200 | return WRONGTOKEN; |
201 | save_and_next(); /* pass the second ']' */ | 201 | save_and_next(); /* pass the second ']' */ |
202 | *(yytextLast-2) = 0; /* erases ']]' */ | 202 | *(yytextLast-2) = 0; /* erases ']]' */ |
203 | yylval.vWord = luaI_findconstant(lua_constcreate(yytext+2)); | 203 | yylval.vWord = luaI_findconstantbyname(yytext+2); |
204 | return STRING; | 204 | return STRING; |
205 | } | 205 | } |
206 | 206 | ||
@@ -260,7 +260,7 @@ int yylex (void) | |||
260 | } | 260 | } |
261 | next(); /* skip the delimiter */ | 261 | next(); /* skip the delimiter */ |
262 | *yytextLast = 0; | 262 | *yytextLast = 0; |
263 | yylval.vWord = luaI_findconstant(lua_constcreate(yytext)); | 263 | yylval.vWord = luaI_findconstantbyname(yytext); |
264 | return STRING; | 264 | return STRING; |
265 | } | 265 | } |
266 | 266 | ||