diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-12-10 10:13:36 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-12-10 10:13:36 -0200 |
commit | 47fc57a2529c83376883f36954082cfe80ae588f (patch) | |
tree | c2e57e2f9f7d78279144bfd9cbd04a3b1b131f12 /llex.c | |
parent | 4d5fe1f54bc00850f77a7c42f9e95d0ff3f1ab5b (diff) | |
download | lua-47fc57a2529c83376883f36954082cfe80ae588f.tar.gz lua-47fc57a2529c83376883f36954082cfe80ae588f.tar.bz2 lua-47fc57a2529c83376883f36954082cfe80ae588f.zip |
`TObject' renamed to `TValue' + other name changes and better assertions
for incremental garbage collection
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 1.127 2003/10/03 16:07:44 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.128 2003/10/20 12:24:34 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 | */ |
@@ -110,7 +110,7 @@ void luaX_syntaxerror (LexState *ls, const char *msg) { | |||
110 | TString *luaX_newstring (LexState *ls, const char *str, size_t l) { | 110 | TString *luaX_newstring (LexState *ls, const char *str, size_t l) { |
111 | lua_State *L = ls->L; | 111 | lua_State *L = ls->L; |
112 | TString *ts = luaS_newlstr(L, str, l); | 112 | TString *ts = luaS_newlstr(L, str, l); |
113 | TObject *o = luaH_setstr(L, ls->fs->h, ts); /* entry for `str' */ | 113 | TValue *o = luaH_setstr(L, ls->fs->h, ts); /* entry for `str' */ |
114 | if (ttisnil(o)) | 114 | if (ttisnil(o)) |
115 | setbvalue(o, 1); /* make sure `str' will not be collected */ | 115 | setbvalue(o, 1); /* make sure `str' will not be collected */ |
116 | return ts; | 116 | return ts; |