aboutsummaryrefslogtreecommitdiff
path: root/gdb/doublest.h
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@br.ibm.com>2008-01-09 19:27:15 +0000
committerThiago Jung Bauermann <bauerman@br.ibm.com>2008-01-09 19:27:15 +0000
commit689e4e2d8a2fd0d55acc62c746fdcc302f851995 (patch)
treef444c80441738f50b041e6c996813da97f44278a /gdb/doublest.h
parent7ddd14deffa8d2579c691bb8f19585fb2e7b5de3 (diff)
downloadgdb-689e4e2d8a2fd0d55acc62c746fdcc302f851995.zip
gdb-689e4e2d8a2fd0d55acc62c746fdcc302f851995.tar.gz
gdb-689e4e2d8a2fd0d55acc62c746fdcc302f851995.tar.bz2
* doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
(DOUBLEST_SCAN_FORMAT): Likewise. * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT. * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT. * c-exp.y (parse_number): Likewise. * jv-exp.y (parse_number): Likewise. * objc-exp.y (parse_number): Likewise. * p-exp.y (parse_number): Likewise.
Diffstat (limited to 'gdb/doublest.h')
-rw-r--r--gdb/doublest.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/doublest.h b/gdb/doublest.h
index f3ab619..247eb5d 100644
--- a/gdb/doublest.h
+++ b/gdb/doublest.h
@@ -49,12 +49,12 @@ struct floatformat;
#if (defined HAVE_LONG_DOUBLE && defined PRINTF_HAS_LONG_DOUBLE \
&& defined SCANF_HAS_LONG_DOUBLE)
typedef long double DOUBLEST;
-# define DOUBLEST_PRINT_FORMAT "%Lg"
-# define DOUBLEST_SCAN_FORMAT "%Lg"
+# define DOUBLEST_PRINT_FORMAT "Lg"
+# define DOUBLEST_SCAN_FORMAT "Lg"
#else
typedef double DOUBLEST;
-# define DOUBLEST_PRINT_FORMAT "%g"
-# define DOUBLEST_SCAN_FORMAT "%lg"
+# define DOUBLEST_PRINT_FORMAT "g"
+# define DOUBLEST_SCAN_FORMAT "lg"
/* If we can't scan or print long double, we don't want to use it
anywhere. */
# undef HAVE_LONG_DOUBLE