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* version_string() |
|
60 { |
|
61 return VERSION_STRING; |
|
62 } |
40 |
63 |
41 // ------------------------------------------------------------------------------------------------- |
64 // ------------------------------------------------------------------------------------------------- |
42 // |
65 // |
43 const char* full_version_string() |
66 const char* full_version_string() |
44 { |
67 { |