Simplyfied firm arrays by deleting useless macro and union.
[libfirm] / ir / tr / tpop_t.h
index bd9d073..0035215 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2011 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -61,7 +61,7 @@ typedef void (*insert_entity_func)(ir_type *tp, ir_entity *member);
 /**
  * tp_op operations.
  */
-typedef struct _tp_op_ops {
+typedef struct tp_op_ops {
        free_attrs_func         free_attrs;         /**< Called to free the attributes of a type. */
        free_entities_func      free_entities;      /**< Called to free the owned entities of a type. */
        free_auto_entities_func free_auto_entities; /**< Called to free the automatic allocated entities of a type. */
@@ -135,25 +135,25 @@ void finish_tpop(void);
  * @param op  The type opcode to get the size for.
  * @return The size of the attribute of types with this opcode.
  */
-int get_tpop_attr_size (const tp_op *op);
+size_t get_tpop_attr_size(const tp_op *op);
 
 
 /* ---------------- *
  * inline functions *
  * -----------------*/
 
-static inline tp_opcode
-_get_tpop_code(const tp_op *op) {
+static inline tp_opcode _get_tpop_code(const tp_op *op)
+{
        return op->code;
 }
 
-static inline ident *
-_get_tpop_ident(const tp_op *op){
+static inline ident *_get_tpop_ident(const tp_op *op)
+{
        return op->name;
 }
 
-static inline size_t
-_get_tpop_attr_size(const tp_op *op) {
+static inline size_t _get_tpop_attr_size(const tp_op *op)
+{
        return op->attr_size;
 }