Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-09-21 23:11:47 +0400
committerDaniel Jacobowitz <drow@false.org>2003-09-21 23:11:47 +0400
commit57e5f9384a746fb3a39184c28f6e86b15e6b4aa7 (patch)
tree106adb19019638b6ca0367e55ced18f3295208df
parent1964d7e2cd929c894ccb23d7f602399ee87aa30b (diff)
gdb
2003-09-19 Daniel Jacobowitz <drow@mvista.com> Merge from mainline: 2003-09-15 Daniel Jacobowitz <drow@mvista.com> * values.c (unpack_double): Call floatformat_is_valid. include 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 Daniel Jacobowitz <drow@mvista.com> * floatformat.h (floatformat_is_valid): Add prototype. libiberty 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. 2003-09-15 Daniel Jacobowitz <drow@mvista.com> * floatformat.c (floatformat_is_valid): New function. (get_field, put_field): Correct comments.
-rw-r--r--include/ChangeLog9
-rw-r--r--include/floatformat.h11
2 files changed, 17 insertions, 3 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 5e9ac7a10..cecf35ca1 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,12 @@
+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 Daniel Jacobowitz <drow@mvista.com>
+
+ * floatformat.h (floatformat_is_valid): Add prototype.
+
2003-06-22 Zack Weinberg <zack@codesourcery.com>
* safe-ctype.h (HC_UNKNOWN, HC_ASCII, HC_EBCDIC): Rename to
diff --git a/include/floatformat.h b/include/floatformat.h
index 53ead3eee..c92ab93f1 100644
--- a/include/floatformat.h
+++ b/include/floatformat.h
@@ -1,5 +1,5 @@
/* IEEE floating point support declarations, for GDB, the GNU Debugger.
- Copyright 1991, 1994, 1995, 1997, 2000 Free Software Foundation, Inc.
+ Copyright 1991, 1994, 1995, 1997, 2000, 2003 Free Software Foundation, Inc.
This file is part of GDB.
@@ -109,13 +109,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, const char *from));
#endif /* defined (FLOATFORMAT_H) */