aboutsummaryrefslogtreecommitdiffstats
path: root/colorize.c
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2017-12-20 20:27:24 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2017-12-20 20:27:24 +0100
commit50c854a0abbb5a741c35b718bb1bf04eb84985d5 (patch)
tree416f7f2b1a28b6ce700a61261b4d26ab1ba5bdb9 /colorize.c
parentc3d41c66eccb2d33efb03a2a7576f1121430ae89 (diff)
downloadcolorize-50c854a0abbb5a741c35b718bb1bf04eb84985d5.tar.gz
colorize-50c854a0abbb5a741c35b718bb1bf04eb84985d5.tar.bz2
Define PROGRAM_NAME
Diffstat (limited to 'colorize.c')
-rw-r--r--colorize.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/colorize.c b/colorize.c
index 9e0f574..012a376 100644
--- a/colorize.c
+++ b/colorize.c
@@ -122,6 +122,8 @@
#define MAX_ATTRIBUTE_CHARS (6 * 2)
+#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);