From b0090950a05c9f0cb6d8088aadc3220c592d05fb Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 4 Dec 2008 16:55:40 +0100 Subject: [PATCH] Revert "lua: do not use otable where table are enough" This reverts commit a220d4685040bee551a103bff15e505d07155463. --- client.c | 2 +- mouse.c | 2 +- tag.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client.c b/client.c index 5a99a387..2add23c0 100644 --- a/client.c +++ b/client.c @@ -1105,7 +1105,7 @@ luaA_client_tags(lua_State *L) } tags = &globalconf.screens[(*c)->screen].tags; - lua_newtable(L); + luaA_otable_new(L); for(int i = 0; i < tags->len; i++) if(is_client_tagged(*c, tags->tab[i])) { diff --git a/mouse.c b/mouse.c index 0990b430..b7699661 100644 --- a/mouse.c +++ b/mouse.c @@ -1156,7 +1156,7 @@ luaA_button_array_set(lua_State *L, int idx, button_array_t *buttons) int luaA_button_array_get(lua_State *L, button_array_t *buttons) { - lua_newtable(L); + luaA_otable_new(L); for(int i = 0; i < buttons->len; i++) { luaA_button_userdata_new(L, buttons->tab[i]); diff --git a/tag.c b/tag.c index a0a30109..0399a78a 100644 --- a/tag.c +++ b/tag.c @@ -322,7 +322,7 @@ luaA_tag_clients(lua_State *L) } } - lua_newtable(L); + luaA_otable_new(L); for(i = 0; i < clients->len; i++) { luaA_client_userdata_new(L, clients->tab[i]);