aboutsummaryrefslogtreecommitdiff
path: root/lstring.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-11-28 18:13:13 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-11-28 18:13:13 -0200
commit72659a06050632da1a9b4c492302be46ac283f6b (patch)
treebac06b4ea523ba5443564d0869e392180d4b7b77 /lstring.h
parentdfaf8c5291fa8aef5bedbfa375853475364ac76e (diff)
downloadlua-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.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lstring.h b/lstring.h
index f8fb0b60..2fbf1daf 100644
--- a/lstring.h
+++ b/lstring.h
@@ -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
33void luaS_resize (lua_State *L, int newsize); 33void luaS_resize (lua_State *L, int newsize);
34Udata *luaS_newudata (lua_State *L, size_t s); 34Udata *luaS_newudata (lua_State *L, size_t s);
35void luaS_freeall (lua_State *L); 35void luaS_freeall (lua_State *L);
36TString *luaS_newlstr (lua_State *L, const l_char *str, size_t l); 36TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
37 37
38 38
39#endif 39#endif