From e8e46f78df722854f4da3922d1529aacd387a231 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 24 Sep 2001 17:16:53 +0000 Subject: * 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. --- gdb/doublest.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gdb/doublest.h') 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 -- cgit v1.2.1