support for light' userdata + simpler support for boxed' udata

This commit is contained in:
Roberto Ierusalimschy
2002-04-05 15:54:31 -03:00
parent f438d00ef3
commit 237969724f
12 changed files with 71 additions and 64 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstring.c,v 1.72 2002/02/08 22:41:09 roberto Exp roberto $
** $Id: lstring.c,v 1.73 2002/03/20 18:37:13 roberto Exp roberto $
** String table (keeps all strings handled by Lua)
** See Copyright Notice in lua.h
*/
@@ -89,7 +89,6 @@ Udata *luaS_newudata (lua_State *L, size_t s) {
u = cast(Udata *, luaM_malloc(L, sizeudata(s)));
u->uv.len = s;
u->uv.metatable = hvalue(defaultmeta(L));
u->uv.value = u + 1;
/* chain it on udata list */
u->uv.next = G(L)->rootudata;
G(L)->rootudata = u;