From fb8fa661366e15e98c60d8929feaab9e551a02f9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 1 Jun 2018 13:51:34 -0300 Subject: no more 'luaH_emptyobject' and comparisons of addresses of global variables (instead, use a different kind of nil to signal the fake entry returned when a key is not found in a table) --- ltable.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'ltable.h') diff --git a/ltable.h b/ltable.h index bcf92984..9b1a3464 100644 --- a/ltable.h +++ b/ltable.h @@ -1,5 +1,5 @@ /* -** $Id: ltable.h,v 2.25 2017/06/09 16:48:44 roberto Exp roberto $ +** $Id: ltable.h,v 2.26 2018/02/23 13:13:31 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -21,8 +21,6 @@ /* true when 't' is using 'dummynode' as its hash part */ #define isdummy(t) ((t)->lastfree == NULL) -#define luaH_emptyobject (&luaH_emptyobject_) - /* allocated size for hash nodes */ #define allocsizenode(t) (isdummy(t) ? 0 : sizenode(t)) @@ -32,9 +30,6 @@ #define nodefromval(v) cast(Node *, (v)) -LUAI_DDEC const TValue luaH_emptyobject_; - - LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key); LUAI_FUNC void luaH_setint (lua_State *L, Table *t, lua_Integer key, TValue *value); -- cgit v1.2.3-55-g6feb