Index: include/ChangeLog

2003-09-15  Andrew Cagney  <cagney@redhat.com>

	* floatformat.h (floatformat_to_double): Make input buffer constant.
	(floatformat_from_double, floatformat_is_valid): Ditto.

Index: libiberty/ChangeLog
2003-09-15  Andrew Cagney  <cagney@redhat.com>

	* floatformat.c (get_field): Make "data" constant.
	(floatformat_is_valid, floatformat_to_double): Make "from"
	constant, fix casts.
	(floatformat_from_double): Make "from" constant.
This commit is contained in:
Andrew Cagney 2003-09-16 01:47:53 +00:00
parent c61ada9bd3
commit 8c6fcfebbf
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-09-15 Andrew Cagney <cagney@redhat.com>
* floatformat.h (floatformat_to_double): Make input buffer constant.
(floatformat_from_double, floatformat_is_valid): Ditto.
2003-09-15 Andrew Cagney <cagney@redhat.com> 2003-09-15 Andrew Cagney <cagney@redhat.com>
* floatformat.h (struct floatformat): Make "exp_bias" signed. * floatformat.h (struct floatformat): Make "exp_bias" signed.

View File

@ -113,18 +113,18 @@ extern const struct floatformat floatformat_ia64_quad_little;
Store the double in *TO. */ Store the double in *TO. */
extern void extern void
floatformat_to_double PARAMS ((const struct floatformat *, char *, double *)); floatformat_to_double PARAMS ((const struct floatformat *, const char *, double *));
/* The converse: convert the double *FROM to FMT /* The converse: convert the double *FROM to FMT
and store where TO points. */ and store where TO points. */
extern void extern void
floatformat_from_double PARAMS ((const struct floatformat *, floatformat_from_double PARAMS ((const struct floatformat *,
double *, char *)); const double *, char *));
/* Return non-zero iff the data at FROM is a valid number in format FMT. */ /* Return non-zero iff the data at FROM is a valid number in format FMT. */
extern int extern int
floatformat_is_valid PARAMS ((const struct floatformat *fmt, char *from)); floatformat_is_valid PARAMS ((const struct floatformat *fmt, const char *from));
#endif /* defined (FLOATFORMAT_H) */ #endif /* defined (FLOATFORMAT_H) */