diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-08-16 11:45:55 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-08-16 11:45:55 -0300 |
| commit | da19c436cc361401563eeda2cca3d161a6ddeef7 (patch) | |
| tree | 9d2d7e3f6c00d88dc659d123c79d4157ffd36ffb /lstring.h | |
| parent | 0039feb9dae27e25c0c719f49d954741fb2babf3 (diff) | |
| download | lua-da19c436cc361401563eeda2cca3d161a6ddeef7.tar.gz lua-da19c436cc361401563eeda2cca3d161a6ddeef7.tar.bz2 lua-da19c436cc361401563eeda2cca3d161a6ddeef7.zip | |
cleaning the stage for generational collection
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); |
