diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-26 10:47:05 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-26 10:47:05 -0200 |
| commit | b892f0a8774f573d7ec9b02617428871b8d3a2b3 (patch) | |
| tree | 4aab88443264d84d314ca663cf3c30b48c7e9107 /lstring.h | |
| parent | aadc35449ec2752c298a7a8fa6359a3a12c538ee (diff) | |
| download | lua-b892f0a8774f573d7ec9b02617428871b8d3a2b3.tar.gz lua-b892f0a8774f573d7ec9b02617428871b8d3a2b3.tar.bz2 lua-b892f0a8774f573d7ec9b02617428871b8d3a2b3.zip | |
new API function `createuserdata'
Diffstat (limited to 'lstring.h')
| -rw-r--r-- | lstring.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 | ||
| 27 | void luaS_init (lua_State *L); | 26 | void luaS_init (lua_State *L); |
| 28 | void luaS_resize (lua_State *L, stringtable *tb, int newsize); | 27 | void luaS_resize (lua_State *L, stringtable *tb, int newsize); |
| 28 | TString *luaS_newudata (lua_State *L, size_t s, void *udata); | ||
| 29 | TString *luaS_createudata (lua_State *L, void *udata, int tag); | 29 | TString *luaS_createudata (lua_State *L, void *udata, int tag); |
| 30 | void luaS_freeall (lua_State *L); | 30 | void luaS_freeall (lua_State *L); |
| 31 | TString *luaS_newlstr (lua_State *L, const char *str, size_t l); | 31 | TString *luaS_newlstr (lua_State *L, const char *str, size_t l); |
