3 +++ dtoa.cc (working copy)
5 * used for input more than STRTOD_DIGLIM digits long (default 40).
30 -extern "C" double strtod(const char *s00, char **se);
31 -extern "C" char *dtoa(double d, int mode, int ndigits,
32 +double strtod(const char *s00, char **se);
33 +char *dtoa(double d, int mode, int ndigits,
34 int *decpt, int *sign, char **rve);
41 (sp, t) char **sp, *t;
43 - (CONST char **sp, char *t)
44 + (CONST char **sp, CONST char *t)
48 @@ -2234,7 +2234,7 @@ bigcomp
54 #ifndef Sudden_Underflow
55 if (rv->d == 0.) { /* special case: value near underflow-to-zero */
56 /* threshold was rounded to zero */
61 - sizeof(Bigint) - sizeof(ULong) - sizeof(int) + j <= i;
62 + sizeof(Bigint) - sizeof(ULong) - sizeof(int) + j <= (size_t)i;
68 nrv_alloc(s, rve, n) char *s, **rve; int n;
70 -nrv_alloc(char *s, char **rve, int n)
71 +nrv_alloc(CONST char *s, char **rve, int n)
83 +} // namespace dmg_fp
85 --- g_fmt.cc (old copy)
86 +++ g_fmt.cc (new copy)
87 @@ -46,14 +46,14 @@ g_fmt(register char *b, double x)
90 if (decpt == 9999) /* Infinity or Nan */ {
92 + while((*b++ = *s++));
95 if (decpt <= -4 || decpt > se - s + 5) {
104 @@ -79,10 +79,10 @@ g_fmt(register char *b, double x)
106 for(; decpt < 0; decpt++)
108 - while(*b++ = *s++);
109 + while((*b++ = *s++));
113 + while((*b = *s++)) {
115 if (--decpt == 0 && *s)
117 @@ -93,7 +93,9 @@ g_fmt(register char *b, double x)
121 +#ifdef IGNORE_ZERO_SIGN