From 4e2debaef1574838e2f08d16ef0d1b7e6397ee4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6tz=20Lindenmaier?= Date: Tue, 22 Apr 2003 15:34:22 +0000 Subject: [PATCH] Changes to make firmjni compatible [r1086] --- ir/ana/irloop.h | 2 +- ir/common/firm_common.h | 2 +- ir/tv/tv.h | 25 ++++++++++--------------- 3 files changed, 12 insertions(+), 17 deletions(-) diff --git a/ir/ana/irloop.h b/ir/ana/irloop.h index b9fbd9299..66997bfa8 100644 --- a/ir/ana/irloop.h +++ b/ir/ana/irloop.h @@ -93,7 +93,7 @@ ir_node *get_loop_node (ir_loop *loop, int pos); /** Returns the number of elements contained in loop. */ int get_loop_n_elements (ir_loop *loop); /** Returns a loop element. A loop element can be interpreted as a - kind poitner, an ir_node* or an ir_loop*. */ + kind pointer, an ir_node* or an ir_loop*. */ loop_element get_loop_element (ir_loop *loop, int pos); /* diff --git a/ir/common/firm_common.h b/ir/common/firm_common.h index bd2417e68..9eeabf631 100644 --- a/ir/common/firm_common.h +++ b/ir/common/firm_common.h @@ -33,7 +33,7 @@ typedef enum { k_ir_mode, /**< an ir mode */ k_ir_op, /**< an ir opcode */ k_tarval, /**< a tarval */ - k_ir_loop, /**< a loop */ + k_ir_loop /**< a loop */ } firm_kind; /** diff --git a/ir/tv/tv.h b/ir/tv/tv.h index 463ee2ca0..f39ec3f68 100644 --- a/ir/tv/tv.h +++ b/ir/tv/tv.h @@ -440,7 +440,7 @@ tarval *tarval_abs(tarval *a); tarval *tarval_and(tarval *a, tarval *b); /** Bitwise or. */ -tarval *tarval_or (tarval *a, tarval *b); +tarval *tarval_or(tarval *a, tarval *b); /** Bitwise exclusive or. */ tarval *tarval_eor(tarval *a, tarval *b); @@ -467,25 +467,25 @@ tarval *tarval_rot(tarval *a, tarval *b); * one and let every backend convert it into the 'right' one. * However, we can do this in the tarval much simplier... */ -enum tv_output_mode { +typedef enum { TVO_NATIVE, /**< the default output mode, depends on the mode */ TVO_HEX, /**< use hex representation, always possible */ TVO_DECIMAL, /**< use decimal representation */ TVO_OCTAL, /**< use octal representation */ TVO_BINARY, /**< use binary representation */ - TVO_FLOAT, /**< use floating point representation */ -}; + TVO_FLOAT /**< use floating point representation */ +} tv_output_mode; /** * This structure contains helper information to format the output * of a tarval of an mode. */ typedef struct tarval_mode_info { - enum tv_output_mode mode_output; /**< if != TVO_NATIVE select a special mode */ - const char *mode_prefix; /**< if set, this prefix will be print - before a value of this mode */ - const char *mode_suffix; /**< if set, this suffixx will be print + tv_output_mode mode_output; /**< if != TVO_NATIVE select a special mode */ + const char *mode_prefix; /**< if set, this prefix will be printed before a value of this mode */ + const char *mode_suffix; /**< if set, this suffix will be printed + after a value of this mode */ } tarval_mode_info; /** @@ -525,11 +525,6 @@ int tarval_set_mode_output_option(ir_mode *mode, const tarval_mode_info *modeinf */ char *tarval_bitpattern(tarval *tv); -/** - * Returns bitpattern [from, to[. - */ -char *tarval_sub_bitpattern(tarval *tv, int from, int to); - /** * Returns the bitpattern of the bytes_ofs byte. * @@ -586,7 +581,7 @@ void init_tarval_1(void); */ void init_tarval_2(void); -typedef int printf_func (void* , const char *, ...) ; -int tarval_xprintf(printf_func , void * , tarval *); +typedef int printf_func (void* , const char *, ...); +int tarval_xprintf(printf_func *print_func, void *out, tarval *tv); #endif /* _TV_H_ */ -- 2.20.1