33 // is recompiled whenever hginfo.h changes! |
33 // is recompiled whenever hginfo.h changes! |
34 // |
34 // |
35 |
35 |
36 #include <stdio.h> |
36 #include <stdio.h> |
37 #include <string.h> |
37 #include <string.h> |
|
38 #include "basics.h" |
38 #include "version.h" |
39 #include "version.h" |
39 #include "hginfo.h" |
40 #include "hginfo.h" |
|
41 |
|
42 #define VERSION_MAJOR 1 |
|
43 #define VERSION_MINOR 2 |
|
44 #define VERSION_PATCH 0 |
|
45 |
|
46 #if VERSION_PATCH == 0 |
|
47 # define VERSION_STRING \ |
|
48 MACRO_TO_STRING (VERSION_MAJOR) \ |
|
49 "." MACRO_TO_STRING (VERSION_MINOR) |
|
50 #else |
|
51 # define VERSION_STRING \ |
|
52 MACRO_TO_STRING (VERSION_MAJOR) \ |
|
53 "." MACRO_TO_STRING (VERSION_MINOR) \ |
|
54 "." MACRO_TO_STRING (VERSION_PATCH) |
|
55 #endif |
|
56 |
|
57 // ------------------------------------------------------------------------------------------------- |
|
58 // |
|
59 const char* application_name() |
|
60 { |
|
61 return "ZFC9000"; |
|
62 } |
|
63 |
|
64 // ------------------------------------------------------------------------------------------------- |
|
65 // |
|
66 const char* version_string() |
|
67 { |
|
68 return VERSION_STRING; |
|
69 } |
40 |
70 |
41 // ------------------------------------------------------------------------------------------------- |
71 // ------------------------------------------------------------------------------------------------- |
42 // |
72 // |
43 const char* full_version_string() |
73 const char* full_version_string() |
44 { |
74 { |