default_duration_.durlog_i_ = 2;
default_abbrev_i_ = 0;
error_level_i_ = 0;
+ extender_req = 0;
fatal_error_i_ = 0;
default_header_p_ =0;
}
return v;
}
+
+/*
+ UGH.
+ */
Array<Request*>*
My_lily_parser::get_parens_request (int t)
{
switch (t)
{
case BEAMPLET:
- reqs.top ()->access_Span_req ()->spantype = Span_req::START;
+ dynamic_cast<Span_req*> (reqs.top ())->spantype = Span_req::START;
/* fall through */
case '<':
case '>':
case '(':
case '[':
case PLET:
- reqs[0]->access_Span_req ()->spantype = Span_req::START;
+ dynamic_cast<Span_req*> (reqs.top ())->spantype = Span_req::START;
break;
case MAEBTELP:
- reqs.top ()->access_Span_req ()->spantype = Span_req::STOP;
+ dynamic_cast<Span_req*> (reqs.top ())->spantype = Span_req::STOP;
/* fall through */
case '!':
case ')':
case ']':
- reqs[0]->access_Span_req ()->spantype = Span_req::STOP;
+ dynamic_cast<Span_req*> (reqs[0])->spantype = Span_req::STOP;
break;
default:
}
for (int i = 0; i < reqs.size (); i++)
- if (reqs[i]->access_Musical_req ()->access_Span_dynamic_req ())
+ if (dynamic_cast<Span_dynamic_req*> (reqs[i]))
{
- Span_dynamic_req* s_l= reqs[i]->access_Musical_req ()->access_Span_dynamic_req ();
+ Span_dynamic_req* s_l= dynamic_cast<Span_dynamic_req*> (reqs[i]);
s_l->dynamic_dir_ = (t == '<') ? UP:DOWN;
}
My_lily_parser::default_paper_p ()
{
Identifier *id = lexer_p_->lookup_identifier ("$defaultpaper");
- return id ? id->access_Paper_def () : new Paper_def ;
+ return id ? id->access_content_Paper_def (true) : new Paper_def ;
}
Midi_def*
My_lily_parser::default_midi_p ()
{
Identifier *id = lexer_p_->lookup_identifier ("$defaultmidi");
- return id ? id->access_Midi_def () : new Midi_def ;
+ return id ? id->access_content_Midi_def (true) : new Midi_def ;
}