main: rework preprocessor invocation
[cparser] / ast2firm.h
index 279e8da..2271f66 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef AST2FIRM_H
 #define AST2FIRM_H
 
-#include <libfirm/firm_types.h>
+#include <libfirm/firm.h>
 #include "ast.h"
 #include "type.h"
 
@@ -32,4 +32,14 @@ void exit_ast2firm(void);
 ir_mode *get_atomic_mode(atomic_type_kind_t kind);
 ir_type *get_ir_type(type_t *type);
 
+typedef ident* (*create_ld_ident_func)(entity_t *entity);
+
+void set_create_ld_ident(create_ld_ident_func func);
+
+ir_tarval *fold_constant_to_tarval(const expression_t *expression);
+void determine_enum_values(enum_type_t *type);
+
+extern fp_model_t firm_fp_model;
+extern ir_mode *atomic_modes[ATOMIC_TYPE_LAST+1];
+
 #endif