diff th_string.h @ 568:2fbe42d957c4

Actually, partially revert the previous commit and unbreak the API. Leave the format specifier code in a separate function tho, it's cleaner.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 08 Jan 2020 02:25:04 +0200
parents b75f42ca08ef
children ccff3eb8dbb6
line wrap: on
line diff
--- a/th_string.h	Wed Jan 08 02:17:37 2020 +0200
+++ b/th_string.h	Wed Jan 08 02:25:04 2020 +0200
@@ -88,14 +88,6 @@
 typedef int (*th_vprintf_putch)(th_vprintf_ctx *ctx, const char ch);
 
 
-/** @def formatting helper function typedef for internal printf() implementation
- */
-typedef int (*th_vprintf_format)(
-    th_vprintf_ctx *ctx, th_vprintf_putch vputch,
-    int f_width, int f_prec, int f_flags,
-    const char fmt, va_list ap);
-
-
 /* Normal NUL-terminated string functions
  */
 char    *th_strdup(const char *src);
@@ -136,8 +128,7 @@
     const char *buf, const size_t len, const int vret, int *prec, int *flags);
 
 
-int     th_vprintf_do(th_vprintf_ctx *ctx, th_vprintf_putch vputch,
-    th_vprintf_format vformat, const char *fmt, va_list ap);
+int     th_vprintf_do(th_vprintf_ctx *ctx, th_vprintf_putch vputch, const char *fmt, va_list ap);
 
 int     th_vprintf_put_str(th_vprintf_ctx *ctx, th_vprintf_putch vputch,
         const char *str, int f_flags, const int f_width, const int f_prec);