aboutsummaryrefslogtreecommitdiff
path: root/lstring.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-26 10:47:05 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-26 10:47:05 -0200
commitb892f0a8774f573d7ec9b02617428871b8d3a2b3 (patch)
tree4aab88443264d84d314ca663cf3c30b48c7e9107 /lstring.h
parentaadc35449ec2752c298a7a8fa6359a3a12c538ee (diff)
downloadlua-b892f0a8774f573d7ec9b02617428871b8d3a2b3.tar.gz
lua-b892f0a8774f573d7ec9b02617428871b8d3a2b3.tar.bz2
lua-b892f0a8774f573d7ec9b02617428871b8d3a2b3.zip
new API function `createuserdata'
Diffstat (limited to 'lstring.h')
-rw-r--r--lstring.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstring.h b/lstring.h
index c04ef12a..aa0157b5 100644
--- a/lstring.h
+++ b/lstring.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstring.h,v 1.21 2000/05/24 13:54:49 roberto Exp roberto $ 2** $Id: lstring.h,v 1.22 2000/09/29 12:42:13 roberto Exp roberto $
3** String table (keep all strings handled by Lua) 3** String table (keep all strings handled by Lua)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -21,11 +21,11 @@
21 21
22 22
23#define sizestring(l) (sizeof(TString)+(lint32)(l)*sizeof(char)) 23#define sizestring(l) (sizeof(TString)+(lint32)(l)*sizeof(char))
24#define gcsizeudata (sizeof(TString))
25 24
26 25
27void luaS_init (lua_State *L); 26void luaS_init (lua_State *L);
28void luaS_resize (lua_State *L, stringtable *tb, int newsize); 27void luaS_resize (lua_State *L, stringtable *tb, int newsize);
28TString *luaS_newudata (lua_State *L, size_t s, void *udata);
29TString *luaS_createudata (lua_State *L, void *udata, int tag); 29TString *luaS_createudata (lua_State *L, void *udata, int tag);
30void luaS_freeall (lua_State *L); 30void luaS_freeall (lua_State *L);
31TString *luaS_newlstr (lua_State *L, const char *str, size_t l); 31TString *luaS_newlstr (lua_State *L, const char *str, size_t l);