diff th_string.c @ 129:aa2d608fb3f3

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 22 Jun 2014 07:23:54 +0300
parents f6e0a32b5906
children 84182dab4fca
line wrap: on
line diff
--- a/th_string.c	Sun Jun 22 07:06:46 2014 +0300
+++ b/th_string.c	Sun Jun 22 07:23:54 2014 +0300
@@ -288,7 +288,7 @@
 {
     assert(str != NULL);
 
-    /* Terminating NULL-character is not whitespace! */
+    // Terminating NULL-character is not whitespace!
     while (th_isspace(str[*pos]))
         (*pos)++;
 
@@ -332,17 +332,17 @@
     BOOL didMatch = TRUE, isAnyMode = FALSE, isEnd = FALSE;
     const char *tmpPattern = NULL;
 
-    /* Check given pattern and string */
+    // Check given pattern and string
     if (str == NULL || pattern == NULL)
         return FALSE;
 
-    /* Start comparision */
+    // Start comparision
     do {
         didMatch = FALSE;
         switch (*pattern)
         {
         case '?':
-            /* Any single character matches */
+            // Any single character matches
             if (*str)
             {
                 didMatch = TRUE;
@@ -426,7 +426,7 @@
                 isEnd = TRUE;
             break;
 
-        }        /* switch */
+        }        // switch
 
     } while (didMatch && !isEnd);
 
@@ -441,15 +441,15 @@
     BOOL didMatch = TRUE, isAnyMode = FALSE, isEnd = FALSE;
     const char *tmpPattern = NULL;
 
-    /* Check given pattern and string */
+    // Check given pattern and string
     if (str == NULL || pattern == NULL)
         return FALSE;
 
-    /* Start comparision */
+    // Start comparision
     do {
         switch (*pattern) {
         case '?':
-            /* Any single character matches */
+            // Any single character matches
             if (*str)
             {
                 pattern++;
@@ -533,7 +533,7 @@
 
             break;
 
-        }        /* switch */
+        }        // switch
 
     } while (didMatch && !isEnd);