X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Foutput-def.cc;h=e277a00534513f8cddb7460da4b6afc86bd954bc;hb=b787af94e0ec9e9bcfaed40cd73730c0e1e3ffd9;hp=525ccd975e0a9bcc6950cc0d9cf1220e0b2c985c;hpb=90d3233da87b372e02690978f89b2add3863fba6;p=lilypond.git diff --git a/lily/output-def.cc b/lily/output-def.cc index 525ccd975e..e277a00534 100644 --- a/lily/output-def.cc +++ b/lily/output-def.cc @@ -17,13 +17,12 @@ along with LilyPond. If not, see . */ -#include "output-def.hh" - #include "context-def.hh" #include "file-path.hh" #include "global-context.hh" #include "international.hh" #include "interval.hh" +#include "ly-module.hh" #include "main.hh" #include "output-def.hh" #include "scm-hash.hh" @@ -34,8 +33,6 @@ #include "string-convert.hh" -ADD_SMOB_INIT (Output_def); - Output_def::Output_def () { scope_ = SCM_EOL; @@ -65,7 +62,7 @@ Output_def::~Output_def () SCM -Output_def::mark_smob () +Output_def::mark_smob () const { /* FIXME: why is this necessary? all paper_ should be protected by themselves. */ @@ -78,7 +75,7 @@ Output_def::mark_smob () void assign_context_def (Output_def * m, SCM transdef) { - Context_def *tp = Context_def::unsmob (transdef); + Context_def *tp = unsmob (transdef); assert (tp); if (tp) @@ -92,12 +89,12 @@ assign_context_def (Output_def * m, SCM transdef) SCM find_context_def (Output_def const *m, SCM name) { - Context_def *cd = Context_def::unsmob (m->lookup_variable (name)); + Context_def *cd = unsmob (m->lookup_variable (name)); return cd ? cd->self_scm () : SCM_EOL; } int -Output_def::print_smob (SCM p, scm_print_state *) +Output_def::print_smob (SCM p, scm_print_state *) const { scm_puts ("#< ", p); scm_puts (class_name (), p);