aboutsummaryrefslogtreecommitdiff
path: root/hash.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-12-20 19:20:36 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-12-20 19:20:36 -0200
commit8cb8594a3bcfdc1447aebfcd0ac85db9af5ca490 (patch)
tree13d09f704662cafa2597e77c92611b468e4741c9 /hash.h
parentfe8338335dfb4bf37e6b164cb55bfcc94ec6563d (diff)
downloadlua-8cb8594a3bcfdc1447aebfcd0ac85db9af5ca490.tar.gz
lua-8cb8594a3bcfdc1447aebfcd0ac85db9af5ca490.tar.bz2
lua-8cb8594a3bcfdc1447aebfcd0ac85db9af5ca490.zip
better control of integer types and their limits
Diffstat (limited to 'hash.h')
-rw-r--r--hash.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/hash.h b/hash.h
index cfb0ee5c..f51edd00 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: hash.h,v 2.5 1994/11/14 18:41:15 roberto Exp roberto $ 5** $Id: hash.h,v 2.6 1994/11/17 13:58:57 roberto Stab roberto $
6*/ 6*/
7 7
8#ifndef hash_h 8#ifndef hash_h
@@ -18,16 +18,16 @@ typedef struct Hash
18{ 18{
19 struct Hash *next; 19 struct Hash *next;
20 char mark; 20 char mark;
21 unsigned int nhash; 21 Word nhash;
22 unsigned int nuse; 22 Word nuse;
23 Node *node; 23 Node *node;
24} Hash; 24} Hash;
25 25
26 26
27int lua_equalObj (Object *t1, Object *t2); 27Bool lua_equalObj (Object *t1, Object *t2);
28Hash *lua_createarray (int nhash); 28Hash *lua_createarray (Word nhash);
29void lua_hashmark (Hash *h); 29void lua_hashmark (Hash *h);
30int lua_hashcollector (void); 30Word lua_hashcollector (void);
31Object *lua_hashget (Hash *t, Object *ref); 31Object *lua_hashget (Hash *t, Object *ref);
32Object *lua_hashdefine (Hash *t, Object *ref); 32Object *lua_hashdefine (Hash *t, Object *ref);
33void lua_next (void); 33void lua_next (void);