From 8c6fcfebbf30edfb6560802a3b2c8f45ef297233 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 16 Sep 2003 01:47:53 +0000 Subject: [PATCH] Index: include/ChangeLog 2003-09-15 Andrew Cagney * floatformat.h (floatformat_to_double): Make input buffer constant. (floatformat_from_double, floatformat_is_valid): Ditto. Index: libiberty/ChangeLog 2003-09-15 Andrew Cagney * floatformat.c (get_field): Make "data" constant. (floatformat_is_valid, floatformat_to_double): Make "from" constant, fix casts. (floatformat_from_double): Make "from" constant. --- include/ChangeLog | 5 +++++ include/floatformat.h | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/include/ChangeLog b/include/ChangeLog index a39d786c6..331aef1e9 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2003-09-15 Andrew Cagney + + * floatformat.h (floatformat_to_double): Make input buffer constant. + (floatformat_from_double, floatformat_is_valid): Ditto. + 2003-09-15 Andrew Cagney * floatformat.h (struct floatformat): Make "exp_bias" signed. diff --git a/include/floatformat.h b/include/floatformat.h index 1d08fd618..3d0fd7a87 100644 --- a/include/floatformat.h +++ b/include/floatformat.h @@ -113,18 +113,18 @@ extern const struct floatformat floatformat_ia64_quad_little; Store the double in *TO. */ 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 and store where TO points. */ extern void 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. */ 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) */