diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-10-18 14:29:15 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-10-18 14:29:15 -0200 |
| commit | 2c89651fc6ed7b5b53a3dc3bef9d13c049eb1000 (patch) | |
| tree | a5c1d359832933c4d6b30f35088c0fdae46e9c3f | |
| parent | 3a89c973ff139c7048ee9d85e347f4b054f62b89 (diff) | |
| download | lua-2c89651fc6ed7b5b53a3dc3bef9d13c049eb1000.tar.gz lua-2c89651fc6ed7b5b53a3dc3bef9d13c049eb1000.tar.bz2 lua-2c89651fc6ed7b5b53a3dc3bef9d13c049eb1000.zip | |
macro "val" should live together with macro "ref".
| -rw-r--r-- | ltable.c | 3 | ||||
| -rw-r--r-- | ltable.h | 3 |
2 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltable.c,v 1.1 1997/09/16 19:25:59 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 1.2 1997/09/26 16:46:20 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 | */ |
| @@ -15,7 +15,6 @@ | |||
| 15 | 15 | ||
| 16 | #define nuse(t) ((t)->nuse) | 16 | #define nuse(t) ((t)->nuse) |
| 17 | #define nodevector(t) ((t)->node) | 17 | #define nodevector(t) ((t)->node) |
| 18 | #define val(n) (&(n)->val) | ||
| 19 | 18 | ||
| 20 | 19 | ||
| 21 | #define REHASH_LIMIT 0.70 /* avoid more than this % full */ | 20 | #define REHASH_LIMIT 0.70 /* avoid more than this % full */ |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltable.h,v 1.1 1997/09/16 19:25:59 roberto Exp roberto $ | 2 | ** $Id: ltable.h,v 1.2 1997/09/26 16:46:20 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 | */ |
| @@ -15,6 +15,7 @@ extern GCnode luaH_root; | |||
| 15 | 15 | ||
| 16 | #define node(t,i) (&(t)->node[i]) | 16 | #define node(t,i) (&(t)->node[i]) |
| 17 | #define ref(n) (&(n)->ref) | 17 | #define ref(n) (&(n)->ref) |
| 18 | #define val(n) (&(n)->val) | ||
| 18 | #define nhash(t) ((t)->nhash) | 19 | #define nhash(t) ((t)->nhash) |
| 19 | 20 | ||
| 20 | Hash *luaH_new (int nhash); | 21 | Hash *luaH_new (int nhash); |
