summaryrefslogtreecommitdiff
path: root/src/hash.h
diff options
context:
space:
mode:
authorLua Team <team@lua.org>1996-05-14 12:00:00 +0000
committerrepogen <>1996-05-14 12:00:00 +0000
commit721542976ebc89f2f8d17d19be7e4426570b69be (patch)
tree0c79a45c63aa89d6e4b8ac80931e46d74a72f8cb /src/hash.h
parent71754d2f6423fb9b6e87658e58bafc5470d53f65 (diff)
downloadlua-github-2.4.tar.gz
Lua 2.42.4
Diffstat (limited to 'src/hash.h')
-rw-r--r--src/hash.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/hash.h b/src/hash.h
index 2af6ce16..c2b52017 100644
--- a/src/hash.h
+++ b/src/hash.h
@@ -1,14 +1,14 @@
/*
** hash.h
** hash manager for lua
-** Luiz Henrique de Figueiredo - 17 Aug 90
-** $Id: hash.h,v 2.8 1995/01/12 14:19:04 roberto Exp $
+** $Id: hash.h,v 2.12 1996/05/06 14:30:27 roberto Exp $
*/
#ifndef hash_h
#define hash_h
#include "types.h"
+#include "opcode.h"
typedef struct node
{
@@ -19,15 +19,16 @@ typedef struct node
typedef struct Hash
{
struct Hash *next;
- char mark;
- Word nhash;
- Word nuse;
Node *node;
+ int nhash;
+ int nuse;
+ char mark;
} Hash;
-Bool lua_equalObj (Object *t1, Object *t2);
-Hash *lua_createarray (Word nhash);
+int lua_equalObj (Object *t1, Object *t2);
+int luaI_redimension (int nhash);
+Hash *lua_createarray (int nhash);
void lua_hashmark (Hash *h);
Long lua_hashcollector (void);
Object *lua_hashget (Hash *t, Object *ref);