Moved the APPNAME also inside version.cpp (now application_name()) and changed it to uppercase

Mon, 11 Jan 2016 16:39:30 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Mon, 11 Jan 2016 16:39:30 +0200
changeset 126
6a0d6bddf2ab
parent 125
d8ecf07a76cf
child 127
6610b8b29848

Moved the APPNAME also inside version.cpp (now application_name()) and changed it to uppercase

sources/interface.cpp file | annotate | diff | comparison | revisions
sources/version.cpp file | annotate | diff | comparison | revisions
sources/version.h file | annotate | diff | comparison | revisions
--- a/sources/interface.cpp	Mon Jan 11 16:33:08 2016 +0200
+++ b/sources/interface.cpp	Mon Jan 11 16:39:30 2016 +0200
@@ -1116,7 +1116,7 @@
 //
 void Interface::reset_title()
 {
-	Title.sprintf (APPNAME " %s (%s)", full_version_string(), changeset_date_string());
+	Title.sprintf ("%s %s (%s)", application_name(), full_version_string(), changeset_date_string());
 }
 
 // -------------------------------------------------------------------------------------------------
--- a/sources/version.cpp	Mon Jan 11 16:33:08 2016 +0200
+++ b/sources/version.cpp	Mon Jan 11 16:39:30 2016 +0200
@@ -56,6 +56,13 @@
 
 // -------------------------------------------------------------------------------------------------
 //
+const char* application_name()
+{
+	return "ZFC9000";
+}
+
+// -------------------------------------------------------------------------------------------------
+//
 const char* version_string()
 {
 	return VERSION_STRING;
--- a/sources/version.h	Mon Jan 11 16:33:08 2016 +0200
+++ b/sources/version.h	Mon Jan 11 16:39:30 2016 +0200
@@ -29,7 +29,9 @@
 */
 
 #pragma once
-#define APPNAME "zfc9000"
+
+// Returns the application name (ZFC9000)
+const char* application_name();
 
 // Returns the bare version string (1.2.3)
 const char* version_string();

mercurial