diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-01-05 11:52:37 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-01-05 11:52:37 -0200 |
commit | 3c55790ebee7148281cd00f44aa293e456b4da6d (patch) | |
tree | d802bca3c72d90f7b40463aa2993befd4c404214 /ltable.c | |
parent | 0adfa773b96d815cab3f17afd7bcafd3eeee7c49 (diff) | |
download | lua-5.3.0.tar.gz lua-5.3.0.tar.bz2 lua-5.3.0.zip |
'setkey' -> 'setnodekey' (to avoid conflicts with POSIX)v5.3.0
Diffstat (limited to '')
-rw-r--r-- | ltable.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 2.98 2014/10/25 11:50:46 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.99 2014/11/02 19:19:04 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 | */ |
@@ -484,7 +484,7 @@ TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key) { | |||
484 | mp = f; | 484 | mp = f; |
485 | } | 485 | } |
486 | } | 486 | } |
487 | setkey(L, &mp->i_key, key); | 487 | setnodekey(L, &mp->i_key, key); |
488 | luaC_barrierback(L, t, key); | 488 | luaC_barrierback(L, t, key); |
489 | lua_assert(ttisnil(gval(mp))); | 489 | lua_assert(ttisnil(gval(mp))); |
490 | return gval(mp); | 490 | return gval(mp); |