diff options
Diffstat (limited to 'lstring.h')
-rw-r--r-- | lstring.h | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstring.h,v 1.35 2001/11/28 20:13:13 roberto Exp roberto $ | 2 | ** $Id: lstring.h,v 1.36 2002/04/30 13:01:48 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 | */ |
@@ -13,14 +13,6 @@ | |||
13 | 13 | ||
14 | 14 | ||
15 | 15 | ||
16 | /* | ||
17 | ** any TString with mark>=FIXMARK is never collected. | ||
18 | ** Marks>=RESERVEDMARK are used to identify reserved words. | ||
19 | */ | ||
20 | #define FIXMARK 2 | ||
21 | #define RESERVEDMARK 3 | ||
22 | |||
23 | |||
24 | #define sizestring(l) (cast(lu_mem, sizeof(union TString))+ \ | 16 | #define sizestring(l) (cast(lu_mem, sizeof(union TString))+ \ |
25 | (cast(lu_mem, l)+1)*sizeof(char)) | 17 | (cast(lu_mem, l)+1)*sizeof(char)) |
26 | 18 | ||
@@ -30,7 +22,7 @@ | |||
30 | #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ | 22 | #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ |
31 | (sizeof(s)/sizeof(char))-1)) | 23 | (sizeof(s)/sizeof(char))-1)) |
32 | 24 | ||
33 | #define luaS_fix(s) ((s)->tsv.marked = FIXMARK) | 25 | #define luaS_fix(s) ((s)->tsv.marked |= (1<<4)) |
34 | 26 | ||
35 | void luaS_resize (lua_State *L, int newsize); | 27 | void luaS_resize (lua_State *L, int newsize); |
36 | Udata *luaS_newudata (lua_State *L, size_t s); | 28 | Udata *luaS_newudata (lua_State *L, size_t s); |