changed code placement so it can work in more environments:
[libfirm] / ir / ana / irextbb.h
index b7b38de..4327e84 100644 (file)
 
 #include "irgraph.h"
 
+#ifndef _IR_EXTBB_TYPEDEF_
+#define _IR_EXTBB_TYPEDEF_
 typedef struct _ir_extblk ir_extblk;
+#endif
 
 /** Flags for extended basic block state. */
 typedef enum {
   ir_extblk_info_none    = 0,  /**< No extended basic block information is constructed. Default. */
   ir_extblk_info_valid   = 1,  /**< Extended basic block information is valid. */
-  ir_extblk_info_invalid = 2,  /**< Extended basic block information is constructed but invalid. */
+  ir_extblk_info_invalid = 2   /**< Extended basic block information is constructed but invalid. */
 } irg_extblk_info_state;
 
 /**
@@ -82,12 +85,12 @@ void *get_extbb_link(const ir_extblk *blk);
 void set_extbb_link(ir_extblk *blk, void *link);
 
 /**
- * Return the number of basis blocks of an extended block
+ * Return the number of basic blocks of an extended block
  */
 int get_extbb_n_blocks(const ir_extblk *blk);
 
 /**
- * Return the i'th basis block of an extended block
+ * Return the i'th basic block of an extended block
  */
 ir_node *get_extbb_block(ir_extblk *blk, int pos);