]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lily-version.cc
release: 1.2.13
[lilypond.git] / lily / lily-version.cc
index df773fa7ccdb93c51859c6523348dc4023c84112..909a9b95a5481dbbde04f2764bb5f28fb084d16e 100644 (file)
@@ -1,24 +1,35 @@
-#include "version.hh"
-#include <stdio.h>
+/*
+  lily-version.cc -- implement version strings
+
+  source file of the GNU LilyPond music typesetter
 
+  (c)  1999 Jan Nieuwenhuizen <janneke@gnu.org>
+*/
 
-#define VERSION_SZ  MAJOR_VERSION "." MINOR_VERSION "."  PATCH_LEVEL MY_PATCH_LEVEL
-static char *s = "GNU LilyPond " VERSION_SZ " #%d";
+#include "config.h"
+#include "version.hh"
+#include "lily-version.hh"
 
-static const int build=
-#include ".build"
-;
+#define VERSION MAJOR_VERSION "." MINOR_VERSION "."  PATCH_LEVEL "." MY_PATCH_LEVEL
 
-char const *
-lily_version_number_sz()
+String
+version_str ()
 {
-  return VERSION_SZ;
+  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;
+}
+