From a6205f535ae295e644a1ec53fa130e2785adfb58 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 23 Feb 2006 18:43:41 +0000 Subject: * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE also. (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT. (DOUBLEST_SCAN_FORMAT): New. * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions. (processReal): Use 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. --- gdb/jv-exp.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/jv-exp.y') diff --git a/gdb/jv-exp.y b/gdb/jv-exp.y index 70f94ca..8017372 100644 --- a/gdb/jv-exp.y +++ b/gdb/jv-exp.y @@ -713,7 +713,7 @@ parse_number (p, len, parsed_float, putithere) char saved_char = p[len]; p[len] = 0; /* null-terminate the token */ - num = sscanf (p, DOUBLEST_FORMAT "%c", + num = sscanf (p, DOUBLEST_SCAN_FORMAT "%c", &putithere->typed_val_float.dval, &c); p[len] = saved_char; /* restore the input stream */ if (num != 1) /* check scanf found ONLY a float ... */ -- cgit v1.1