From 390c42cd50e6e4b952e75b4bc3b3fe2a1301722c Mon Sep 17 00:00:00 2001 From: phantom Date: Fri, 7 Dec 2001 12:38:47 +0000 Subject: * localeconv() usage is not FLOATING_POINT specific anymore (due to "'" flag addition) so move locale.h inclusion out of FLOATING_POINT ifdef's. * add more comments --- lib/libc/stdio/vfprintf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libc/stdio') diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index 904fcb0..0d2fb48 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -53,6 +53,7 @@ static const char rcsid[] = #include #include +#include #include #include #include @@ -319,7 +320,6 @@ vfprintf(FILE *fp, const char *fmt0, va_list ap) } #ifdef FLOATING_POINT -#include #include #include "floatio.h" @@ -371,9 +371,9 @@ __vfprintf(FILE *fp, const char *fmt0, va_list ap) int width; /* width from format (%8d), or 0 */ int prec; /* precision from format (%.3d), or -1 */ char sign; /* sign prefix (' ', '+', '-', or \0) */ - const char *thousands_sep; + const char *thousands_sep; /* locale specific thousands separator */ #ifdef FLOATING_POINT - char *decimal_point; + char *decimal_point; /* locale specific decimal point */ char softsign; /* temporary negative sign for floats */ double _double; /* double precision arguments %[eEfgG] */ int expt; /* integer value of exponent */ -- cgit v1.1