aboutsummaryrefslogtreecommitdiff
path: root/lstring.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-29 09:42:13 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-29 09:42:13 -0300
commitdad808a73a98a23729614b8814728d76b4e5d577 (patch)
tree945fabce1906c5f08fe6512476d7ca3d84017bca /lstring.h
parentca7fd50a4ec2f1b41292f859ba0d5e52a2b22a5c (diff)
downloadlua-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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstring.h b/lstring.h
index 2b853a0f..c04ef12a 100644
--- a/lstring.h
+++ b/lstring.h
@@ -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
27void luaS_init (lua_State *L); 27void luaS_init (lua_State *L);