Changed __ to _
[libfirm] / ir / be / besched_t.h
index 7ecc583..e043052 100644 (file)
@@ -31,7 +31,7 @@ void be_sched_init(void);
  * @param irn The node.
  * @return The time step in the schedule.
  */
-static INLINE int __sched_get_time_step(const ir_node *irn)
+static INLINE int _sched_get_time_step(const ir_node *irn)
 {
        return get_irn_sched_info(irn)->time_step;
 }
@@ -41,7 +41,7 @@ static INLINE int __sched_get_time_step(const ir_node *irn)
  * @param irn The ir node.
  * @return 1, if the node has a scheduling successor, 0 if not.
  */
-static INLINE int __sched_has_succ(const ir_node *irn)
+static INLINE int _sched_has_succ(const ir_node *irn)
 {
        const sched_info_t *info = get_irn_sched_info(irn);
        const sched_info_t *block_info = get_irn_sched_info(get_nodes_block(irn));
@@ -53,7 +53,7 @@ static INLINE int __sched_has_succ(const ir_node *irn)
  * @param irn The ir node.
  * @return 1, if the node has a scheduling predecessor, 0 if not.
  */
-static INLINE int __sched_has_prev(const ir_node *irn)
+static INLINE int _sched_has_prev(const ir_node *irn)
 {
        const sched_info_t *info = get_irn_sched_info(irn);
        const sched_info_t *block_info = get_irn_sched_info(get_nodes_block(irn));
@@ -66,10 +66,10 @@ static INLINE int __sched_has_prev(const ir_node *irn)
  * @return The next ir node in the schedule or NULL, if this node has no
  * successor.
  */
-static INLINE const ir_node *__sched_succ(const ir_node *irn)
+static INLINE ir_node *_sched_succ(const ir_node *irn)
 {
        const sched_info_t *info = get_irn_sched_info(irn);
-       return __sched_has_succ(irn) ? get_sched_info_irn(_sched_entry(info->list.next)) : NULL;
+       return _sched_has_succ(irn) ? get_sched_info_irn(_sched_entry(info->list.next)) : NULL;
 }
 
 /**
@@ -78,10 +78,10 @@ static INLINE const ir_node *__sched_succ(const ir_node *irn)
  * @return The next ir node in the schedule or NULL, if this node has no
  * predecessor.
  */
-static INLINE const ir_node *__sched_prev(const ir_node *irn)
+static INLINE ir_node *_sched_prev(const ir_node *irn)
 {
        const sched_info_t *info = get_irn_sched_info(irn);
-       return __sched_has_prev(irn) ? get_sched_info_irn(_sched_entry(info->list.prev)) : NULL;
+       return _sched_has_prev(irn) ? get_sched_info_irn(_sched_entry(info->list.prev)) : NULL;
 }
 
 /**
@@ -89,7 +89,7 @@ static INLINE const ir_node *__sched_prev(const ir_node *irn)
  * @param block The block of which to get the schedule.
  * @return The first node in the schedule or NULL if there is none.
  */
-static INLINE const ir_node *__sched_first(const ir_node *block)
+static INLINE ir_node *_sched_first(const ir_node *block)
 {
        const sched_info_t *info = get_irn_sched_info(block);
        assert(is_Block(block) && "Need a block here");
@@ -102,7 +102,7 @@ static INLINE const ir_node *__sched_first(const ir_node *block)
  * @return The last ir node in a schedule, or NULL if no schedule exists
  * or it is empty.
  */
-static INLINE const ir_node *__sched_last(const ir_node *block)
+static INLINE ir_node *_sched_last(const ir_node *block)
 {
        const sched_info_t *info = get_irn_sched_info(block);
        assert(is_Block(block) && "Need a block here");
@@ -115,21 +115,21 @@ static INLINE const ir_node *__sched_last(const ir_node *block)
  * @param irn The node to add.
  * @return The given node.
  */
-static INLINE const ir_node *__sched_add(ir_node *block, const ir_node *irn)
+static INLINE ir_node *_sched_add(ir_node *block, ir_node *irn)
 {
        assert(is_Block(block) && "Need a block here");
        list_add_tail(&get_irn_sched_info(irn)->list, &get_irn_sched_info(block)->list);
        return irn;
 }
 
-#define sched_get_time_step(irn)         __sched_get_time_step(irn)
-#define sched_has_succ(irn)                            __sched_has_succ(irn)
-#define sched_has_prev(irn)                            __sched_has_prev(irn)
-#define sched_succ(irn)                                                __sched_succ(irn)
-#define sched_prev(irn)                                                __sched_prev(irn)
-#define sched_first(irn)                                               __sched_first(irn)
-#define sched_last(irn)                                                __sched_last(irn)
-#define sched_add(block,irn)                           __sched_add(block,irn)
+#define sched_get_time_step(irn)         _sched_get_time_step(irn)
+#define sched_has_succ(irn)                            _sched_has_succ(irn)
+#define sched_has_prev(irn)                            _sched_has_prev(irn)
+#define sched_succ(irn)                                                _sched_succ(irn)
+#define sched_prev(irn)                                                _sched_prev(irn)
+#define sched_first(irn)                                               _sched_first(irn)
+#define sched_last(irn)                                                _sched_last(irn)
+#define sched_add(block,irn)                           _sched_add(block,irn)
 
 
 #endif