error string.
(decimal_to_string): Likewise.
* printcmd.c (printf_command): Change string buffer to use
MAX_DECIMAL_STRING constant.
* value.c (value_from_decfloat): Likewise.
+2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * dfp.c (decimal_from_string): Remove superfluous newline from
+ error string.
+ (decimal_to_string): Likewise.
+ * printcmd.c (printf_command): Change string buffer to use
+ MAX_DECIMAL_STRING constant.
+ * value.c (value_from_decfloat): Likewise.
+
2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
* Makefile.in (ALL_TARGET_OBS): Remove object files that require
decimal128ToString ((decimal128 *) dec, s);
break;
default:
- error (_("Unknown decimal floating point type.\n"));
+ error (_("Unknown decimal floating point type."));
break;
}
}
decimal128FromString ((decimal128 *) dec, string, &set);
break;
default:
- error (_("Unknown decimal floating point type.\n"));
+ error (_("Unknown decimal floating point type."));
break;
}
case decfloat_arg:
{
char *eos;
- char decstr[128];
+ char decstr[MAX_DECIMAL_STRING];
unsigned int dfp_len = TYPE_LENGTH (value_type (val_args[i]));
unsigned char *dfp_value_ptr = (unsigned char *) value_contents_all (val_args[i])
+ value_offset (val_args[i]);
if (expect_type)
{
int expect_len = TYPE_LENGTH (expect_type);
- char decstr[128];
+ char decstr[MAX_DECIMAL_STRING];
int real_len;
decimal_to_string (decbytes, len, decstr);