From: fred Date: Sun, 24 Mar 2002 19:35:11 +0000 (+0000) Subject: lilypond-0.0.42 X-Git-Tag: release/1.5.59~5195 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d0f1909b7ce3dfa214400a2837bfa2e9040f028b;p=lilypond.git lilypond-0.0.42 --- diff --git a/mi2mu/mi2mu-version.cc b/mi2mu/mi2mu-version.cc new file mode 100644 index 0000000000..e1b7178851 --- /dev/null +++ b/mi2mu/mi2mu-version.cc @@ -0,0 +1,22 @@ +// +// version.cc -- implement inexpensive versioning +// +// copyright 1997 Jan Nieuwenhuizen +#include +#include "version.hh" + + +static char *s = "mi2mu " MAJOR_VERSION "." MINOR_VERSION "." MY_PATCH_LEVEL " #%d"; + +static const int build= +#include ".build" +; + +const char * +mi2mu_version_sz() +{ + static char v[1024]; + sprintf(v, s, build); + return v; +} + diff --git a/mi2mu/version.cc b/mi2mu/version.cc index cb58c6b5b2..d9fe95dac7 100644 --- a/mi2mu/version.cc +++ b/mi2mu/version.cc @@ -1,18 +1,13 @@ -// -// version.cc -- implement inexpensive versioning -// -// copyright 1997 Jan Nieuwenhuizen - #include "mi2mu.hh" -#include "fversion.hh" -#include "version.hh" + +const char * mi2mu_version_sz(); // should simply have Root class... String -version_str() +mi2mu_version_str() { - return String ( "This is mi2mu " ) + VERSIONSTR - + "/FlowerLib " + FVERSIONSTR + return String ( "This is " ) + mi2mu_version_sz() + + flower_version_sz() + " of " + __DATE__ + " " + __TIME__; }