From: fred Date: Sun, 24 Mar 2002 19:38:12 +0000 (+0000) Subject: lilypond-0.0.49 X-Git-Tag: release/1.5.59~5021 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ed8ec8a3ba6b3880082ba4e02a002dee256d3548;p=lilypond.git lilypond-0.0.49 --- diff --git a/flower/include/list.hh b/flower/include/list.hh index 1cfa9f54ed..a7389ed489 100644 --- a/flower/include/list.hh +++ b/flower/include/list.hh @@ -86,11 +86,6 @@ class List #include "list.icc" #include "cursor.hh" -// instantiate a template: explicit instantiation. -#define L_instantiate(a) template class List; template class Cursor; \ - template class Link - - #endif // __LIST_HH // diff --git a/flower/include/list.tcc b/flower/include/list.tcc index bd3a16b0c6..e3fa43cdd3 100644 --- a/flower/include/list.tcc +++ b/flower/include/list.tcc @@ -1,6 +1,11 @@ #ifndef LIST_CC #define LIST_CC + +// instantiate a template: explicit instantiation. +#define L_instantiate(a) template class List; template class Cursor; \ + template class Link + #include "list.hh" template diff --git a/flower/include/plist.hh b/flower/include/plist.hh index 1fc4d941ab..80d780e3d6 100644 --- a/flower/include/plist.hh +++ b/flower/include/plist.hh @@ -62,10 +62,6 @@ template void PL_copy(IPointerList &dst,IPointerList const&src); -#define PL_instantiate(a) template class PointerList; \ - template class PCursor; -#define IPL_instantiate(a) PL_instantiate(a); \ - template class IPointerList #include "plist.icc" diff --git a/flower/include/plist.tcc b/flower/include/plist.tcc index ac9daedf71..d18e01f902 100644 --- a/flower/include/plist.tcc +++ b/flower/include/plist.tcc @@ -1,5 +1,10 @@ #include "plist.hh" +#define PL_instantiate(a) template class PointerList; \ + template class PCursor; +#define IPL_instantiate(a) PL_instantiate(a); \ + template class IPointerList + template IPointerList::~IPointerList() { diff --git a/lily/grouping.cc b/lily/grouping.cc index 2e59f05bd2..b44a9d90e4 100644 --- a/lily/grouping.cc +++ b/lily/grouping.cc @@ -227,7 +227,7 @@ Rhythmic_grouping::print()const } bool -Rhythmic_grouping::child_fit_query(Moment start) +Rhythmic_grouping::child_fit_b(Moment start) { if (children.size()) return ( children.top()->interval().right== start); @@ -240,7 +240,7 @@ Rhythmic_grouping::add_child(Moment start, Moment len) { Moment stop = start+len; - assert(child_fit_query(start)); + assert(child_fit_b(start)); children.push(new Rhythmic_grouping(MInterval(start, stop))); } diff --git a/lily/include/grouping.hh b/lily/include/grouping.hh index 06b4421b0a..06061743ac 100644 --- a/lily/include/grouping.hh +++ b/lily/include/grouping.hh @@ -34,7 +34,7 @@ struct Rhythmic_grouping { ~Rhythmic_grouping(); void add_child(Moment start, Moment len); - bool child_fit_query(Moment start); + bool child_fit_b(Moment start); void split(Rhythmic_grouping r); void split(Array); void split(int n); diff --git a/lily/include/notename-table.hh b/lily/include/notename-table.hh new file mode 100644 index 0000000000..4e357a2593 --- /dev/null +++ b/lily/include/notename-table.hh @@ -0,0 +1,24 @@ +/* + notename-table.hh -- declare + + source file of the LilyPond music typesetter + + (c) 1997 Han-Wen Nienhuys +*/ + + +#ifndef NOTENAME_TABLE_HH +#define NOTENAME_TABLE_HH + +#include "pointer.hh" +#include "string.hh" +#include "lily-proto.hh" +#include "assoc.hh" + +class Notename_table : Assoc >{ +public: + void add(String, Melodic_req*); + Melodic_req*get_l(String); +}; + +#endif // NOTENAME_TABLE_HH diff --git a/lily/stem-beam-reg.cc b/lily/stem-beam-reg.cc index 80aa450771..773f0ac1e0 100644 --- a/lily/stem-beam-reg.cc +++ b/lily/stem-beam-reg.cc @@ -40,7 +40,7 @@ Stem_beam_register::try_request(Request*req_l) } if ( req_l->stem() ) { - if (current_grouping && !current_grouping->child_fit_query( + if (current_grouping && !current_grouping->child_fit_b( get_staff_info().time_C_->whole_in_measure_)) return false;