diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-01-12 12:19:04 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-01-12 12:19:04 -0200 |
| commit | 8faf4d1de2cbda61ae871fc23091deff3672e0fc (patch) | |
| tree | c31722dca150cfc776ce5cb92dd771399446631f /hash.h | |
| parent | 53c0a0f43c5ced8e5f7435aa50f1bfb1e5371992 (diff) | |
| download | lua-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.h | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -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 | |||
| 11 | typedef struct node | 13 | typedef struct node |
| 12 | { | 14 | { |
| 13 | Object ref; | 15 | Object ref; |
| @@ -27,7 +29,7 @@ typedef struct Hash | |||
| 27 | Bool lua_equalObj (Object *t1, Object *t2); | 29 | Bool lua_equalObj (Object *t1, Object *t2); |
| 28 | Hash *lua_createarray (Word nhash); | 30 | Hash *lua_createarray (Word nhash); |
| 29 | void lua_hashmark (Hash *h); | 31 | void lua_hashmark (Hash *h); |
| 30 | Word lua_hashcollector (void); | 32 | Long lua_hashcollector (void); |
| 31 | Object *lua_hashget (Hash *t, Object *ref); | 33 | Object *lua_hashget (Hash *t, Object *ref); |
| 32 | Object *lua_hashdefine (Hash *t, Object *ref); | 34 | Object *lua_hashdefine (Hash *t, Object *ref); |
| 33 | void lua_next (void); | 35 | void lua_next (void); |
