X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Flily-parser.cc;h=13d62ebc5c762eb68873bace69250e14687026dd;hb=85c88bf2574dd95e77a2468580833b9e493430b0;hp=456acd1a9e023109c88139e1a66b270a4f3f3323;hpb=3ee551fa4f2a2c3736a06f9f85f29b9f7bd89818;p=lilypond.git diff --git a/lily/lily-parser.cc b/lily/lily-parser.cc index 456acd1a9e..13d62ebc5c 100644 --- a/lily/lily-parser.cc +++ b/lily/lily-parser.cc @@ -15,6 +15,7 @@ #include "international.hh" #include "lily-lexer.hh" #include "lily-version.hh" +#include "ly-module.hh" #include "main.hh" #include "output-def.hh" #include "paper-book.hh" @@ -23,6 +24,7 @@ #include "sources.hh" #include "text-metrics.hh" #include "warn.hh" +#include "program-option.hh" #include "ly-smobs.icc" @@ -85,12 +87,11 @@ Lily_parser::print_smob (SCM s, SCM port, scm_print_state*) void Lily_parser::parse_file (string init, string name, string out_name) { - if (output_backend_global == "tex") + if (get_output_backend_name () == "tex") try_load_text_metrics (out_name); // TODO: use $parser - lexer_->set_identifier (ly_symbol2scm ("parser"), - self_scm ()); + lexer_->set_identifier (ly_symbol2scm ("parser"), self_scm ()); output_basename_ = out_name; lexer_->main_input_name_ = name; @@ -250,5 +251,6 @@ get_header (Lily_parser *parser) SCM Lily_parser::make_scope () const { - return ly_make_anonymous_module (be_safe_global); + SCM module = ly_make_anonymous_module (be_safe_global); + return module; }