diff options
Diffstat (limited to 'lstring.h')
-rw-r--r-- | lstring.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstring.h,v 1.29 2001/02/09 20:22:29 roberto Exp roberto $ | 2 | ** $Id: lstring.h,v 1.30 2001/02/20 18:15:33 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 | */ |
@@ -22,20 +22,20 @@ | |||
22 | 22 | ||
23 | 23 | ||
24 | #define sizestring(l) ((lu_mem)sizeof(union L_UTString)+ \ | 24 | #define sizestring(l) ((lu_mem)sizeof(union L_UTString)+ \ |
25 | ((lu_mem)(l)+1)*sizeof(char)) | 25 | ((lu_mem)(l)+1)*sizeof(l_char)) |
26 | 26 | ||
27 | #define sizeudata(l) ((lu_mem)sizeof(union L_UTString)+(l)) | 27 | #define sizeudata(l) ((lu_mem)sizeof(union L_UTString)+(l)) |
28 | 28 | ||
29 | #define luaS_new(L, s) (luaS_newlstr(L, s, strlen(s))) | 29 | #define luaS_new(L, s) (luaS_newlstr(L, s, strlen(s))) |
30 | #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ | 30 | #define luaS_newliteral(L, s) (luaS_newlstr(L, l_s("") s, \ |
31 | (sizeof(s)/sizeof(char))-1)) | 31 | (sizeof(s)/sizeof(l_char))-1)) |
32 | 32 | ||
33 | void luaS_init (lua_State *L); | 33 | void luaS_init (lua_State *L); |
34 | void luaS_resize (lua_State *L, stringtable *tb, int newsize); | 34 | void luaS_resize (lua_State *L, stringtable *tb, int newsize); |
35 | TString *luaS_newudata (lua_State *L, size_t s, void *udata); | 35 | TString *luaS_newudata (lua_State *L, size_t s, void *udata); |
36 | int luaS_createudata (lua_State *L, void *udata, TObject *o); | 36 | int luaS_createudata (lua_State *L, void *udata, TObject *o); |
37 | void luaS_freeall (lua_State *L); | 37 | void luaS_freeall (lua_State *L); |
38 | TString *luaS_newlstr (lua_State *L, const char *str, size_t l); | 38 | TString *luaS_newlstr (lua_State *L, const l_char *str, size_t l); |
39 | 39 | ||
40 | 40 | ||
41 | #endif | 41 | #endif |