]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lily-version.cc
release: 1.1.24
[lilypond.git] / lily / lily-version.cc
index 68a6b49037351430abc3162cca94ccea9a83038b..5dcfcdcac5dd1b68a0923ff2d0558bc86465fb89 100644 (file)
@@ -1,16 +1,35 @@
+/*
+  lily-version.cc -- implement version strings
+
+  source file of the GNU LilyPond music typesetter
+
+  (c)  1999 Jan Nieuwenhuizen <janneke@gnu.org>
+*/
+
+#include "config.hh"
 #include "version.hh"
-#include <stdio.h>
+#include "lily-version.hh"
 
-static char *s = "GNU LilyPond " MAJOR_VERSION "." MINOR_VERSION "."  PATCH_LEVEL MY_PATCH_LEVEL " #%d";
+#define VERSION MAJOR_VERSION "." MINOR_VERSION "."  PATCH_LEVEL "." MY_PATCH_LEVEL
 
-static const int build=
-#include ".build"
-;
+String
+version_str ()
+{
+  String str = VERSION;
+  return str;
+}
 
-char const * 
-lily_version_sz()
+String 
+gnu_lilypond_str ()
 {
-  static char v[1024]; // ugh
-  sprintf (v, s, build);
-  return v;
+  String str = "GNU LilyPond";
+  return str;
 }
+
+String 
+gnu_lilypond_version_str ()
+{
+  String str = gnu_lilypond_str () + " " + version_str ();
+  return str;
+}
+