X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Flily-version.cc;h=5dcfcdcac5dd1b68a0923ff2d0558bc86465fb89;hb=670a98f23a2561c6a4a4a19bb72c776189715541;hp=fcf2f8e8e3f9b2e0c35e4c315fc981aabcc32215;hpb=5cfb4ad642561dcb61593b1aeb24717c5eb110da;p=lilypond.git diff --git a/lily/lily-version.cc b/lily/lily-version.cc index fcf2f8e8e3..5dcfcdcac5 100644 --- a/lily/lily-version.cc +++ b/lily/lily-version.cc @@ -1,20 +1,35 @@ -#include +/* + lily-version.cc -- implement version strings + + source file of the GNU LilyPond music typesetter + + (c) 1999 Jan Nieuwenhuizen +*/ #include "config.hh" +#include "version.hh" +#include "lily-version.hh" -// #define VERSION_SZ MAJOR_VERSION "." MINOR_VERSION "." PATCH_LEVEL MY_PATCH_LEVEL -#define VERSION_SZ TOPLEVEL_VERSION -static char *s = "GNU LilyPond " VERSION_SZ " #%d"; +#define VERSION MAJOR_VERSION "." MINOR_VERSION "." PATCH_LEVEL "." MY_PATCH_LEVEL +String +version_str () +{ + String str = VERSION; + return str; +} -char const * -lily_version_number_sz() +String +gnu_lilypond_str () { - return VERSION_SZ; + String str = "GNU LilyPond"; + return str; } -char const * -lily_version_sz() +String +gnu_lilypond_version_str () { - return s; + String str = gnu_lilypond_str () + " " + version_str (); + return str; } +