summaryrefslogtreecommitdiff
path: root/gdb/doublest.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-09-24 17:16:53 +0000
committerAndrew Cagney <cagney@redhat.com>2001-09-24 17:16:53 +0000
commite8e46f78df722854f4da3922d1529aacd387a231 (patch)
tree0526e60d6a2e6d6c72673b565180b0ebce4d3e5b /gdb/doublest.h
parent555e77866119a37b58db92689e3f4f056efe40d4 (diff)
downloadgdb-e8e46f78df722854f4da3922d1529aacd387a231.tar.gz
* doublest.h (store_floating, extract_floating): Add comment
indicating these functions are deprecated. (extract_typed_floating, store_typed_floating): Declare. * doublest.c: Include "gdbtypes.h". (extract_typed_floating, store_typed_floating): Define. * stabsread.c (define_symbol): Use store_typed_floating. * valarith.c (value_binop): Ditto. * values.c (unpack_long): Use extract_typed_floating. (unpack_double): Ditto.
Diffstat (limited to 'gdb/doublest.h')
-rw-r--r--gdb/doublest.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/doublest.h b/gdb/doublest.h
index 9ccdc6ca5bf..d3955b37955 100644
--- a/gdb/doublest.h
+++ b/gdb/doublest.h
@@ -61,7 +61,13 @@ 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 (const void *in, int);
-extern void store_floating (void *, int, DOUBLEST);
+/* Use extract_typed_float() and store_typed_float(). */
+extern DOUBLEST extract_floating (const void *in, int); /* DEPRECATED */
+extern void store_floating (void *, int, DOUBLEST); /* DEPRECATED */
+
+extern DOUBLEST extract_typed_floating (const void *addr,
+ const struct type *type);
+extern void store_typed_floating (void *addr, const struct type *type,
+ DOUBLEST val);
#endif