# HG changeset patch # User Matti Hamalainen # Date 1225061914 -7200 # Node ID dd59868059d55feb41d104c586e9085ca8ffa4aa # Parent fe3140cec81840879fb2da94a8136114d0328a05 Sync th-libs. diff -r fe3140cec818 -r dd59868059d5 th_util.c --- 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) {