changeset 767:449a031c297c

Un-macroify th_vprintf_buf_*() function prototypes.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 10 Feb 2023 02:45:34 +0200
parents 6c06cf786789
children 600a3c08747f
files th_string.h
diffstat 1 files changed, 6 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/th_string.h	Fri Feb 10 02:10:49 2023 +0200
+++ b/th_string.h	Fri Feb 10 02:45:34 2023 +0200
@@ -194,17 +194,13 @@
             th_char_t *buf, int f_flags, int f_width, int f_prec, int f_len, int vret,
             bool f_neg, bool f_unsig, th_vprintf_altfmt_func f_alt);
 
-
-#define TH_VPRINTF_INTFMT_NAME th_vprintf_buf_int
-#define TH_VPRINTF_INTFMT_TYPE_S int
-#define TH_VPRINTF_INTFMT_TYPE_U unsigned int
-#include "th_printf1.c"
+int         th_vprintf_buf_int(char *buf, const int len, int *pos,
+            int pval, const int f_radix, const bool f_upcase,
+            const bool f_unsig, bool *f_neg);
 
-
-#define TH_VPRINTF_INTFMT_NAME th_vprintf_buf_int64
-#define TH_VPRINTF_INTFMT_TYPE_S int64_t
-#define TH_VPRINTF_INTFMT_TYPE_U uint64_t
-#include "th_printf1.c"
+int         th_vprintf_buf_int64(char *buf, const int len, int *pos,
+            int64_t pval, const int f_radix, const bool f_upcase,
+            const bool f_unsig, bool *f_neg);
 
 
 #ifdef TH_PRINTF_DEBUG