From ba759613c3627dc399eae13a23a65dbc4adf3778 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 16 Jan 2008 16:16:44 +0000 Subject: [PATCH] * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest. * value.c: All callers changed. --- gdb/ChangeLog | 5 +++++ gdb/dfp.c | 2 +- gdb/dfp.h | 2 +- gdb/value.c | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a02ed59b718..619879bcf44 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-01-16 Mark Kettenis + + * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest. + * value.c: All callers changed. + 2008-01-16 Markus Deuling * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace diff --git a/gdb/dfp.c b/gdb/dfp.c index e184ecdd346..fff82880742 100644 --- a/gdb/dfp.c +++ b/gdb/dfp.c @@ -249,7 +249,7 @@ decimal_from_floating (struct value *from, gdb_byte *to, int len) /* 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]; diff --git a/gdb/dfp.h b/gdb/dfp.h index f72337aa105..c8969035ac5 100644 --- a/gdb/dfp.h +++ b/gdb/dfp.h @@ -33,7 +33,7 @@ extern void decimal_to_string (const gdb_byte *, int, char *); 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); diff --git a/gdb/value.c b/gdb/value.c index 5fc12762c66..1a5f984febc 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -1131,7 +1131,7 @@ unpack_long (struct type *type, const gdb_byte *valaddr) 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: @@ -1191,7 +1191,7 @@ unpack_double (struct type *type, const gdb_byte *valaddr, int *invp) 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. */ -- 2.30.2