aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-08-01 22:11:43 +0000
committerAndrew Cagney <cagney@redhat.com>2001-08-01 22:11:43 +0000
commit64f6fcadfcd33a3ea554ab17015de033061db0f8 (patch)
tree5928b903a1f1bee93e145d4449579231c673381b /gdb/doublest.c
parent* defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT) (diff)
downloadbinutils-gdb-64f6fcadfcd33a3ea554ab17015de033061db0f8.tar.gz
binutils-gdb-64f6fcadfcd33a3ea554ab17015de033061db0f8.tar.bz2
binutils-gdb-64f6fcadfcd33a3ea554ab17015de033061db0f8.zip
* doublest.h (store_floating, floatformat_to_doublest): Make IN
paramter a const void pointer. (floatformat_from_doublest): Make IN const, Make OUT a void pointer. * doublest.c (floatformat_to_doublest): Update. (floatformat_from_doublest): Update. (extract_floating): Update.
Diffstat (limited to 'gdb/doublest.c')
-rw-r--r--gdb/doublest.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/doublest.c b/gdb/doublest.c
index 80548e7a155..af635f223cb 100644
--- a/gdb/doublest.c
+++ b/gdb/doublest.c
@@ -105,7 +105,8 @@ get_field (unsigned char *data, enum floatformat_byteorders order,
Store the DOUBLEST in *TO. */
void
-floatformat_to_doublest (const struct floatformat *fmt, char *from,
+floatformat_to_doublest (const struct floatformat *fmt,
+ const void *from,
DOUBLEST *to)
{
unsigned char *ufrom = (unsigned char *) from;
@@ -325,8 +326,9 @@ ldfrexp (long double value, int *eptr)
restrictions. */
void
-floatformat_from_doublest (CONST struct floatformat *fmt, DOUBLEST *from,
- char *to)
+floatformat_from_doublest (CONST struct floatformat *fmt,
+ const DOUBLEST *from,
+ void *to)
{
DOUBLEST dfrom;
int exponent;
@@ -540,7 +542,7 @@ floatformat_mantissa (const struct floatformat *fmt, char *val)
dirty work. */
DOUBLEST
-extract_floating (void *addr, int len)
+extract_floating (const void *addr, int len)
{
DOUBLEST dretval;