changeset 42:dd59868059d5

Sync th-libs.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 27 Oct 2008 00:58:34 +0200
parents fe3140cec818
children 40ba8cdcf03a
files th_util.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/th_util.c	Sun Oct 26 02:51:58 2008 +0300
+++ b/th_util.c	Mon Oct 27 00:58:34 2008 +0200
@@ -13,7 +13,7 @@
 
 /* Default settings
  */
-BOOL	th_isInitialized = FALSE;
+static BOOL	th_initialized = FALSE;
 int	th_verbosityLevel = 2;
 char	*th_prog_name = NULL,
 	*th_prog_fullname = NULL,
@@ -41,7 +41,7 @@
 	else
 		th_prog_license = TH_PROG_LICENSE;
 
-	th_isInitialized = TRUE;
+	th_initialized = TRUE;
 }
 
 
@@ -51,7 +51,7 @@
 void THERR(const char *pcFormat, ...)
 {
 	va_list ap;
-	assert(th_isInitialized);
+	assert(th_initialized);
 
 	va_start(ap, pcFormat);
 	fprintf(stderr, "%s: ", th_prog_name);
@@ -63,7 +63,7 @@
 void THMSG(int verbLevel, const char *pcFormat, ...)
 {
 	va_list ap;
-	assert(th_isInitialized);
+	assert(th_initialized);
 
 	/* Check if the current verbosity level is enough */
 	if (th_verbosityLevel >= verbLevel) {
@@ -78,7 +78,7 @@
 void THPRINT(int verbLevel, const char *pcFormat, ...)
 {
 	va_list ap;
-	assert(th_isInitialized);
+	assert(th_initialized);
 
 	/* Check if the current verbosity level is enough */
 	if (th_verbosityLevel >= verbLevel) {