* value.c: All callers changed.
+2008-01-16 Mark Kettenis <kettenis@gnu.org>
+
+ * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
+ * value.c: All callers changed.
+
2008-01-16 Markus Deuling <deuling@de.ibm.com>
* rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
/* Converts a decimal float of LEN bytes to a double value. */
DOUBLEST
-decimal_to_double (const gdb_byte *from, int len)
+decimal_to_doublest (const gdb_byte *from, int len)
{
char buffer[MAX_DECIMAL_STRING];
extern int decimal_from_string (gdb_byte *, int, const char *);
extern void decimal_from_integral (struct value *from, gdb_byte *to, int len);
extern void decimal_from_floating (struct value *from, gdb_byte *to, int len);
-extern DOUBLEST decimal_to_double (const gdb_byte *from, int len);
+extern DOUBLEST decimal_to_doublest (const gdb_byte *from, int len);
extern void decimal_binop (enum exp_opcode, const gdb_byte *, int,
const gdb_byte *, int, gdb_byte *, int *);
extern int decimal_is_zero (const gdb_byte *x, int len);
case TYPE_CODE_DECFLOAT:
/* libdecnumber has a function to convert from decimal to integer, but
it doesn't work when the decimal number has a fractional part. */
- return decimal_to_double (valaddr, len);
+ return decimal_to_doublest (valaddr, len);
case TYPE_CODE_PTR:
case TYPE_CODE_REF:
return extract_typed_floating (valaddr, type);
}
else if (code == TYPE_CODE_DECFLOAT)
- return decimal_to_double (valaddr, len);
+ return decimal_to_doublest (valaddr, len);
else if (nosign)
{
/* Unsigned -- be sure we compensate for signed LONGEST. */