From dad808a73a98a23729614b8814728d76b4e5d577 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 29 Sep 2000 09:42:13 -0300 Subject: new way to count `nblocks' for GC (try to count bytes). --- lstring.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lstring.h') diff --git a/lstring.h b/lstring.h index 2b853a0f..c04ef12a 100644 --- a/lstring.h +++ b/lstring.h @@ -1,5 +1,5 @@ /* -** $Id: lstring.h,v 1.20 2000/05/10 16:33:20 roberto Exp roberto $ +** $Id: lstring.h,v 1.21 2000/05/24 13:54:49 roberto Exp roberto $ ** String table (keep all strings handled by Lua) ** See Copyright Notice in lua.h */ @@ -20,8 +20,8 @@ #define RESERVEDMARK 3 -#define gcsizestring(L, l) numblocks(L, 0, sizeof(TString)+l) -#define gcsizeudata gcsizestring(L, 0) +#define sizestring(l) (sizeof(TString)+(lint32)(l)*sizeof(char)) +#define gcsizeudata (sizeof(TString)) void luaS_init (lua_State *L); -- cgit v1.2.3-55-g6feb