]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* doublest.h (store_floating, floatformat_to_doublest): Make IN
authorAndrew Cagney <cagney@redhat.com>
Wed, 1 Aug 2001 22:11:43 +0000 (22:11 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 1 Aug 2001 22:11:43 +0000 (22:11 +0000)
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.

gdb/ChangeLog
gdb/doublest.c
gdb/doublest.h

index f9edf01bd5c3aa02b436978f91c8169b69118ef3..8c6540d4804e6c1d33c4aff4748ab8aeb2f0cd5d 100644 (file)
@@ -1,3 +1,13 @@
+2001-08-01  Andrew Cagney  <ac131313@redhat.com>
+
+       * 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.
+
 2001-07-31  Andrew Cagney  <ac131313@redhat.com>
 
        * defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
index 80548e7a15553e84fea4198f0abc5b35e465bf70..af635f223cb822cd4781cb2e3919618426c634d0 100644 (file)
@@ -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;
 
index 8e3919685c5cee7c11fa9cd712405dc51c5f2ff4..692280db5f2129957b92f1e566472c29365ec196 100644 (file)
@@ -73,15 +73,15 @@ typedef double DOUBLEST;
 #endif
 
 extern void floatformat_to_doublest (const struct floatformat *,
-                                    char *, DOUBLEST *);
+                                    const void *in, DOUBLEST *out);
 extern void floatformat_from_doublest (const struct floatformat *,
-                                      DOUBLEST *, char *);
+                                      const DOUBLEST *in, void *out);
 
 extern int floatformat_is_negative (const struct floatformat *, char *);
 extern int floatformat_is_nan (const struct floatformat *, char *);
 extern char *floatformat_mantissa (const struct floatformat *, char *);
 
-extern DOUBLEST extract_floating (void *, int);
+extern DOUBLEST extract_floating (const void *in, int);
 extern void store_floating (void *, int, DOUBLEST);
 
 #endif