Revert "lua: do not use otable where table are enough"

This reverts commit a220d46850.
This commit is contained in:
Julien Danjou 2008-12-04 16:55:40 +01:00
parent a220d46850
commit b0090950a0
3 changed files with 3 additions and 3 deletions

View File

@ -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]))
{

View File

@ -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]);

2
tag.c
View File

@ -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]);