a single list of context modifications? */
#include "context-def.hh"
+
#include "engraver.hh"
-#include "lily-proto.hh"
#include "output-def.hh"
#include "performer.hh"
#include "score-context.hh"
accepteds.push (t);
Link_array<Context_def> best_result;
- for (int i=0; i < accepteds.size (); i++)
+ for (int i = 0; i < accepteds.size (); i++)
{
/* do not check aliases, because \context Staff should not
create RhythmicStaff. */
}
}
- int best_depth= INT_MAX;
- for (int i=0; i < accepteds.size (); i++)
+ int best_depth = INT_MAX;
+ for (int i = 0; i < accepteds.size (); i++)
{
Context_def * g = accepteds[i];
Context *
-Context_def::instantiate (SCM ops)
+Context_def::instantiate (SCM ops, Object_key const *key)
{
Context *tg = 0;
if (context_name_ == ly_symbol2scm ("Score"))
- tg = new Score_context ();
+ tg = new Score_context (key);
else
- tg = new Context ();
+ tg = new Context (key);
tg->definition_ = self_scm ();
if (scm_is_pair (trans_list))
scm_set_cdr_x (scm_last_pair (trans_list), cons);
else
- trans_list= cons;
+ trans_list = cons;
}
else
{