diff options
author | phantom <phantom@FreeBSD.org> | 2001-12-07 12:38:47 +0000 |
---|---|---|
committer | phantom <phantom@FreeBSD.org> | 2001-12-07 12:38:47 +0000 |
commit | 390c42cd50e6e4b952e75b4bc3b3fe2a1301722c (patch) | |
tree | 0b4d98f99b3164a1fc35ae26d43b7225bcdd2133 /lib/libc/stdio | |
parent | 2625a82abe43ece1a5fa2f694e40a6da7e4c81ed (diff) | |
download | FreeBSD-src-390c42cd50e6e4b952e75b4bc3b3fe2a1301722c.zip FreeBSD-src-390c42cd50e6e4b952e75b4bc3b3fe2a1301722c.tar.gz |
* 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
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/vfprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <ctype.h> #include <limits.h> +#include <locale.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> @@ -319,7 +320,6 @@ vfprintf(FILE *fp, const char *fmt0, va_list ap) } #ifdef FLOATING_POINT -#include <locale.h> #include <math.h> #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 */ |