summaryrefslogtreecommitdiff
path: root/hash.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-01-12 12:19:04 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-01-12 12:19:04 -0200
commit8faf4d1de2cbda61ae871fc23091deff3672e0fc (patch)
treec31722dca150cfc776ce5cb92dd771399446631f /hash.h
parent53c0a0f43c5ced8e5f7435aa50f1bfb1e5371992 (diff)
downloadlua-8faf4d1de2cbda61ae871fc23091deff3672e0fc.tar.gz
lua-8faf4d1de2cbda61ae871fc23091deff3672e0fc.tar.bz2
lua-8faf4d1de2cbda61ae871fc23091deff3672e0fc.zip
control of garbage collection is done with Longs, as there can be
more than WORD objects to collect.
Diffstat (limited to 'hash.h')
-rw-r--r--hash.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/hash.h b/hash.h
index f51edd00..e594a9cd 100644
--- a/hash.h
+++ b/hash.h
@@ -2,12 +2,14 @@
2** hash.h 2** hash.h
3** hash manager for lua 3** hash manager for lua
4** Luiz Henrique de Figueiredo - 17 Aug 90 4** Luiz Henrique de Figueiredo - 17 Aug 90
5** $Id: hash.h,v 2.6 1994/11/17 13:58:57 roberto Stab roberto $ 5** $Id: hash.h,v 2.7 1994/12/20 21:20:36 roberto Exp roberto $
6*/ 6*/
7 7
8#ifndef hash_h 8#ifndef hash_h
9#define hash_h 9#define hash_h
10 10
11#include "types.h"
12
11typedef struct node 13typedef struct node
12{ 14{
13 Object ref; 15 Object ref;
@@ -27,7 +29,7 @@ typedef struct Hash
27Bool lua_equalObj (Object *t1, Object *t2); 29Bool lua_equalObj (Object *t1, Object *t2);
28Hash *lua_createarray (Word nhash); 30Hash *lua_createarray (Word nhash);
29void lua_hashmark (Hash *h); 31void lua_hashmark (Hash *h);
30Word lua_hashcollector (void); 32Long lua_hashcollector (void);
31Object *lua_hashget (Hash *t, Object *ref); 33Object *lua_hashget (Hash *t, Object *ref);
32Object *lua_hashdefine (Hash *t, Object *ref); 34Object *lua_hashdefine (Hash *t, Object *ref);
33void lua_next (void); 35void lua_next (void);