X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbemodule.h;h=6cb05ab0297a7d37cbe16ab913970fd3286df43a;hb=1209ae49db1b42e9d39269eb3a86b187f0c263d9;hp=dfa67c567fade5d3147976a299a7316f7a7b005b;hpb=da48a7f7266cfe6274fc4d159d63bba245724222;p=libfirm diff --git a/ir/be/bemodule.h b/ir/be/bemodule.h index dfa67c567..6cb05ab02 100644 --- a/ir/be/bemodule.h +++ b/ir/be/bemodule.h @@ -1,24 +1,47 @@ /* - * Author: Matthias Braun - * Date: 11.12.2006 - * Copyright: (c) Universitaet Karlsruhe - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. + * + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. + * + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. */ -#ifndef BEMODULE_H_ -#define BEMODULE_H_ + +/** + * @file + * @brief Backend module interface. + * @author Matthias Braun + * @date 11.12.2006 + */ +#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 @@ -32,9 +55,7 @@ void be_quit_modules(void); //--------------------------------------------------------------------------- -#ifdef WITH_LIBCORE - -#include +#include "lc_opts.h" typedef struct be_module_list_entry_t be_module_list_entry_t; @@ -46,6 +67,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 +#endif /* FIRM_BE_BEMODULE_H */