From f579726b1c1fe56fe74a913a4438d11f283462b7 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 12 Nov 2000 23:32:12 +0100 Subject: [PATCH] partial: 1.3.107.jcn ============ * Cross compilation and info build fixes, really cancel all builtin rules, sigh. * Generated documentation fixes: Generate all interface descriptions, separately, don't list non-set interface properties with element descriptions. 1.3.106.h --- lily/include/lilypond-input-version.hh | 30 +++++++++++++++++++ ...{mudela-version.cc => lilypond-version.cc} | 12 ++++---- 2 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 lily/include/lilypond-input-version.hh rename lily/{mudela-version.cc => lilypond-version.cc} (68%) diff --git a/lily/include/lilypond-input-version.hh b/lily/include/lilypond-input-version.hh new file mode 100644 index 0000000000..79f7e06ef0 --- /dev/null +++ b/lily/include/lilypond-input-version.hh @@ -0,0 +1,30 @@ +/* + lilypond-version.hh -- declare Lilypond_version + + source file of the GNU LilyPond music typesetter + + (c) 1998--2000 Jan Nieuwenhuizen + +*/ + +#ifndef LILYPOND_VERSION_HH +#define LILYPOND_VERSION_HH + +#include "string.hh" + +struct Lilypond_version +{ + Lilypond_version (int major, int minor, int patch); + Lilypond_version (String str); + + String str () const; + operator int () const; + + int major_i_; + int minor_i_; + int patch_i_; +}; + +extern Lilypond_version oldest_version; + +#endif // LILYPOND_VERSION_HH diff --git a/lily/mudela-version.cc b/lily/lilypond-version.cc similarity index 68% rename from lily/mudela-version.cc rename to lily/lilypond-version.cc index 7b2e9d58ee..e252710185 100644 --- a/lily/mudela-version.cc +++ b/lily/lilypond-version.cc @@ -1,5 +1,5 @@ /* - mudela-version.cc -- implement Mudela_version + lilypond-version.cc -- implement Lilypond_version source file of the GNU LilyPond music typesetter @@ -7,18 +7,18 @@ */ -#include "mudela-version.hh" +#include "lilypond-input-version.hh" #include "string-convert.hh" #include "array.hh" -Mudela_version::Mudela_version (int major, int minor, int patch) +Lilypond_version::Lilypond_version (int major, int minor, int patch) { major_i_ = major; minor_i_ = minor; patch_i_ = patch; } -Mudela_version::Mudela_version (String str) +Lilypond_version::Lilypond_version (String str) { Array version; version = String_convert::split_arr (str, '.'); @@ -29,12 +29,12 @@ Mudela_version::Mudela_version (String str) } String -Mudela_version::str () const +Lilypond_version::str () const { return to_str (major_i_) + "." + to_str (minor_i_) + "." + to_str (patch_i_); } -Mudela_version::operator int () const +Lilypond_version::operator int () const { // ugh return 100000 * major_i_ + 1000 * minor_i_ + patch_i_; -- 2.39.5