From: fred Date: Sun, 24 Mar 2002 19:30:10 +0000 (+0000) Subject: lilypond-0.0.27 X-Git-Tag: release/1.5.59~5481 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6cbc1a03d5a159b41bbbf7bc19cf03f2e22612a4;p=lilypond.git lilypond-0.0.27 --- diff --git a/hdr/scriptdef.hh b/hdr/scriptdef.hh index fb1dc4317f..423860a895 100644 --- a/hdr/scriptdef.hh +++ b/hdr/scriptdef.hh @@ -15,6 +15,7 @@ struct Script_def{ String symidx; /****************/ + int compare(Script_def const &); void print() const; Script_def(String, int, int ,bool); }; diff --git a/hdr/textitem.hh b/hdr/textitem.hh index ebf7656276..c563fc80ca 100644 --- a/hdr/textitem.hh +++ b/hdr/textitem.hh @@ -11,14 +11,13 @@ #include "item.hh" struct Text_item : Item { - const char * name() const; int pos_i_; int staffsize_i_; int dir_i_; Text_def* tdef_l_; /****************/ - + const char * name() const; virtual void set_default_pos(); Molecule* brew_molecule_p() const; void do_pre_processing(); diff --git a/src/scriptdef.cc b/src/scriptdef.cc index cc7d70087e..1e11de72c2 100644 --- a/src/scriptdef.cc +++ b/src/scriptdef.cc @@ -14,3 +14,11 @@ Script_def::print() const mtor << "idx: " << symidx; mtor << "direction, stem: " << stemdir << " staff : " << staffdir; } +int +Script_def::compare(Script_def const & c) +{ + return (symidx == c.symidx && + stemdir == c.stemdir&& + staffdir == c.staffdir&& + invertsym == c.invertsym); +}