diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-05-14 15:38:29 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-05-14 15:38:29 -0300 |
commit | bd9e68cfcdbbae2fd49ab51a9df4a93ec56eff45 (patch) | |
tree | f11ad6c42c0bb42eaa1b45548684fbc60c27996b /tree.h | |
parent | 9747f3c87a205d9aa914a650686d6dc4accde1d9 (diff) | |
download | lua-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.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 @@ | |||
15 | typedef struct TaggedString | 15 | typedef 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 | ||
27 | TaggedString *lua_createstring (char *str); | 28 | TaggedString *lua_createstring (char *str); |
28 | TaggedString *luaI_createuserdata (char *buff, long size, int tag); | 29 | TaggedString *luaI_createuserdata (char *buff, long size, int tag); |
29 | Long lua_strcollector (void); | 30 | TaggedString *luaI_strcollector (long *cont); |
30 | void luaI_strcallIM (void); | 31 | void luaI_strfree (TaggedString *l); |
32 | void luaI_strcallIM (TaggedString *l); | ||
31 | 33 | ||
32 | #endif | 34 | #endif |