X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Flily-version.cc;h=6da4880b58d744d929429f19edf05378ffc72031;hb=f5e5c04d731e93b1d8d4cf7e7697f71f6e7c2bdf;hp=2890cd3e8aaebb2443aa3f99bd5a6267b2dab69f;hpb=036af34aa44a151b9e67c18e0acccaafdfae9de8;p=lilypond.git diff --git a/lily/lily-version.cc b/lily/lily-version.cc index 2890cd3e8a..6da4880b58 100644 --- a/lily/lily-version.cc +++ b/lily/lily-version.cc @@ -1,16 +1,35 @@ +/* + lily-version.cc -- implement version strings + + source file of the GNU LilyPond music typesetter + + (c) 1999--2000 Jan Nieuwenhuizen +*/ + +#include "config.h" #include "version.hh" -#include +#include "lily-version.hh" -static char *s = "GNU 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]; // 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; +} +