From b892f0a8774f573d7ec9b02617428871b8d3a2b3 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 26 Oct 2000 10:47:05 -0200 Subject: new API function `createuserdata' --- lstring.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstring.h') diff --git a/lstring.h b/lstring.h index c04ef12a..aa0157b5 100644 --- a/lstring.h +++ b/lstring.h @@ -1,5 +1,5 @@ /* -** $Id: lstring.h,v 1.21 2000/05/24 13:54:49 roberto Exp roberto $ +** $Id: lstring.h,v 1.22 2000/09/29 12:42:13 roberto Exp roberto $ ** String table (keep all strings handled by Lua) ** See Copyright Notice in lua.h */ @@ -21,11 +21,11 @@ #define sizestring(l) (sizeof(TString)+(lint32)(l)*sizeof(char)) -#define gcsizeudata (sizeof(TString)) 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); void luaS_freeall (lua_State *L); TString *luaS_newlstr (lua_State *L, const char *str, size_t l); -- cgit v1.2.3-55-g6feb