diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-16 16:25:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-09-16 16:25:59 -0300 |
commit | a404f6e0e621927dc3765db556a7f4e645756a47 (patch) | |
tree | a539445c84760ee9190361db86da88223075c97a /hash.h | |
parent | 2d2440a753af88fe6e23a150a4b113005873e691 (diff) | |
download | lua-a404f6e0e621927dc3765db556a7f4e645756a47.tar.gz lua-a404f6e0e621927dc3765db556a7f4e645756a47.tar.bz2 lua-a404f6e0e621927dc3765db556a7f4e645756a47.zip |
Lua tables (hash)
Diffstat (limited to 'hash.h')
-rw-r--r-- | hash.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/hash.h b/hash.h deleted file mode 100644 index 4fbde55c..00000000 --- a/hash.h +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /* | ||
2 | ** hash.h | ||
3 | ** hash manager for lua | ||
4 | ** $Id: hash.h,v 2.15 1997/03/31 14:02:58 roberto Exp roberto $ | ||
5 | */ | ||
6 | |||
7 | #ifndef hash_h | ||
8 | #define hash_h | ||
9 | |||
10 | #include "types.h" | ||
11 | #include "opcode.h" | ||
12 | |||
13 | typedef struct node { | ||
14 | TObject ref; | ||
15 | TObject val; | ||
16 | } Node; | ||
17 | |||
18 | typedef struct Hash { | ||
19 | struct Hash *next; | ||
20 | Node *node; | ||
21 | int nhash; | ||
22 | int nuse; | ||
23 | int htag; | ||
24 | char mark; | ||
25 | } Hash; | ||
26 | |||
27 | |||
28 | int lua_equalObj (TObject *t1, TObject *t2); | ||
29 | int luaI_redimension (int nhash); | ||
30 | Hash *lua_createarray (int nhash); | ||
31 | void lua_hashmark (Hash *h); | ||
32 | Hash *luaI_hashcollector (long *count); | ||
33 | void luaI_hashcallIM (Hash *l); | ||
34 | void luaI_hashfree (Hash *frees); | ||
35 | TObject *lua_hashget (Hash *t, TObject *ref); | ||
36 | TObject *lua_hashdefine (Hash *t, TObject *ref); | ||
37 | void lua_next (void); | ||
38 | |||
39 | #endif | ||