This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: num_put<>::do_put (appendix)
- To: kabatek@chemie.uni-halle.de
- Subject: Re: num_put<>::do_put (appendix)
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 06 May 1999 08:59:05 -0700
- Cc: Benjamin Kosnik <bkoz@cygnus.com>, libstdc++@sourceware.cygnus.com
- References: <Pine.LNX.3.96.990506135249.9562A-100000@rumcajs.chemie.uni-halle.de>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
Ryszard Kabatek <rysio@rumcajs.chemie.uni-halle.de> writes:
> const char* __fmt_double[][4] = {{"%.*f", "%+.*f", "%#.*f", "+#.*f"},
> {"%.*e", "%+.*e", "%#.*e", "+#.*e"},
> {"%.*g", "%+.*g", "%#.*g", "+#.*g"}};
>
> const char* __fmt_ldouble[][4] = {{"%.*Lf", "%+.*Lf", "%#.*Lf", "+#.*Lf"},
> {"%.*Le", "%+.*Le", "%#.*Le", "+#.*Le"},
> {"%.*Lg", "%+.*Lg", "%#.*Lg", "+#.*Lg"}};
Change the declaration to
const char __fmt_double[][4][8] = ...
This saves relocations and makes the data sharable. This also applies
for the integer formats. Also fix the last column (the % is missing).
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------