X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbemodule.h;h=db8424872e8062ad75f05e87eb3542e4c0c3f674;hb=6f068af98daa4725d60e5d23a8f98ec2841cfa44;hp=80bec6a4bf80c37e7629cf010d55d34565080feb;hpb=4d5c3365a58cba59993045a9e08e686d8ae079a7;p=libfirm diff --git a/ir/be/bemodule.h b/ir/be/bemodule.h index 80bec6a4b..db8424872 100644 --- a/ir/be/bemodule.h +++ b/ir/be/bemodule.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -17,27 +17,32 @@ * PURPOSE. */ -/* - * Author: Matthias Braun - * Date: 11.12.2006 - * Copyright: (c) Universitaet Karlsruhe - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. +/** + * @file + * @brief Backend module interface. + * @author Matthias Braun + * @date 11.12.2006 + * @version $Id$ */ -#ifndef BEMODULE_H_ -#define BEMODULE_H_ +#ifndef FIRM_BE_BEMODULE_H +#define FIRM_BE_BEMODULE_H /** * Mark a function as module constructor. * 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 @@ -51,7 +56,7 @@ void be_quit_modules(void); //--------------------------------------------------------------------------- -#include +#include "lc_opts.h" typedef struct be_module_list_entry_t be_module_list_entry_t; @@ -63,4 +68,4 @@ void be_add_module_list_opt(lc_opt_entry_t *grp, const char *name, be_module_list_entry_t * const * first, void **var); -#endif +#endif /* FIRM_BE_BEMODULE_H */