diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-29 09:42:13 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-29 09:42:13 -0300 |
commit | dad808a73a98a23729614b8814728d76b4e5d577 (patch) | |
tree | 945fabce1906c5f08fe6512476d7ca3d84017bca /lstring.h | |
parent | ca7fd50a4ec2f1b41292f859ba0d5e52a2b22a5c (diff) | |
download | lua-dad808a73a98a23729614b8814728d76b4e5d577.tar.gz lua-dad808a73a98a23729614b8814728d76b4e5d577.tar.bz2 lua-dad808a73a98a23729614b8814728d76b4e5d577.zip |
new way to count `nblocks' for GC (try to count bytes).
Diffstat (limited to 'lstring.h')
-rw-r--r-- | lstring.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstring.h,v 1.20 2000/05/10 16:33:20 roberto Exp roberto $ | 2 | ** $Id: lstring.h,v 1.21 2000/05/24 13:54:49 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 | */ |
@@ -20,8 +20,8 @@ | |||
20 | #define RESERVEDMARK 3 | 20 | #define RESERVEDMARK 3 |
21 | 21 | ||
22 | 22 | ||
23 | #define gcsizestring(L, l) numblocks(L, 0, sizeof(TString)+l) | 23 | #define sizestring(l) (sizeof(TString)+(lint32)(l)*sizeof(char)) |
24 | #define gcsizeudata gcsizestring(L, 0) | 24 | #define gcsizeudata (sizeof(TString)) |
25 | 25 | ||
26 | 26 | ||
27 | void luaS_init (lua_State *L); | 27 | void luaS_init (lua_State *L); |