diff th_util.c @ 457:85fa3d333556

Actually, revert the boolean changes .. meh.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 02 Jan 2018 23:09:29 +0200
parents efd33accdc81
children a90fe2c4c636
line wrap: on
line diff
--- a/th_util.c	Tue Jan 02 22:57:47 2018 +0200
+++ b/th_util.c	Tue Jan 02 23:09:29 2018 +0200
@@ -12,7 +12,7 @@
 
 /* Default settings
  */
-static bool    th_initialized = false;
+static BOOL    th_initialized = FALSE;
 int            th_verbosityLevel = 2;
 char           *th_prog_name = NULL,
                *th_prog_desc = NULL,
@@ -40,7 +40,7 @@
     else
         th_prog_license = TH_PROG_LICENSE;
 
-    th_initialized = true;
+    th_initialized = TRUE;
 }
 
 
@@ -86,7 +86,7 @@
  */
 void THERR_V(const char *fmt, va_list ap)
 {
-    assert(th_initialized == true);
+    assert(th_initialized == TRUE);
 
     fprintf(stderr, "%s: ", th_prog_name);
     vfprintf(stderr, fmt, ap);
@@ -95,7 +95,7 @@
 
 void THMSG_V(int level, const char *fmt, va_list ap)
 {
-    assert(th_initialized == true);
+    assert(th_initialized == TRUE);
 
     if (th_verbosityLevel >= level)
     {
@@ -107,7 +107,7 @@
 
 void THPRINT_V(int level, const char *fmt, va_list ap)
 {
-    assert(th_initialized == true);
+    assert(th_initialized == TRUE);
 
     if (th_verbosityLevel >= level)
     {
@@ -119,7 +119,7 @@
 void THERR(const char *fmt, ...)
 {
     va_list ap;
-    assert(th_initialized == true);
+    assert(th_initialized == TRUE);
 
     va_start(ap, fmt);
     THERR_V(fmt, ap);
@@ -130,7 +130,7 @@
 void THMSG(int level, const char *fmt, ...)
 {
     va_list ap;
-    assert(th_initialized == true);
+    assert(th_initialized == TRUE);
 
     va_start(ap, fmt);
     THMSG_V(level, fmt, ap);
@@ -141,7 +141,7 @@
 void THPRINT(int level, const char *fmt, ...)
 {
     va_list ap;
-    assert(th_initialized == true);
+    assert(th_initialized == TRUE);
 
     va_start(ap, fmt);
     THPRINT_V(level, fmt, ap);