aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/llex.c b/llex.c
index 9d55d670..6b5dd7d5 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 2.77 2014/05/11 14:45:43 roberto Exp roberto $ 2** $Id: llex.c,v 2.78 2014/05/21 15:22:02 roberto Exp roberto $
3** Lexical Analyzer 3** Lexical Analyzer
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -67,10 +67,10 @@ static void save (LexState *ls, int c) {
67void luaX_init (lua_State *L) { 67void luaX_init (lua_State *L) {
68 int i; 68 int i;
69 TString *e = luaS_new(L, LUA_ENV); /* create env name */ 69 TString *e = luaS_new(L, LUA_ENV); /* create env name */
70 luaC_fix(L, obj2gco(e)); /* never collect this name */ 70 luaC_fix(L, ts2gco(e)); /* never collect this name */
71 for (i=0; i<NUM_RESERVED; i++) { 71 for (i=0; i<NUM_RESERVED; i++) {
72 TString *ts = luaS_new(L, luaX_tokens[i]); 72 TString *ts = luaS_new(L, luaX_tokens[i]);
73 luaC_fix(L, obj2gco(ts)); /* reserved words are never collected */ 73 luaC_fix(L, ts2gco(ts)); /* reserved words are never collected */
74 ts->tsv.extra = cast_byte(i+1); /* reserved word */ 74 ts->tsv.extra = cast_byte(i+1); /* reserved word */
75 } 75 }
76} 76}