]> git.refcnt.org Git - colorize.git/blobdiff - colorize.c
Define PROGRAM_NAME
[colorize.git] / colorize.c
index 0cf44cb310efebb3d17e5c8756b272622f427ade..012a376bcc760d7f83133d142e3f0e10fc7fc74a 100644 (file)
 
 #define MAX_ATTRIBUTE_CHARS (6 * 2)
 
-#define VERSION "0.62"
+#define PROGRAM_NAME "colorize"
+
+#define VERSION "0.63"
 
 typedef enum { false, true } bool;
 
@@ -597,7 +599,7 @@ print_version (void)
 #endif
     version_prefix = version ? "" : "v";
     version_string = version ? version : VERSION;
-    printf ("colorize %s%s (compiled at %s, %s)\n", version_prefix, version_string, __DATE__, __TIME__);
+    printf ("%s %s%s (compiled at %s, %s)\n", PROGRAM_NAME, version_prefix, version_string, __DATE__, __TIME__);
 
     printf ("Compiler flags: %s\n", c_flags);
     printf ("Linker flags: %s\n", ld_flags);
@@ -1456,8 +1458,8 @@ has_color_name (const char *str, const char *name)
     else if (*(name + 1) != '\0'
      && !((p = strstr (str + 1, name + 1)) && p == str + 1))
       return false;
-
-    return true;
+    else
+      return true;
 }
 
 static FILE *