aboutsummaryrefslogtreecommitdiff
path: root/tree.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-05-14 15:38:29 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-05-14 15:38:29 -0300
commitbd9e68cfcdbbae2fd49ab51a9df4a93ec56eff45 (patch)
treef11ad6c42c0bb42eaa1b45548684fbc60c27996b /tree.h
parent9747f3c87a205d9aa914a650686d6dc4accde1d9 (diff)
downloadlua-bd9e68cfcdbbae2fd49ab51a9df4a93ec56eff45.tar.gz
lua-bd9e68cfcdbbae2fd49ab51a9df4a93ec56eff45.tar.bz2
lua-bd9e68cfcdbbae2fd49ab51a9df4a93ec56eff45.zip
new implementation of gc: "Pre-collect" garbage in temporary lists and
then call fallbacks.
Diffstat (limited to 'tree.h')
-rw-r--r--tree.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/tree.h b/tree.h
index ea9422ea..15b77b5f 100644
--- a/tree.h
+++ b/tree.h
@@ -1,7 +1,7 @@
1/* 1/*
2** tree.h 2** tree.h
3** TecCGraf - PUC-Rio 3** TecCGraf - PUC-Rio
4** $Id: tree.h,v 1.15 1997/02/11 11:35:05 roberto Exp roberto $ 4** $Id: tree.h,v 1.16 1997/03/19 19:41:10 roberto Exp roberto $
5*/ 5*/
6 6
7#ifndef tree_h 7#ifndef tree_h
@@ -15,6 +15,7 @@
15typedef struct TaggedString 15typedef struct TaggedString
16{ 16{
17 int tag; /* if != LUA_T_STRING, this is a userdata */ 17 int tag; /* if != LUA_T_STRING, this is a userdata */
18 struct TaggedString *next;
18 long size; 19 long size;
19 Word varindex; /* != NOT_USED if this is a symbol */ 20 Word varindex; /* != NOT_USED if this is a symbol */
20 Word constindex; /* != NOT_USED if this is a constant */ 21 Word constindex; /* != NOT_USED if this is a constant */
@@ -26,7 +27,8 @@ typedef struct TaggedString
26 27
27TaggedString *lua_createstring (char *str); 28TaggedString *lua_createstring (char *str);
28TaggedString *luaI_createuserdata (char *buff, long size, int tag); 29TaggedString *luaI_createuserdata (char *buff, long size, int tag);
29Long lua_strcollector (void); 30TaggedString *luaI_strcollector (long *cont);
30void luaI_strcallIM (void); 31void luaI_strfree (TaggedString *l);
32void luaI_strcallIM (TaggedString *l);
31 33
32#endif 34#endif