aboutsummaryrefslogtreecommitdiff
path: root/ltablib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltablib.c')
-rw-r--r--ltablib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ltablib.c b/ltablib.c
index 22bfae42..5a78c15b 100644
--- a/ltablib.c
+++ b/ltablib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltablib.c,v 1.94 2018/02/25 12:48:16 roberto Exp roberto $ 2** $Id: ltablib.c,v 1.95 2018/02/27 18:47:32 roberto Exp roberto $
3** Library for Table Manipulation 3** Library for Table Manipulation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -173,7 +173,7 @@ static int tconcat (lua_State *L) {
173** ======================================================= 173** =======================================================
174*/ 174*/
175 175
176static int pack (lua_State *L) { 176static int tpack (lua_State *L) {
177 int i; 177 int i;
178 int n = lua_gettop(L); /* number of elements to pack */ 178 int n = lua_gettop(L); /* number of elements to pack */
179 lua_createtable(L, n, 1); /* create result table */ 179 lua_createtable(L, n, 1); /* create result table */
@@ -186,7 +186,7 @@ static int pack (lua_State *L) {
186} 186}
187 187
188 188
189static int unpack (lua_State *L) { 189static int tunpack (lua_State *L) {
190 lua_Unsigned n; 190 lua_Unsigned n;
191 lua_Integer i = luaL_optinteger(L, 2, 1); 191 lua_Integer i = luaL_optinteger(L, 2, 1);
192 lua_Integer e = luaL_opt(L, luaL_checkinteger, 3, luaL_len(L, 1)); 192 lua_Integer e = luaL_opt(L, luaL_checkinteger, 3, luaL_len(L, 1));
@@ -408,8 +408,8 @@ static int sort (lua_State *L) {
408static const luaL_Reg tab_funcs[] = { 408static const luaL_Reg tab_funcs[] = {
409 {"concat", tconcat}, 409 {"concat", tconcat},
410 {"insert", tinsert}, 410 {"insert", tinsert},
411 {"pack", pack}, 411 {"pack", tpack},
412 {"unpack", unpack}, 412 {"unpack", tunpack},
413 {"remove", tremove}, 413 {"remove", tremove},
414 {"move", tmove}, 414 {"move", tmove},
415 {"sort", sort}, 415 {"sort", sort},