aboutsummaryrefslogtreecommitdiff
path: root/lstring.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-12-03 10:30:41 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-12-03 10:30:41 -0200
commit8878554b854009066eeccfe7b17e6e019c69758a (patch)
tree3e1bd9eb96e66daf73718b633ddb3e1b82d4c98c /lstring.c
parentaf850484a9e01b46b04e4c666f9a9e91308d81c7 (diff)
downloadlua-8878554b854009066eeccfe7b17e6e019c69758a.tar.gz
lua-8878554b854009066eeccfe7b17e6e019c69758a.tar.bz2
lua-8878554b854009066eeccfe7b17e6e019c69758a.zip
single list for all collectible objects, with udata separated at the
end of the list
Diffstat (limited to 'lstring.c')
-rw-r--r--lstring.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstring.c b/lstring.c
index e7e84609..d62392ff 100644
--- a/lstring.c
+++ b/lstring.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstring.c,v 1.80 2003/11/17 19:50:05 roberto Exp roberto $ 2** $Id: lstring.c,v 1.81 2003/12/01 18:22:56 roberto Exp roberto $
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*/
@@ -96,8 +96,8 @@ Udata *luaS_newudata (lua_State *L, size_t s) {
96 u->uv.len = s; 96 u->uv.len = s;
97 u->uv.metatable = NULL; 97 u->uv.metatable = NULL;
98 /* chain it on udata list */ 98 /* chain it on udata list */
99 u->uv.next = G(L)->rootudata; 99 u->uv.next = G(L)->firstudata->uv.next;
100 G(L)->rootudata = valtogco(u); 100 G(L)->firstudata->uv.next = valtogco(u);
101 return u; 101 return u;
102} 102}
103 103