X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbemodule.h;h=db8424872e8062ad75f05e87eb3542e4c0c3f674;hb=d0d5cc041a1bdc5a62aab757dbf7d3069796c63a;hp=c1cb23c779aa7f85ccf47eb9ba740f5a5c1aba6f;hpb=73ae17c0daf7b7779d669eb78f6bad992ad68111;p=libfirm diff --git a/ir/be/bemodule.h b/ir/be/bemodule.h index c1cb23c77..db8424872 100644 --- a/ir/be/bemodule.h +++ b/ir/be/bemodule.h @@ -32,13 +32,17 @@ * Currently you have to add modules manually in the list in bemodule.c. * However future extensions might allow them to be automatically discovered * when they are marked with BE_REGISTER_MODULE_CONSTRUCTOR + * + * Add this before your constructor as it will declare the function */ -#define BE_REGISTER_MODULE_CONSTRUCTOR(func) +#define BE_REGISTER_MODULE_CONSTRUCTOR(func) void func(void); /** * Mark a function as module destructor. + * + * Add this before your constructor as it will declare the function */ -#define BE_REGISTER_MODULE_DESTRUCTOR(func) +#define BE_REGISTER_MODULE_DESTRUCTOR(func) void func(void); /** * Call all module constructors @@ -57,7 +61,7 @@ void be_quit_modules(void); typedef struct be_module_list_entry_t be_module_list_entry_t; void be_add_module_to_list(be_module_list_entry_t **list_head, const char *name, - const void *module); + void *module); void be_add_module_list_opt(lc_opt_entry_t *grp, const char *name, const char *description,