- (djm) [openbsd-compat/bsd-snprintf.c] #ifdef noytet for intmax_t bits

until we have configure support.
This commit is contained in:
Damien Miller 2013-08-28 14:00:54 +10:00
parent 04be8b9e53
commit 43968a8e66
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,8 @@
- (djm) [openbsd-compat/bsd-snprintf.c] teach our local snprintf code the - (djm) [openbsd-compat/bsd-snprintf.c] teach our local snprintf code the
'j' (intmax_t/uintmax_t) and 'z' (size_t/ssize_t) conversions in case we 'j' (intmax_t/uintmax_t) and 'z' (size_t/ssize_t) conversions in case we
start to use them in the future. start to use them in the future.
- (djm) [openbsd-compat/bsd-snprintf.c] #ifdef noytet for intmax_t bits
until we have configure support.
20130821 20130821
- (djm) OpenBSD CVS Sync - (djm) OpenBSD CVS Sync

View File

@ -344,8 +344,10 @@ dopr(char *buffer, size_t maxlen, const char *format, va_list args_in)
value = (long)va_arg (args, unsigned LLONG); value = (long)va_arg (args, unsigned LLONG);
else if (cflags == DP_C_SIZE) else if (cflags == DP_C_SIZE)
value = va_arg (args, size_t); value = va_arg (args, size_t);
#ifdef notyet
else if (cflags == DP_C_INTMAX) else if (cflags == DP_C_INTMAX)
value = va_arg (args, uintmax_t); value = va_arg (args, uintmax_t);
#endif
else else
value = (long)va_arg (args, unsigned int); value = (long)va_arg (args, unsigned int);
if (fmtint(buffer, &currlen, maxlen, value, if (fmtint(buffer, &currlen, maxlen, value,
@ -362,8 +364,10 @@ dopr(char *buffer, size_t maxlen, const char *format, va_list args_in)
value = (LLONG)va_arg (args, unsigned LLONG); value = (LLONG)va_arg (args, unsigned LLONG);
else if (cflags == DP_C_SIZE) else if (cflags == DP_C_SIZE)
value = va_arg (args, size_t); value = va_arg (args, size_t);
#ifdef notyet
else if (cflags == DP_C_INTMAX) else if (cflags == DP_C_INTMAX)
value = va_arg (args, uintmax_t); value = va_arg (args, uintmax_t);
#endif
else else
value = (long)va_arg (args, unsigned int); value = (long)va_arg (args, unsigned int);
if (fmtint(buffer, &currlen, maxlen, value, if (fmtint(buffer, &currlen, maxlen, value,
@ -382,8 +386,10 @@ dopr(char *buffer, size_t maxlen, const char *format, va_list args_in)
value = (LLONG)va_arg (args, unsigned LLONG); value = (LLONG)va_arg (args, unsigned LLONG);
else if (cflags == DP_C_SIZE) else if (cflags == DP_C_SIZE)
value = va_arg (args, size_t); value = va_arg (args, size_t);
#ifdef notyet
else if (cflags == DP_C_INTMAX) else if (cflags == DP_C_INTMAX)
value = va_arg (args, uintmax_t); value = va_arg (args, uintmax_t);
#endif
else else
value = (long)va_arg (args, unsigned int); value = (long)va_arg (args, unsigned int);
if (fmtint(buffer, &currlen, maxlen, value, if (fmtint(buffer, &currlen, maxlen, value,