diff options
author | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1994-04-20 19:07:57 -0300 |
---|---|---|
committer | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1994-04-20 19:07:57 -0300 |
commit | 44521b21e542831a95de0c63271cd38d1cd4d394 (patch) | |
tree | 0fd861510cd5c0a1880410442c642c2388a02e57 /hash.h | |
parent | f8fb7b39478c3468192c69fcb2154f9022dbab64 (diff) | |
download | lua-44521b21e542831a95de0c63271cd38d1cd4d394.tar.gz lua-44521b21e542831a95de0c63271cd38d1cd4d394.tar.bz2 lua-44521b21e542831a95de0c63271cd38d1cd4d394.zip |
Implementacao da nova estrategia para armazenar os arrays
em lista encadeada.
Diffstat (limited to 'hash.h')
-rw-r--r-- | hash.h | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -2,7 +2,7 @@ | |||
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: $ | 5 | ** $Id: hash.h,v 1.1 1993/12/17 18:41:19 celes Exp celes $ |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #ifndef hash_h | 8 | #ifndef hash_h |
@@ -22,13 +22,11 @@ typedef struct Hash | |||
22 | Node **list; | 22 | Node **list; |
23 | } Hash; | 23 | } Hash; |
24 | 24 | ||
25 | #define markarray(t) ((t)->mark) | ||
26 | 25 | ||
27 | Hash *lua_hashcreate (unsigned int nhash); | 26 | Hash *lua_createarray (int nhash); |
28 | void lua_hashdelete (Hash *h); | 27 | void lua_hashmark (Hash *h); |
28 | void lua_hashcollector (void); | ||
29 | Object *lua_hashdefine (Hash *t, Object *ref); | 29 | Object *lua_hashdefine (Hash *t, Object *ref); |
30 | void lua_hashmark (Hash *h); | ||
31 | |||
32 | void lua_next (void); | 30 | void lua_next (void); |
33 | 31 | ||
34 | #endif | 32 | #endif |