]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lily-version.cc
patch::: 1.3.58.jcn2
[lilypond.git] / lily / lily-version.cc
index 389178bbc3bf14a2d78ed971701da28c86ac137e..6da4880b58d744d929429f19edf05378ffc72031 100644 (file)
@@ -1,16 +1,35 @@
+/*
+  lily-version.cc -- implement version strings
+
+  source file of the GNU LilyPond music typesetter
+
+  (c)  1999--2000 Jan Nieuwenhuizen <janneke@gnu.org>
+*/
+
+#include "config.h"
 #include "version.hh"
-#include <stdio.h>
+#include "lily-version.hh"
 
-static char *s = "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];
-    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;
+}
+