same fix again on another place
[libfirm] / ir / ir / irphase.c
index 1d4d421..f041a47 100644 (file)
  * PURPOSE.
  */
 
-/*
- * Project:     libFIRM
- * File name:   ir/ir/irphase.c
- * Purpose:     Phase information handling using node indexes.
- * Author:      Sebastian Hack
- * Modified by:
- * Created:
- * SVN-ID:      $Id$
- * Copyright:   (c) 1998-2006 Universitaet Karlsruhe
+/**
+ * @file
+ * @brief    Phase information handling using node indexes.
+ * @author   Sebastian Hack
+ * @version  $Id$
+ * @summary
+ *  A phase contains a link to private data for each node in an ir graph.
+ *  A phase is independent from the globally visible link field of ir nodes.
  */
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -106,7 +104,7 @@ void phase_reinit_block_irn_data(ir_phase *phase, ir_node *block)
        }
 }
 
-ir_node *phase_get_first_node(ir_phase *phase) {
+ir_node *phase_get_first_node(const ir_phase *phase) {
        unsigned i;
 
        for (i = 0; i < phase->n_data_ptr;  ++i)
@@ -116,7 +114,7 @@ ir_node *phase_get_first_node(ir_phase *phase) {
        return NULL;
 }
 
-ir_node *phase_get_next_node(ir_phase *phase, ir_node *start) {
+ir_node *phase_get_next_node(const ir_phase *phase, ir_node *start) {
        unsigned i;
 
        for (i = get_irn_idx(start) + 1; i < phase->n_data_ptr; ++i)