Mercurial > hg > th-libs
comparison th_string.h @ 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 |
comparison
equal
deleted
inserted
replaced
766:6c06cf786789 | 767:449a031c297c |
---|---|
192 | 192 |
193 int th_vprintf_put_int_format(th_vprintf_ctx *ctx, th_vprintf_putch vputch, | 193 int th_vprintf_put_int_format(th_vprintf_ctx *ctx, th_vprintf_putch vputch, |
194 th_char_t *buf, int f_flags, int f_width, int f_prec, int f_len, int vret, | 194 th_char_t *buf, int f_flags, int f_width, int f_prec, int f_len, int vret, |
195 bool f_neg, bool f_unsig, th_vprintf_altfmt_func f_alt); | 195 bool f_neg, bool f_unsig, th_vprintf_altfmt_func f_alt); |
196 | 196 |
197 | 197 int th_vprintf_buf_int(char *buf, const int len, int *pos, |
198 #define TH_VPRINTF_INTFMT_NAME th_vprintf_buf_int | 198 int pval, const int f_radix, const bool f_upcase, |
199 #define TH_VPRINTF_INTFMT_TYPE_S int | 199 const bool f_unsig, bool *f_neg); |
200 #define TH_VPRINTF_INTFMT_TYPE_U unsigned int | 200 |
201 #include "th_printf1.c" | 201 int th_vprintf_buf_int64(char *buf, const int len, int *pos, |
202 | 202 int64_t pval, const int f_radix, const bool f_upcase, |
203 | 203 const bool f_unsig, bool *f_neg); |
204 #define TH_VPRINTF_INTFMT_NAME th_vprintf_buf_int64 | |
205 #define TH_VPRINTF_INTFMT_TYPE_S int64_t | |
206 #define TH_VPRINTF_INTFMT_TYPE_U uint64_t | |
207 #include "th_printf1.c" | |
208 | 204 |
209 | 205 |
210 #ifdef TH_PRINTF_DEBUG | 206 #ifdef TH_PRINTF_DEBUG |
211 extern bool th_printf_debug; | 207 extern bool th_printf_debug; |
212 extern char *th_printf_debug_prefix; | 208 extern char *th_printf_debug_prefix; |