+2003-06-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ * error.c (print_integer): Remove.
+ (dump_type_suffix): Adjust.
+ (dump_expr): Likewise.
+
2003-06-28 Nathan Sidwell <nathan@codesourcery.com>
* error.c (print_instantiation_partial_context): Take a
static bool cp_printer (output_buffer *, text_info *);
static void print_non_consecutive_character (output_buffer *, int);
-static void print_integer (output_buffer *, HOST_WIDE_INT);
static tree locate_error (const char *, va_list);
static location_t location_of (tree);
if (TYPE_DOMAIN (t))
{
if (host_integerp (TYPE_MAX_VALUE (TYPE_DOMAIN (t)), 0))
- print_integer
+ output_host_wide_integer
(scratch_buffer,
tree_low_cst (TYPE_MAX_VALUE (TYPE_DOMAIN (t)), 0) + 1);
else if (TREE_CODE (TYPE_MAX_VALUE (TYPE_DOMAIN (t))) == MINUS_EXPR)
output_add_string (scratch_buffer, digit_buffer);
}
else
- print_integer (scratch_buffer, TREE_INT_CST_LOW (t));
+ output_host_wide_integer (scratch_buffer, TREE_INT_CST_LOW (t));
}
}
break;
}
static void
-print_integer (output_buffer *buffer, HOST_WIDE_INT i)
-{
- sprintf (digit_buffer, HOST_WIDE_INT_PRINT_DEC, (HOST_WIDE_INT) i);
- output_add_string (buffer, digit_buffer);
-}
-
-static void
print_non_consecutive_character (output_buffer *buffer, int c)
{
const char *p = output_last_position (buffer);