new semantics for pushuserdata (no more different userdatas with same value)

This commit is contained in:
Roberto Ierusalimschy
2001-02-09 17:53:16 -02:00
parent dc17a9cc24
commit 6875fdc8be
5 changed files with 34 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstring.h,v 1.26 2000/12/28 12:55:41 roberto Exp roberto $
** $Id: lstring.h,v 1.27 2001/01/10 17:41:50 roberto Exp roberto $
** String table (keep all strings handled by Lua)
** See Copyright Notice in lua.h
*/
@@ -42,7 +42,7 @@ union L_UTString {
void luaS_init (lua_State *L);
void luaS_resize (lua_State *L, stringtable *tb, int newsize);
TString *luaS_newudata (lua_State *L, size_t s, void *udata);
TString *luaS_createudata (lua_State *L, void *udata, int tag);
int luaS_createudata (lua_State *L, void *udata, TObject *o);
void luaS_freeall (lua_State *L);
TString *luaS_newlstr (lua_State *L, const char *str, size_t l);