X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Fbe.h;h=2b1760085873570f8c99080e3446978c7582b7b9;hb=fa9c992b5f23e7a059ac91fdd04b409b951ebcc4;hp=3f2cffd3cfdd324f7e0f01001806cc4cc29c5048;hpb=f1522129041d11a7b887abb5a3d8d5a2908758bb;p=libfirm diff --git a/include/libfirm/be.h b/include/libfirm/be.h index 3f2cffd3c..2b1760085 100644 --- a/include/libfirm/be.h +++ b/include/libfirm/be.h @@ -26,8 +26,11 @@ #ifndef FIRM_BE_MAIN_H #define FIRM_BE_MAIN_H +#ifdef __cplusplus +extern "C" { +#endif + #include -#include #include "irarch.h" #include "archop.h" #include "lowering.h" @@ -103,16 +106,20 @@ void be_main(FILE *output, const char *compilation_unit_name); /** * parse assembler constraint strings and returns flags (so the frontend knows - * which operands are inputs/outputs and wether memory is required) + * which operands are inputs/outputs and whether memory is required) */ asm_constraint_flags_t be_parse_asm_constraints(const char *constraints); /** - * tests wether a string is a valid clobber in an asm instruction + * tests whether a string is a valid clobber in an ASM instruction */ -bool be_is_valid_clobber(const char *clobber); +int be_is_valid_clobber(const char *clobber); typedef struct be_main_env_t be_main_env_t; typedef struct be_options_t be_options_t; +#ifdef __cplusplus +} +#endif + #endif