示例#1
0
文件: se_core.c 项目: itgb/ap_apps
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);
}
示例#2
0
文件: asn1-test.c 项目: ikle/asn1c
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;
}