X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fpaper-outputter-scheme.cc;h=d7fe624952264fafe49a307fe802632875946631;hb=2efb2a313d08dd7d6490450e1591ba7feff12581;hp=fe9c0a82cedb039b84cc94b45cdf4aaaad150d03;hpb=260073be07f49a5f6f3be8df2af52873843eec60;p=lilypond.git diff --git a/lily/paper-outputter-scheme.cc b/lily/paper-outputter-scheme.cc index fe9c0a82ce..d7fe624952 100644 --- a/lily/paper-outputter-scheme.cc +++ b/lily/paper-outputter-scheme.cc @@ -3,14 +3,14 @@ source file of the GNU LilyPond music typesetter - (c) 2005 Han-Wen Nienhuys + (c) 2005--2006 Han-Wen Nienhuys */ #include "paper-outputter.hh" -#include "warn.hh" -#include "stencil.hh" - +#include "international.hh" +#include "stencil.hh" +#include "warn.hh" LY_DEFINE (ly_make_paper_outputter, "ly:make-paper-outputter", 2, 0, 0, (SCM port, SCM format), @@ -22,21 +22,21 @@ LY_DEFINE (ly_make_paper_outputter, "ly:make-paper-outputter", SCM_ASSERT_TYPE (scm_is_string (format), format, SCM_ARG2, __FUNCTION__, "String"); - String f = ly_scm2string (format); + string f = ly_scm2string (format); + + string output_name = ""; - String output_name = ""; - SCM port_name = scm_port_filename (port); if (scm_is_string (port_name)) output_name = ly_scm2string (port_name); - + message (_f ("Layout output to `%s'...", - output_name.to_str0 ())); + output_name.c_str ())); progress_indication ("\n"); Paper_outputter *po = new Paper_outputter (port, f); - scm_gc_unprotect_object (po->self_scm ()); + po->unprotect (); return po->self_scm (); }