#include "global-context.hh"
#include <cstdio>
+using namespace std;
#include "context-def.hh"
#include "dispatcher.hh"
#include "output-def.hh"
#include "warn.hh"
-using std::string;
+Preinit_Global_context::Preinit_Global_context ()
+{
+ output_def_ = 0;
+}
Global_context::Global_context (Output_def *o)
: Context ()
accepts_list_ = scm_list_1 (default_child_);
}
+void
+Global_context::derived_mark () const
+{
+ if (output_def_)
+ scm_gc_mark (output_def_->self_scm ());
+}
+
Output_def *
Global_context::get_output_def () const
{
if (iter->ok ())
iter->process (w);
- send_stream_event (this, "OneTimeStep", 0, 0);
+ send_stream_event (this, "OneTimeStep", 0);
apply_finalizations ();
check_removal ();
}