diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-11-28 18:13:13 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-11-28 18:13:13 -0200 |
| commit | 72659a06050632da1a9b4c492302be46ac283f6b (patch) | |
| tree | bac06b4ea523ba5443564d0869e392180d4b7b77 /lstring.h | |
| parent | dfaf8c5291fa8aef5bedbfa375853475364ac76e (diff) | |
| download | lua-72659a06050632da1a9b4c492302be46ac283f6b.tar.gz lua-72659a06050632da1a9b4c492302be46ac283f6b.tar.bz2 lua-72659a06050632da1a9b4c492302be46ac283f6b.zip | |
no more explicit support for wide-chars; too much troble...
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.33 2001/06/15 20:36:57 roberto Exp $ | 2 | ** $Id: lstring.h,v 1.34 2001/08/31 19:46:07 roberto Exp $ |
| 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,18 +22,18 @@ | |||
| 22 | 22 | ||
| 23 | 23 | ||
| 24 | #define sizestring(l) (cast(lu_mem, sizeof(union TString))+ \ | 24 | #define sizestring(l) (cast(lu_mem, sizeof(union TString))+ \ |
| 25 | (cast(lu_mem, l)+1)*sizeof(l_char)) | 25 | (cast(lu_mem, l)+1)*sizeof(char)) |
| 26 | 26 | ||
| 27 | #define sizeudata(l) (cast(lu_mem, sizeof(union Udata))+(l)) | 27 | #define sizeudata(l) (cast(lu_mem, sizeof(union Udata))+(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, l_s("") s, \ | 30 | #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ |
| 31 | (sizeof(s)/sizeof(l_char))-1)) | 31 | (sizeof(s)/sizeof(char))-1)) |
| 32 | 32 | ||
| 33 | void luaS_resize (lua_State *L, int newsize); | 33 | void luaS_resize (lua_State *L, int newsize); |
| 34 | Udata *luaS_newudata (lua_State *L, size_t s); | 34 | Udata *luaS_newudata (lua_State *L, size_t s); |
| 35 | void luaS_freeall (lua_State *L); | 35 | void luaS_freeall (lua_State *L); |
| 36 | TString *luaS_newlstr (lua_State *L, const l_char *str, size_t l); | 36 | TString *luaS_newlstr (lua_State *L, const char *str, size_t l); |
| 37 | 37 | ||
| 38 | 38 | ||
| 39 | #endif | 39 | #endif |
