diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-23 11:58:02 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-23 11:58:02 -0200 |
commit | e5743adb21c295e9903c394096c6f3737fb6dec4 (patch) | |
tree | e7eb7e12615bd9d4eba5c2b8956bc09f416cd361 /ltable.h | |
parent | 514783de9d6cd538d1a51aa8979b7763132730ac (diff) | |
download | lua-e5743adb21c295e9903c394096c6f3737fb6dec4.tar.gz lua-e5743adb21c295e9903c394096c6f3737fb6dec4.tar.bz2 lua-e5743adb21c295e9903c394096c6f3737fb6dec4.zip |
macros `key', `val', and `node' don't need the state
Diffstat (limited to 'ltable.h')
-rw-r--r-- | ltable.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.h,v 1.15 1999/10/26 10:53:40 roberto Exp roberto $ | 2 | ** $Id: ltable.h,v 1.16 1999/11/22 13:12:07 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 | */ |
@@ -10,9 +10,9 @@ | |||
10 | #include "lobject.h" | 10 | #include "lobject.h" |
11 | 11 | ||
12 | 12 | ||
13 | #define node(L, t,i) (&(t)->node[i]) | 13 | #define node(t,i) (&(t)->node[i]) |
14 | #define key(L, n) (&(n)->key) | 14 | #define key(n) (&(n)->key) |
15 | #define val(L, n) (&(n)->val) | 15 | #define val(n) (&(n)->val) |
16 | 16 | ||
17 | #define luaH_move(L, t,from,to) (luaH_setint(L, t, to, luaH_getint(L, t, from))) | 17 | #define luaH_move(L, t,from,to) (luaH_setint(L, t, to, luaH_getint(L, t, from))) |
18 | 18 | ||