comparison th_printf1.c @ 765:c9a6fe116453

Invert some preprocessor conditions for clarity.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 10 Feb 2023 01:03:22 +0200
parents 31bc1ed07cf5
children
comparison
equal deleted inserted replaced
764:0abba6091bd1 765:c9a6fe116453
8 8
9 9
10 int TH_VPRINTF_INTFMT_NAME (char *buf, const int len, int *pos, 10 int TH_VPRINTF_INTFMT_NAME (char *buf, const int len, int *pos,
11 TH_VPRINTF_INTFMT_TYPE_S pval, const int f_radix, const bool f_upcase, 11 TH_VPRINTF_INTFMT_TYPE_S pval, const int f_radix, const bool f_upcase,
12 const bool f_unsig, bool *f_neg) 12 const bool f_unsig, bool *f_neg)
13 #ifdef TH_VPRINTF_INTFMT_HEADER 13 #ifndef TH_VPRINTF_INTFMT_IMPL
14 ; 14 ;
15 #else 15 #else
16 { 16 {
17 if (f_radix > 16) 17 if (f_radix > 16)
18 return EOF; 18 return EOF;
59 59
60 #undef TH_VPRINTF_INTFMT_NAME 60 #undef TH_VPRINTF_INTFMT_NAME
61 #undef TH_VPRINTF_INTFMT_SIGNED 61 #undef TH_VPRINTF_INTFMT_SIGNED
62 #undef TH_VPRINTF_INTFMT_TYPE_S 62 #undef TH_VPRINTF_INTFMT_TYPE_S
63 #undef TH_VPRINTF_INTFMT_TYPE_U 63 #undef TH_VPRINTF_INTFMT_TYPE_U
64 #undef TH_VPRINTF_INTFMT_HEADER