changeset 431:d41cb5983772

#ifdef out WIP floating point support from printf() implementation.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 07 Nov 2016 02:57:23 +0200
parents f8eb47b52a75
children 1b3472ba7b23 0a2f32b8a26e
files th_string.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 *),