aboutsummaryrefslogtreecommitdiff
path: root/hash.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-03-31 11:02:58 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-03-31 11:02:58 -0300
commitad5574c4c97af3ef863a6fb4b72142f3780103b2 (patch)
tree7ef70322749e3e433321edbea89d61087d820c55 /hash.h
parent264f8c5e7bd168de2f0ca07399e6fc70d5a820d3 (diff)
downloadlua-ad5574c4c97af3ef863a6fb4b72142f3780103b2.tar.gz
lua-ad5574c4c97af3ef863a6fb4b72142f3780103b2.tar.bz2
lua-ad5574c4c97af3ef863a6fb4b72142f3780103b2.zip
"Object" renamed to "TObject" (Tagged Object), to avoid conflicts with
pre-defined names in some C compilers.
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 1497dd0b..a91e1e15 100644
--- a/hash.h
+++ b/hash.h
@@ -1,7 +1,7 @@
1/* 1/*
2** hash.h 2** hash.h
3** hash manager for lua 3** hash manager for lua
4** $Id: hash.h,v 2.13 1997/02/26 17:38:41 roberto Unstable roberto $ 4** $Id: hash.h,v 2.14 1997/03/19 19:41:10 roberto Exp roberto $
5*/ 5*/
6 6
7#ifndef hash_h 7#ifndef hash_h
@@ -11,8 +11,8 @@
11#include "opcode.h" 11#include "opcode.h"
12 12
13typedef struct node { 13typedef struct node {
14 Object ref; 14 TObject ref;
15 Object val; 15 TObject val;
16} Node; 16} Node;
17 17
18typedef struct Hash { 18typedef struct Hash {
@@ -25,14 +25,14 @@ typedef struct Hash {
25} Hash; 25} Hash;
26 26
27 27
28int lua_equalObj (Object *t1, Object *t2); 28int lua_equalObj (TObject *t1, TObject *t2);
29int luaI_redimension (int nhash); 29int luaI_redimension (int nhash);
30Hash *lua_createarray (int nhash); 30Hash *lua_createarray (int nhash);
31void lua_hashmark (Hash *h); 31void lua_hashmark (Hash *h);
32Long lua_hashcollector (void); 32Long lua_hashcollector (void);
33void luaI_hashcallIM (void); 33void luaI_hashcallIM (void);
34Object *lua_hashget (Hash *t, Object *ref); 34TObject *lua_hashget (Hash *t, TObject *ref);
35Object *lua_hashdefine (Hash *t, Object *ref); 35TObject *lua_hashdefine (Hash *t, TObject *ref);
36void lua_next (void); 36void lua_next (void);
37 37
38#endif 38#endif