Mercurial > gnulib
comparison lib/vasnprintf.c @ 30141:f829d485790f
Tweak last commit.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 18 Sep 2008 12:34:27 +0200 |
parents | 49b384db7c01 |
children | 543b852ede8a |
comparison
equal
deleted
inserted
replaced
30140:49b384db7c01 | 30141:f829d485790f |
---|---|
213 #undef exp | 213 #undef exp |
214 #define exp expo | 214 #define exp expo |
215 #undef remainder | 215 #undef remainder |
216 #define remainder rem | 216 #define remainder rem |
217 | 217 |
218 #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL | 218 #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL |
219 /* Determine the decimal-point character according to the current locale. */ | 219 /* Determine the decimal-point character according to the current locale. */ |
220 # ifndef decimal_point_char_defined | 220 # ifndef decimal_point_char_defined |
221 # define decimal_point_char_defined 1 | 221 # define decimal_point_char_defined 1 |
222 static char | 222 static char |
223 decimal_point_char () | 223 decimal_point_char () |
3165 for (; precision > 0; precision--) | 3165 for (; precision > 0; precision--) |
3166 *p++ = '0'; | 3166 *p++ = '0'; |
3167 } | 3167 } |
3168 *p++ = dp->conversion; /* 'e' or 'E' */ | 3168 *p++ = dp->conversion; /* 'e' or 'E' */ |
3169 *p++ = '+'; | 3169 *p++ = '+'; |
3170 /* Produce the same number of exponent digits as | |
3171 the native printf implementation. */ | |
3172 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ | |
3173 *p++ = '0'; | |
3174 # endif | |
3175 *p++ = '0'; | 3170 *p++ = '0'; |
3176 *p++ = '0'; | 3171 *p++ = '0'; |
3177 } | 3172 } |
3178 else if (dp->conversion == 'g' || dp->conversion == 'G') | 3173 else if (dp->conversion == 'g' || dp->conversion == 'G') |
3179 { | 3174 { |