Exemplo n.º 1
0
Arquivo: tag.c Projeto: azuwis/awesome
/** Garbage collect a tag.
 * \param L The Lua VM state.
 * \return 0.
 */
static int
luaA_tag_gc(lua_State *L)
{
    tag_t *tag = luaL_checkudata(L, 1, "tag");
    client_array_wipe(&tag->clients);
    p_delete(&tag->name);
    return 0;
}
Exemplo n.º 2
0
/** Garbage collect a tag.
 * \param L The Lua VM state.
 * \return 0.
 */
static int
luaA_tag_gc(lua_State *L)
{
    tag_t *tag = luaA_checkudata(L, 1, &tag_class);
    client_array_wipe(&tag->clients);
    p_delete(&tag->name);
    return luaA_object_gc(L);
}
Exemplo n.º 3
0
Arquivo: tag.c Projeto: 8ware/awesome
static void
tag_wipe(tag_t *tag)
{
    client_array_wipe(&tag->clients);
    p_delete(&tag->name);
}