diff options
Diffstat (limited to 'gdb/dfp.h')
-rw-r--r-- | gdb/dfp.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/dfp.h b/gdb/dfp.h index c8ff5a1736f..020b9ac411b 100644 --- a/gdb/dfp.h +++ b/gdb/dfp.h @@ -28,16 +28,16 @@ #include "doublest.h" /* For DOUBLEST. */ #include "expression.h" /* For enum exp_opcode. */ -/* When using decimal128, this is the maximum string length + 1 - * (value comes from libdecnumber's DECIMAL128_String constant). */ -#define MAX_DECIMAL_STRING 43 - -extern void decimal_to_string (const gdb_byte *, int, enum bfd_endian, char *); -extern int decimal_from_string (gdb_byte *, int, enum bfd_endian, - const char *); -extern void decimal_from_integral (struct value *from, gdb_byte *to, +extern std::string decimal_to_string (const gdb_byte *, int, enum bfd_endian); +extern bool decimal_from_string (gdb_byte *, int, enum bfd_endian, + std::string string); +extern void decimal_from_longest (LONGEST from, gdb_byte *to, + int len, enum bfd_endian byte_order); +extern void decimal_from_ulongest (ULONGEST from, gdb_byte *to, int len, enum bfd_endian byte_order); -extern void decimal_from_floating (struct value *from, gdb_byte *to, +extern LONGEST decimal_to_longest (const gdb_byte *from, int len, + enum bfd_endian byte_order); +extern void decimal_from_doublest (DOUBLEST from, gdb_byte *to, int len, enum bfd_endian byte_order); extern DOUBLEST decimal_to_doublest (const gdb_byte *from, int len, enum bfd_endian byte_order); |