diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-02-12 15:32:40 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-02-12 15:32:40 -0300 |
commit | 41259bff31dbb904edfb8070006ccb15577f8f04 (patch) | |
tree | 664bf9cbe6394e9074435ecf2bd710712b4537c3 /hash.h | |
parent | afaa98a666acd5f596b50f56bb288815838c096e (diff) | |
download | lua-41259bff31dbb904edfb8070006ccb15577f8f04.tar.gz lua-41259bff31dbb904edfb8070006ccb15577f8f04.tar.bz2 lua-41259bff31dbb904edfb8070006ccb15577f8f04.zip |
BIG CHANGE: new data structure for constants, strings and globals, using
an array of hash tables for all them.
Diffstat (limited to 'hash.h')
-rw-r--r-- | hash.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2,13 +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.8 1995/01/12 14:19:04 roberto Exp roberto $ | 5 | ** $Id: hash.h,v 2.9 1996/02/07 14:13:17 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" | 11 | #include "types.h" |
12 | #include "opcode.h" | ||
12 | 13 | ||
13 | typedef struct node | 14 | typedef struct node |
14 | { | 15 | { |
@@ -27,6 +28,7 @@ typedef struct Hash | |||
27 | 28 | ||
28 | 29 | ||
29 | int lua_equalObj (Object *t1, Object *t2); | 30 | int lua_equalObj (Object *t1, Object *t2); |
31 | Word luaI_redimension (Word nhash); | ||
30 | Hash *lua_createarray (Word nhash); | 32 | Hash *lua_createarray (Word nhash); |
31 | void lua_hashmark (Hash *h); | 33 | void lua_hashmark (Hash *h); |
32 | Long lua_hashcollector (void); | 34 | Long lua_hashcollector (void); |