# HG changeset patch # User Matti Hamalainen # Date 1478480243 -7200 # Node ID d41cb5983772d9e8e526f7ee7351fe4889d7f263 # Parent f8eb47b52a75aedf2c9d5295881638beae932af8 #ifdef out WIP floating point support from printf() implementation. diff -r f8eb47b52a75 -r d41cb5983772 th_string.c --- a/th_string.c Tue Sep 27 00:45:23 2016 +0300 +++ b/th_string.c Mon Nov 07 02:57:23 2016 +0200 @@ -341,6 +341,7 @@ } +#ifdef WIP_FLOAT_SUPPORT static int th_vprintf_put_float(th_vprintf_ctx *ctx, th_vprintf_putch vputch, va_list ap, int f_flags, int f_width, int f_prec) { @@ -359,6 +360,7 @@ return 0; } +#endif static char * th_printf_altfmt_oct(const char *buf, const size_t len, const int vret, const int flags) @@ -374,6 +376,7 @@ { (void) buf; (void) vret; + (void) len; if (vret != 0) return (flags & TH_PF_UPCASE) ? "0X" : "0x"; else @@ -545,12 +548,14 @@ goto out; break; +#ifdef WIP_FLOAT_SUPPORT case 'f': case 'F': if ((ret = th_vprintf_put_float(ctx, vputch, ap, f_flags, f_width, f_prec)) == EOF) goto out; break; +#endif case 's': if ((ret = th_vprintf_put_str(ctx, vputch, va_arg(ap, char *),