changeset 469:fe5b803ae449

Rename the global variable th_verbosityLevel to th_verbosity.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 04 Jun 2018 02:41:27 +0300
parents bbe3c9175d77
children 167b66942c24
files tests.c th_util.c th_util.h
diffstat 3 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/tests.c	Mon Jun 04 02:39:54 2018 +0300
+++ b/tests.c	Mon Jun 04 02:41:27 2018 +0300
@@ -49,7 +49,7 @@
 
 BOOL tprintv(const int level, const char *fmt, va_list ap)
 {
-    if (level <= th_verbosityLevel)
+    if (level <= th_verbosity)
     {
         vfprintf(stdout, fmt, ap);
         return TRUE;
@@ -87,7 +87,7 @@
         break;
 
     case 1:
-        th_verbosityLevel++;
+        th_verbosity++;
         break;
 
     case 2:
@@ -335,7 +335,7 @@
     // Initialization
     //
     th_init("th-test", "th-libs unit tests", "0.1", NULL, NULL);
-    th_verbosityLevel = 0;
+    th_verbosity = 0;
 
     if (sizeof(char) != sizeof(unsigned char))
     {
--- a/th_util.c	Mon Jun 04 02:39:54 2018 +0300
+++ b/th_util.c	Mon Jun 04 02:41:27 2018 +0300
@@ -13,7 +13,7 @@
 /* Default settings
  */
 static BOOL    th_initialized = FALSE;
-int            th_verbosityLevel = 2;
+int            th_verbosity = 2;
 char           *th_prog_name = NULL,
                *th_prog_desc = NULL,
                *th_prog_version = NULL,
@@ -89,7 +89,7 @@
 {
     assert(th_initialized == TRUE);
 
-    if (th_verbosityLevel >= level)
+    if (th_verbosity >= level)
     {
         fprintf(stderr, "%s: ", th_prog_name);
         vfprintf(stderr, fmt, ap);
@@ -101,7 +101,7 @@
 {
     assert(th_initialized == TRUE);
 
-    if (th_verbosityLevel >= level)
+    if (th_verbosity >= level)
     {
         vfprintf(stderr, fmt, ap);
     }
--- a/th_util.h	Mon Jun 04 02:39:54 2018 +0300
+++ b/th_util.h	Mon Jun 04 02:41:27 2018 +0300
@@ -109,7 +109,7 @@
 
 /* Global variables
  */
-extern int  th_verbosityLevel;
+extern int  th_verbosity;
 extern char *th_prog_name,
             *th_prog_desc,
             *th_prog_version,