make firm compilable with a c++ compiler
[libfirm] / ir / be / bemachine.h
index 57c47e8..f106276 100644 (file)
@@ -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.
  *
 #ifndef FIRM_BE_BEMACHINE_H
 #define FIRM_BE_BEMACHINE_H
 
-typedef struct _be_execution_unit_type_t be_execution_unit_type_t;
-typedef struct _be_execution_unit_t      be_execution_unit_t;
-typedef struct _be_machine_t             be_machine_t;
+#include "be_types.h"
 
-struct _be_execution_unit_t {
+struct be_execution_unit_t {
        be_execution_unit_type_t *tp;
        const char               *name;
 };
 
-struct _be_execution_unit_type_t {
+struct be_execution_unit_type_t {
        unsigned            n_units;
        unsigned            ports_per_unit;
        const char          *name;
        be_execution_unit_t *units;
 };
 
-struct _be_machine_t {
+struct be_machine_t {
        unsigned                 bundle_size;
        unsigned                 bundels_per_cycle;
        unsigned                 n_unit_types;