]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lily-version.cc
release: 0.1.31
[lilypond.git] / lily / lily-version.cc
index fff9ec7f8a40224959e7bba0e25eba51c9bc214d..df773fa7ccdb93c51859c6523348dc4023c84112 100644 (file)
@@ -1,16 +1,24 @@
 #include "version.hh"
 #include <stdio.h>
 
-static char *s = "LilyPond " MAJOR_VERSION "." MINOR_VERSION "."  PATCH_LEVEL MY_PATCH_LEVEL " #%d";
+
+#define VERSION_SZ  MAJOR_VERSION "." MINOR_VERSION "."  PATCH_LEVEL MY_PATCH_LEVEL
+static char *s = "GNU LilyPond " VERSION_SZ " #%d";
 
 static const int build=
 #include ".build"
 ;
 
-const char * 
+char const *
+lily_version_number_sz()
+{
+  return VERSION_SZ;
+}
+
+char const * 
 lily_version_sz()
 {
-    static char v[1024];
-    sprintf(v, s, build);
-    return v;
+  static char v[1024]; // ugh
+  sprintf (v, s, build);
+  return v;
 }