aboutsummaryrefslogtreecommitdiff
path: root/hash.h
diff options
context:
space:
mode:
authorWaldemar Celes <celes@tecgraf.puc-rio.br>1994-04-20 19:07:57 -0300
committerWaldemar Celes <celes@tecgraf.puc-rio.br>1994-04-20 19:07:57 -0300
commit44521b21e542831a95de0c63271cd38d1cd4d394 (patch)
tree0fd861510cd5c0a1880410442c642c2388a02e57 /hash.h
parentf8fb7b39478c3468192c69fcb2154f9022dbab64 (diff)
downloadlua-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.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/hash.h b/hash.h
index 0a66a492..cea34df1 100644
--- a/hash.h
+++ b/hash.h
@@ -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
27Hash *lua_hashcreate (unsigned int nhash); 26Hash *lua_createarray (int nhash);
28void lua_hashdelete (Hash *h); 27void lua_hashmark (Hash *h);
28void lua_hashcollector (void);
29Object *lua_hashdefine (Hash *t, Object *ref); 29Object *lua_hashdefine (Hash *t, Object *ref);
30void lua_hashmark (Hash *h);
31
32void lua_next (void); 30void lua_next (void);
33 31
34#endif 32#endif