mirror of
https://github.com/lua/lua
synced 2024-12-29 13:49:44 +03:00
macro "val" should live together with macro "ref".
This commit is contained in:
parent
3a89c973ff
commit
2c89651fc6
3
ltable.c
3
ltable.c
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: ltable.c,v 1.1 1997/09/16 19:25:59 roberto Exp roberto $
|
** $Id: ltable.c,v 1.2 1997/09/26 16:46:20 roberto Exp roberto $
|
||||||
** Lua tables (hash)
|
** Lua tables (hash)
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
#define nuse(t) ((t)->nuse)
|
#define nuse(t) ((t)->nuse)
|
||||||
#define nodevector(t) ((t)->node)
|
#define nodevector(t) ((t)->node)
|
||||||
#define val(n) (&(n)->val)
|
|
||||||
|
|
||||||
|
|
||||||
#define REHASH_LIMIT 0.70 /* avoid more than this % full */
|
#define REHASH_LIMIT 0.70 /* avoid more than this % full */
|
||||||
|
3
ltable.h
3
ltable.h
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: ltable.h,v 1.1 1997/09/16 19:25:59 roberto Exp roberto $
|
** $Id: ltable.h,v 1.2 1997/09/26 16:46:20 roberto Exp roberto $
|
||||||
** Lua tables (hash)
|
** Lua tables (hash)
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -15,6 +15,7 @@ extern GCnode luaH_root;
|
|||||||
|
|
||||||
#define node(t,i) (&(t)->node[i])
|
#define node(t,i) (&(t)->node[i])
|
||||||
#define ref(n) (&(n)->ref)
|
#define ref(n) (&(n)->ref)
|
||||||
|
#define val(n) (&(n)->val)
|
||||||
#define nhash(t) ((t)->nhash)
|
#define nhash(t) ((t)->nhash)
|
||||||
|
|
||||||
Hash *luaH_new (int nhash);
|
Hash *luaH_new (int nhash);
|
||||||
|
Loading…
Reference in New Issue
Block a user