diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-18 15:18:09 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-01-18 15:18:09 -0200 |
commit | 334ba8132bd0471ffe2a9964b577d3ae89ec490a (patch) | |
tree | 3e0dde3bca4f1f51dad42d8c85ad9cb624aab1fa /lstring.c | |
parent | ac71a0891d8571816ce32b5c2c1fd97942decf71 (diff) | |
download | lua-334ba8132bd0471ffe2a9964b577d3ae89ec490a.tar.gz lua-334ba8132bd0471ffe2a9964b577d3ae89ec490a.tar.bz2 lua-334ba8132bd0471ffe2a9964b577d3ae89ec490a.zip |
cleaner way to remark open upvalues
Diffstat (limited to 'lstring.c')
-rw-r--r-- | lstring.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstring.c,v 2.4 2004/11/19 15:52:40 roberto Exp roberto $ | 2 | ** $Id: lstring.c,v 2.5 2004/11/24 19:16:03 roberto Exp $ |
3 | ** String table (keeps all strings handled by Lua) | 3 | ** String table (keeps all strings handled by Lua) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -102,9 +102,9 @@ Udata *luaS_newudata (lua_State *L, size_t s) { | |||
102 | u->uv.tt = LUA_TUSERDATA; | 102 | u->uv.tt = LUA_TUSERDATA; |
103 | u->uv.len = s; | 103 | u->uv.len = s; |
104 | u->uv.metatable = NULL; | 104 | u->uv.metatable = NULL; |
105 | /* chain it on udata list */ | 105 | /* chain it on udata list (after main thread) */ |
106 | u->uv.next = G(L)->firstudata->uv.next; | 106 | u->uv.next = G(L)->mainthread->next; |
107 | G(L)->firstudata->uv.next = obj2gco(u); | 107 | G(L)->mainthread->next = obj2gco(u); |
108 | return u; | 108 | return u; |
109 | } | 109 | } |
110 | 110 | ||