Clean up turn_back_am(), panic on unknown arity.
[libfirm] / include / libfirm / be.h
index 4d1a39e..2b17600 100644 (file)
 #ifndef FIRM_BE_MAIN_H
 #define FIRM_BE_MAIN_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <stdio.h>
-#include <stdbool.h>
 #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 parse_asm_constraints(const char *constraint);
+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 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