aboutsummaryrefslogtreecommitdiff
path: root/ltable.h
diff options
context:
space:
mode:
Diffstat (limited to 'ltable.h')
-rw-r--r--ltable.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ltable.h b/ltable.h
index 88f90636..bcf92984 100644
--- a/ltable.h
+++ b/ltable.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.h,v 2.24 2017/05/19 12:48:15 roberto Exp roberto $ 2** $Id: ltable.h,v 2.25 2017/06/09 16:48:44 roberto Exp roberto $
3** Lua tables (hash) 3** Lua tables (hash)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -21,6 +21,8 @@
21/* true when 't' is using 'dummynode' as its hash part */ 21/* true when 't' is using 'dummynode' as its hash part */
22#define isdummy(t) ((t)->lastfree == NULL) 22#define isdummy(t) ((t)->lastfree == NULL)
23 23
24#define luaH_emptyobject (&luaH_emptyobject_)
25
24 26
25/* allocated size for hash nodes */ 27/* allocated size for hash nodes */
26#define allocsizenode(t) (isdummy(t) ? 0 : sizenode(t)) 28#define allocsizenode(t) (isdummy(t) ? 0 : sizenode(t))
@@ -30,6 +32,9 @@
30#define nodefromval(v) cast(Node *, (v)) 32#define nodefromval(v) cast(Node *, (v))
31 33
32 34
35LUAI_DDEC const TValue luaH_emptyobject_;
36
37
33LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key); 38LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key);
34LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key, 39LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key,
35 TValue *value); 40 TValue *value);