-#include <stdio.h>
+/*
+ lily-version.cc -- implement version strings
-#include "config.hh"
-#include "version.hh"
+ source file of the GNU LilyPond music typesetter
-#define VERSION_SZ MAJOR_VERSION "." MINOR_VERSION "." PATCH_LEVEL "." MY_PATCH_LEVEL
+ (c) 1999--2004 Jan Nieuwenhuizen <janneke@gnu.org>
+*/
-static char *s = "GNU LilyPond " VERSION_SZ ;
+#include "config.h"
+#include "version.hh"
+#include "lily-version.hh"
+String
+version_string ()
+{
+ String str = MAJOR_VERSION "." MINOR_VERSION "." PATCH_LEVEL;
+ String mpl ("." MY_PATCH_LEVEL);
+ if (mpl != ".")
+ str += mpl;
+ return str;
+}
-char const *
-lily_version_number_sz()
+String
+gnu_lilypond_string ()
{
- return VERSION_SZ;
+ String str = "GNU LilyPond";
+ return str;
}
-char const *
-lily_version_sz()
+String
+gnu_lilypond_version_string ()
{
- return s;
+ String str = gnu_lilypond_string () + " " + version_string ();
+ return str;
}
+