source file of the GNU LilyPond music typesetter
- (c) 1997--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 1997--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#include "global-context.hh"
#include "context-def.hh"
#include "dispatcher.hh"
#include "international.hh"
-#include "lilypond-key.hh"
#include "music-iterator.hh"
#include "music.hh"
#include "output-def.hh"
#include "warn.hh"
-Global_context::Global_context (Output_def *o, Object_key *key)
- : Context (new Lilypond_context_key (key,
- Moment (0),
- "Global", "", 0))
+Global_context::Global_context (Output_def *o)
+ : Context ()
{
output_def_ = o;
definition_ = find_context_def (o, ly_symbol2scm ("Global"));
else
prev_mom_ = now_mom_;
now_mom_ = *mom;
-
- clear_key_disambiguations ();
}
Moment
else
return Context::get_default_interpreter ();
}
+
+Global_context *
+unsmob_global_context (SCM x)
+{
+ return dynamic_cast<Global_context *> (unsmob_context (x));
+}