summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-01-05 11:52:37 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-01-05 11:52:37 -0200
commit3c55790ebee7148281cd00f44aa293e456b4da6d (patch)
treed802bca3c72d90f7b40463aa2993befd4c404214
parent0adfa773b96d815cab3f17afd7bcafd3eeee7c49 (diff)
downloadlua-github-3c55790ebee7148281cd00f44aa293e456b4da6d.tar.gz
'setkey' -> 'setnodekey' (to avoid conflicts with POSIX)v5.3.0v5-3-0
-rw-r--r--lobject.h4
-rw-r--r--ltable.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lobject.h b/lobject.h
index 10dd7529..f98eb812 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
/*
-** $Id: lobject.h,v 2.104 2014/10/25 11:50:46 roberto Exp roberto $
+** $Id: lobject.h,v 2.105 2014/12/19 13:36:32 roberto Exp roberto $
** Type definitions for Lua objects
** See Copyright Notice in lua.h
*/
@@ -473,7 +473,7 @@ typedef union TKey {
/* copy a value into a key without messing up field 'next' */
-#define setkey(L,key,obj) \
+#define setnodekey(L,key,obj) \
{ TKey *k_=(key); const TValue *io_=(obj); \
k_->nk.value_ = io_->value_; k_->nk.tt_ = io_->tt_; \
(void)L; checkliveness(G(L),io_); }
diff --git a/ltable.c b/ltable.c
index 131a9aa2..563ae6de 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
/*
-** $Id: ltable.c,v 2.98 2014/10/25 11:50:46 roberto Exp roberto $
+** $Id: ltable.c,v 2.99 2014/11/02 19:19:04 roberto Exp roberto $
** Lua tables (hash)
** See Copyright Notice in lua.h
*/
@@ -484,7 +484,7 @@ TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key) {
mp = f;
}
}
- setkey(L, &mp->i_key, key);
+ setnodekey(L, &mp->i_key, key);
luaC_barrierback(L, t, key);
lua_assert(ttisnil(gval(mp)));
return gval(mp);