X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Flily-version.cc;h=bba3de2fd0cacb3547062f2fdd3c5ed7a908a36f;hb=0849262a1fd57ad3e68d879e7d129a3bf99273cd;hp=03f605394de9ca9937a71fc6b168b2e350c8dec8;hpb=7f0a3b682bebc864fbca295deba301238d805274;p=lilypond.git diff --git a/lily/lily-version.cc b/lily/lily-version.cc index 03f605394d..bba3de2fd0 100644 --- a/lily/lily-version.cc +++ b/lily/lily-version.cc @@ -1,16 +1,37 @@ +/* + lily-version.cc -- implement version strings + + source file of the GNU LilyPond music typesetter + + (c) 1999--2004 Jan Nieuwenhuizen +*/ + +#include "lily-version.hh" + +#include "config.hh" #include "version.hh" -#include -static char *s = "GNU LilyPond " MAJOR_VERSION "." MINOR_VERSION "." PATCH_LEVEL MY_PATCH_LEVEL " #%d"; +String +version_string () +{ + String str = MAJOR_VERSION "." MINOR_VERSION "." PATCH_LEVEL; + String mpl ("." MY_PATCH_LEVEL); + if (mpl != ".") + str += mpl; + return str; +} -static const int build= -#include ".build" -; +String +gnu_lilypond_string () +{ + String str = "GNU LilyPond"; + return str; +} -char const * -lily_version_sz() +String +gnu_lilypond_version_string () { - static char v[1024]; - sprintf(v, s, build); - return v; + String str = gnu_lilypond_string () + " " + version_string (); + return str; } +