X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpaper-outputter.cc;h=6dff3242439bcc0c16ea0d5eabbe2fc532570f46;hb=0b544cfb7332615ef809b71b57ab656741311ae1;hp=33657d60cb6f844cb50bbc505a63021d23cb5365;hpb=f93e4199873c91ae32f0e84a610d14853dc379df;p=lilypond.git diff --git a/lily/paper-outputter.cc b/lily/paper-outputter.cc index 33657d60cb..6dff324243 100644 --- a/lily/paper-outputter.cc +++ b/lily/paper-outputter.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1997--2011 Han-Wen Nienhuys + Copyright (C) 1997--2014 Han-Wen Nienhuys Jan Nieuwenhuizen LilyPond is free software: you can redistribute it and/or modify @@ -40,7 +40,7 @@ using namespace std; #include "ly-smobs.icc" -Paper_outputter::Paper_outputter (SCM port, string format) +Paper_outputter::Paper_outputter (SCM port, const string &format) { file_ = port; output_module_ = SCM_EOL; @@ -105,17 +105,20 @@ Paper_outputter::module () const return output_module_; } -void +SCM Paper_outputter::output_scheme (SCM scm) { - dump_string (scheme_to_string (scm)); + SCM str = scheme_to_string (scm); + if (scm_is_string (str)) + dump_string (str); + return str; } -void +SCM paper_outputter_dump (void *po, SCM x) { Paper_outputter *me = (Paper_outputter *) po; - me->output_scheme (x); + return me->output_scheme (x); } void