diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-17 17:30:47 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-17 17:30:47 +0000 |
commit | 5a9290930013e04da961fb5c99e3df89f20c1e15 (patch) | |
tree | ec71c39fb7a9ac9e5c922bc2257f46fc0c9221a6 /include | |
parent | 28a541408f52eea87bd2cf1409ce08cec9cb3db2 (diff) | |
download | gcc-5a9290930013e04da961fb5c99e3df89f20c1e15.tar.gz |
[libiberty]
* floatformat.c (floatformat_always_valid): Change type of last
argument to `void *'.
(floatformat_i387_ext_is_valid): Likewise.
(floatformat_to_double): Change type of second argument to `const
void *'.
(floatformat_from_double): Change type of last argument to `void
*'.
(floatformat_is_valid): Change type of last argument to `const
void *'.
(ieee_test): Remove redundant casts.
[include]
* floatformat.h (struct floatformat): Change type of large
argument for is_valid member to `const void *'.
(floatformat_to_double): Change type of second argument to `const
void *'.
(floatformat_from_double): Change type of last argument to `void
*'.
(floatformat_is_valid): Change type of last argument to `const
void *'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103218 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 11 | ||||
-rw-r--r-- | include/floatformat.h | 11 |
2 files changed, 17 insertions, 5 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index c60ddc25f28..c0c22b548c2 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,14 @@ +2005-08-17 Mark Kettenis <kettenis@gnu.org> + + * floatformat.h (struct floatformat): Change type of large + argument for is_valid member to `const void *'. + (floatformat_to_double): Change type of second argument to `const + void *'. + (floatformat_from_double): Change type of last argument to `void + *'. + (floatformat_is_valid): Change type of last argument to `const + void *'. + 2005-07-12 Ben Elliston <bje@au.ibm.com> * xregex2.h (regexec): Qualify this prototype with __extension__ diff --git a/include/floatformat.h b/include/floatformat.h index 0cbd143be3d..a2448743050 100644 --- a/include/floatformat.h +++ b/include/floatformat.h @@ -1,5 +1,6 @@ /* IEEE floating point support declarations, for GDB, the GNU Debugger. - Copyright 1991, 1994, 1995, 1997, 2000, 2003 Free Software Foundation, Inc. + Copyright 1991, 1994, 1995, 1997, 2000, 2003, 2005 + Free Software Foundation, Inc. This file is part of GDB. @@ -82,7 +83,7 @@ struct floatformat const char *name; /* Validator method. */ - int (*is_valid) (const struct floatformat *fmt, const char *from); + int (*is_valid) (const struct floatformat *fmt, const void *from); }; /* floatformats for IEEE single and double, big and little endian. */ @@ -116,17 +117,17 @@ extern const struct floatformat floatformat_ia64_quad_little; Store the double in *TO. */ extern void -floatformat_to_double (const struct floatformat *, const char *, double *); +floatformat_to_double (const struct floatformat *, const void *, double *); /* The converse: convert the double *FROM to FMT and store where TO points. */ extern void -floatformat_from_double (const struct floatformat *, const double *, char *); +floatformat_from_double (const struct floatformat *, const double *, void *); /* Return non-zero iff the data at FROM is a valid number in format FMT. */ extern int -floatformat_is_valid (const struct floatformat *fmt, const char *from); +floatformat_is_valid (const struct floatformat *fmt, const void *from); #endif /* defined (FLOATFORMAT_H) */ |