diff th_printf1.c @ 451:db45d6d2e576

Expose some of the internal vprintf() implementation helper functions.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 25 Oct 2017 22:20:21 +0300
parents 1b3472ba7b23
children efd33accdc81
line wrap: on
line diff
--- a/th_printf1.c	Wed Oct 25 22:13:09 2017 +0300
+++ b/th_printf1.c	Wed Oct 25 22:20:21 2017 +0300
@@ -6,9 +6,13 @@
  * Please read file 'COPYING' for information on license and distribution.
  */
 
-static int TH_PFUNC_NAME (char *buf, const int len, int *pos,
+
+int TH_PFUNC_NAME (char *buf, const int len, int *pos,
     TH_PFUNC_TYPE_S pval, const int f_radix, const BOOL f_upcase,
     const BOOL f_unsig, BOOL *f_neg)
+#ifdef TH_PFUNC_HEADER
+;
+#else
 {
     if (f_radix > 16)
         return EOF;
@@ -45,9 +49,11 @@
 
     return (val > 0) ? EOF : 1;
 }
+#endif
 
 
 #undef TH_PFUNC_NAME
 #undef TH_PFUNC_SIGNED
 #undef TH_PFUNC_TYPE_S
 #undef TH_PFUNC_TYPE_U
+#undef TH_PFUNC_HEADER