diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-09-24 17:16:53 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-09-24 17:16:53 +0000 |
commit | 96d2f608dcfdd177211dbb65b607d3bc03d1b320 (patch) | |
tree | d8af318ce072f6251da5ca6bc159c7a6b490a53d /gdb/doublest.h | |
parent | 2f8d8971c6c9992e015c50639186db1e6ad2f0c4 (diff) | |
download | gdb-96d2f608dcfdd177211dbb65b607d3bc03d1b320.zip gdb-96d2f608dcfdd177211dbb65b607d3bc03d1b320.tar.gz gdb-96d2f608dcfdd177211dbb65b607d3bc03d1b320.tar.bz2 |
* 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.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/doublest.h b/gdb/doublest.h index 9ccdc6c..d3955b3 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 |