#define hook_new_type(tp) hook_exec(hook_new_type, (ctx, tp))
#define hook_node_info(F, node) hook_exec(hook_node_info, (ctx, F, node))
-/* the initializer, move to hooks_t.h some day */
-int firm_init_hooks(void);
-
#endif
firm_init_flags();
/* initialize all ident stuff */
init_ident(def_params.id_if, 1024);
- /* initialize Firm hooks */
- firm_init_hooks();
/* enhanced statistics, need idents and hooks */
firm_init_stat(def_params.enable_statistics);
/* Edges need hooks. */
entry->next = NULL;
}
}
-
-int firm_init_hooks(void) {
- /* this strange code assures that both functions are available
- in a shared library even if none of them is called.
- Meanwhile not needed anymore but ... */
- return (int)register_hook + (int)unregister_hook;
-}