From 9e45d507bb59f07563ba92c0d1a6b763d3b083eb Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 19 Oct 2007 14:17:38 +0000 Subject: [PATCH] renamed type_state to ir_type_state [r16277] --- include/libfirm/typerep.h | 8 ++++---- ir/tr/type.c | 6 +++--- ir/tr/type_t.h | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/libfirm/typerep.h b/include/libfirm/typerep.h index 3513cc556..235e5ea9d 100644 --- a/include/libfirm/typerep.h +++ b/include/libfirm/typerep.h @@ -1305,20 +1305,20 @@ typedef enum { Arrays can be accessed by explicit address computation. Enumeration constants must be defined. Default for pointer, primitive and method types. */ -} type_state; +} ir_type_state; /** Returns a human readable string for the enum entry. */ -const char *get_type_state_name(type_state s); +const char *get_type_state_name(ir_type_state s); /** Returns the type layout state of a type. */ -type_state get_type_state(const ir_type *tp); +ir_type_state get_type_state(const ir_type *tp); /** Sets the type layout state of a type. * * For primitives, pointer and method types the layout is always fixed. * This call is legal but has no effect. */ -void set_type_state(ir_type *tp, type_state state); +void set_type_state(ir_type *tp, ir_type_state state); /** Returns the mode of a type. * diff --git a/ir/tr/type.c b/ir/tr/type.c index df88f8d0e..1a02978b4 100644 --- a/ir/tr/type.c +++ b/ir/tr/type.c @@ -377,7 +377,7 @@ set_type_alignment_bytes(ir_type *tp, int align) { } /* Returns a human readable string for the enum entry. */ -const char *get_type_state_name(type_state s) { +const char *get_type_state_name(ir_type_state s) { #define X(a) case a: return #a; switch (s) { X(layout_undefined); @@ -388,12 +388,12 @@ const char *get_type_state_name(type_state s) { } -type_state (get_type_state)(const ir_type *tp) { +ir_type_state (get_type_state)(const ir_type *tp) { return _get_type_state(tp); } void -set_type_state(ir_type *tp, type_state state) { +set_type_state(ir_type *tp, ir_type_state state) { assert(tp && tp->kind == k_type); if ((tp->type_op == type_pointer) || (tp->type_op == type_primitive) || diff --git a/ir/tr/type_t.h b/ir/tr/type_t.h index 59a0d91e4..c959edc13 100644 --- a/ir/tr/type_t.h +++ b/ir/tr/type_t.h @@ -370,7 +370,7 @@ _get_type_size_bytes(const ir_type *tp) { return size >> 3; } -static INLINE type_state +static INLINE ir_type_state _get_type_state(const ir_type *tp) { assert(tp && tp->kind == k_type); return tp->flags & tf_layout_fixed ? layout_fixed : layout_undefined; -- 2.20.1