Exemplo n.º 1
0
static void check_for_held(void)
{
	struct state_list *slist;
	struct sm_state *tmp;

	slist = get_all_states(my_id);
	FOR_EACH_PTR(slist, tmp) {
		if (slist_has_state(tmp->possible, &held)) {
			sm_msg("warn: '%s' held on error path.",
				tmp->name);
		}
	} END_FOR_EACH_PTR(tmp);
	free_slist(&slist);
}
Exemplo n.º 2
0
static void compile(module_t m, struct symbol_list *list)
{
	struct symbol *sym;

	FOR_EACH_PTR(list, sym) {
		struct entrypoint *ep;

		expand_symbol(sym);
		ep = linearize_symbol(sym);
		if (ep)
			emit_function(m, ep);
		else
			emit_toplevel(m, sym);
	} END_FOR_EACH_PTR(sym);
}