From a62f46d752001484f02ae9fd425db70dc148d066 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:30:46 +0000 Subject: [PATCH] lilypond-0.0.29 --- hdr/register.hh | 6 +++--- src/break.cc | 7 +++---- src/grouping.cc | 6 +++--- src/scores.cc | 2 +- src/slur.cc | 6 +++--- src/stem.cc | 2 +- src/wordwrap.cc | 2 +- 7 files changed, 15 insertions(+), 16 deletions(-) diff --git a/hdr/register.hh b/hdr/register.hh index 42574ed5bc..e2b5167d8d 100644 --- a/hdr/register.hh +++ b/hdr/register.hh @@ -7,7 +7,7 @@ #ifndef REGISTER_HH #define REGISTER_HH #include "proto.hh" -#include "sstack.hh" +#include "varray.hh" /// data container. struct Staff_elem_info { @@ -79,8 +79,8 @@ struct Notehead_register : Request_register { }; struct Slur_register : Request_register { - sstack requests_arr_; - sstack slur_l_stack_; + Array requests_arr_; + Array slur_l_stack_; Array end_slur_l_arr_; /****************/ diff --git a/src/break.cc b/src/break.cc index a138049471..70ff864e9d 100644 --- a/src/break.cc +++ b/src/break.cc @@ -19,7 +19,7 @@ Break_algorithm::find_breaks() const for (iter_top(pscore_.cols,c); c.ok(); c++) if (c->breakable()) retval.push(c); - assert(retval.last() == pscore_.cols.bottom().ptr()); + assert(retval.top() == pscore_.cols.bottom().ptr()); return retval; } @@ -32,7 +32,7 @@ Break_algorithm::solve_line(Line_of_cols curline) const sp.add_column(curline[0], true, 0.0); for (int i=1; i< curline.size()-1; i++) sp.add_column(curline[i]); - sp.add_column(curline.last(), true, linelength); + sp.add_column(curline.top(), true, linelength); // misschien moeven uit Spacing_problem? for (iter_top(pscore_.suz,i); i.ok(); i++) { @@ -41,8 +41,7 @@ Break_algorithm::solve_line(Line_of_cols curline) const Array the_sol=sp.solve(); Col_hpositions col_hpos; col_hpos.cols = curline; - col_hpos.energy = the_sol.last(); - the_sol.pop(); + col_hpos.energy = the_sol.pop(); col_hpos.config = the_sol; col_hpos.OK(); return col_hpos; diff --git a/src/grouping.cc b/src/grouping.cc index 91c9a66d0a..8c7e0e5d5b 100644 --- a/src/grouping.cc +++ b/src/grouping.cc @@ -38,7 +38,7 @@ Rhythmic_grouping::interval()const else return MInterval(children[0]->interval().left, - children.last()->interval().right); + children.top()->interval().right); } void @@ -217,7 +217,7 @@ bool Rhythmic_grouping::child_fit_query(Moment start) { if (children.size()) - return ( children.last()->interval().right== start); + return ( children.top()->interval().right== start); return true; } @@ -311,7 +311,7 @@ Rhythmic_grouping::extend(MInterval m) Array a(children); for (int i=0; i < a.size(); i++) { a[i] =new Rhythmic_grouping(*children[i]); - a[i]->translate(children.last()->interval().right); + a[i]->translate(children.top()->interval().right); } children.concat(a); } diff --git a/src/scores.cc b/src/scores.cc index 06a401fd82..59b6f6670d 100644 --- a/src/scores.cc +++ b/src/scores.cc @@ -33,7 +33,7 @@ Input_score* current_iscore_l() { if ( score_array_global.size() ) - return score_array_global.last(); // UGH + return score_array_global.top(); // UGH else return 0; } diff --git a/src/slur.cc b/src/slur.cc index bd1f4c3d1d..5b7f99d16e 100644 --- a/src/slur.cc +++ b/src/slur.cc @@ -22,7 +22,7 @@ Slur::Slur() Offset Slur::center() const { - int pos1 = encompass.last()->position; + int pos1 = encompass.top()->position; int pos2 = encompass[0]->position; int dy = pos1-pos2; @@ -58,7 +58,7 @@ Slur::set_default_dir() void Slur::do_pre_processing() { - right = encompass.last()->pcol_l_; + right = encompass.top()->pcol_l_; left = encompass[0]->pcol_l_; } @@ -101,7 +101,7 @@ Slur::brew_molecule_p() const assert(encompass.size()>0); // todo Notehead *lnote_p =encompass[0]; - Notehead *rnote_p =encompass.last(); + Notehead *rnote_p =encompass.top(); int lpos_i = lnote_p->position; int rpos_i = rnote_p->position; Offset left_off(lnote_p->x_dir, lpos_i + 2*dir); diff --git a/src/stem.cc b/src/stem.cc index fc5f9accb4..dc63e9e7eb 100644 --- a/src/stem.cc +++ b/src/stem.cc @@ -121,7 +121,7 @@ Stem::set_noteheads() { heads.sort(Notehead::compare); heads[0]->extremal = -1; - heads.last()->extremal = 1; + heads.top()->extremal = 1; int parity=1; int lastpos = heads[0]->position; for (int i=1; i < heads.size(); i ++) { diff --git a/src/wordwrap.cc b/src/wordwrap.cc index cc114e9e52..469d2d1d29 100644 --- a/src/wordwrap.cc +++ b/src/wordwrap.cc @@ -60,7 +60,7 @@ Word_wrap::solve() // add nobreak version of breakable column - current.cols.last()=breakpoints[break_idx_i]; + current.cols.top()=breakpoints[break_idx_i]; curcol ++; break_idx_i++; } -- 2.39.5