Option for coloring algorithm added.
[libfirm] / ir / tr / tpop_t.h
index becb169..bd9d073 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.
  *
@@ -101,13 +101,12 @@ struct tp_op {
  * @param ops         the tp_op operations for this type
  * @return A new type opcode.
  */
-tp_op *new_tpop (tp_opcode code, ident *name, unsigned flags, size_t attr_size,
-                 const tp_op_ops *ops);
+const tp_op *new_tpop (tp_opcode code, ident *name, unsigned flags, size_t attr_size, const tp_op_ops *ops);
 
 /**
- * Free a tpop datastructure.
+ * Free a tpop data structure.
  */
-void free_tpop(tp_op *tpop);
+void free_tpop(const tp_op *tpop);
 
 /**
  * Initialize the tpop module.
@@ -118,7 +117,7 @@ void free_tpop(tp_op *tpop);
  * Allocates opcodes for classes, struct, method, union, array,
  * enumeration, pointer and primitive and sets the according values.
  */
-void init_tpop (void);
+void init_tpop(void);
 
 /**
  * Finalize the tpop module.
@@ -143,17 +142,17 @@ int get_tpop_attr_size (const tp_op *op);
  * inline functions *
  * -----------------*/
 
-static INLINE tp_opcode
+static inline tp_opcode
 _get_tpop_code(const tp_op *op) {
        return op->code;
 }
 
-static INLINE ident *
+static inline ident *
 _get_tpop_ident(const tp_op *op){
        return op->name;
 }
 
-static INLINE size_t
+static inline size_t
 _get_tpop_attr_size(const tp_op *op) {
        return op->attr_size;
 }