static void se_thread_free(lua_State *L, struct se_thread *thread) { ev_unref(EV_DEFAULT); list_del(&thread->node); se_assert(L, !thread->buf); luaL_unref(L, LUA_REGISTRYINDEX, thread->lref); se_assert(L, !ev_is_active(&thread->timer)); se_assert(L, !ev_is_active(&thread->io)); se_free(thread); }
int main (int argc, char *argv[]) { struct se *se; if ((se = get_ast (stdin)) == NULL) return 1; se_show (0, se); putchar ('\n'); se_free (se); return 0; }