* 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.
This commit is contained in:
Andrew Cagney
2001-09-24 17:16:53 +00:00
parent 2f8d8971c6
commit 96d2f608dc
6 changed files with 64 additions and 10 deletions

View File

@@ -645,7 +645,7 @@ unpack_long (struct type *type, char *valaddr)
return extract_signed_integer (valaddr, len);
case TYPE_CODE_FLT:
return extract_floating (valaddr, len);
return extract_typed_floating (valaddr, type);
case TYPE_CODE_PTR:
case TYPE_CODE_REF:
@@ -689,7 +689,7 @@ unpack_double (struct type *type, char *valaddr, int *invp)
return 1.234567891011121314;
}
#endif
return extract_floating (valaddr, len);
return extract_typed_floating (valaddr, type);
}
else if (nosign)
{
@@ -1297,7 +1297,7 @@ value_from_double (struct type *type, DOUBLEST num)
if (code == TYPE_CODE_FLT)
{
store_floating (VALUE_CONTENTS_RAW (val), len, num);
store_typed_floating (VALUE_CONTENTS_RAW (val), base_type, num);
}
else
error ("Unexpected type encountered for floating constant.");