diff th_printf1.c @ 735:31bc1ed07cf5

Renaming BOOL->bool and TRUE/FALSE to true/false, and using stdbool.h if available.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 07 Dec 2022 12:14:39 +0200
parents 29e44a58bc73
children c9a6fe116453
line wrap: on
line diff
--- a/th_printf1.c	Wed Dec 07 11:58:54 2022 +0200
+++ b/th_printf1.c	Wed Dec 07 12:14:39 2022 +0200
@@ -8,8 +8,8 @@
 
 
 int TH_VPRINTF_INTFMT_NAME (char *buf, const int len, int *pos,
-    TH_VPRINTF_INTFMT_TYPE_S pval, const int f_radix, const BOOL f_upcase,
-    const BOOL f_unsig, BOOL *f_neg)
+    TH_VPRINTF_INTFMT_TYPE_S pval, const int f_radix, const bool f_upcase,
+    const bool f_unsig, bool *f_neg)
 #ifdef TH_VPRINTF_INTFMT_HEADER
 ;
 #else
@@ -20,11 +20,11 @@
     // Check for negative value
     if (!f_unsig && pval < 0)
     {
-        *f_neg = TRUE;
+        *f_neg = true;
         pval = -pval;
     }
     else
-        *f_neg = FALSE;
+        *f_neg = false;
 
     // Render the value to a string in buf (reversed)
     TH_VPRINTF_INTFMT_TYPE_U val = pval;