#include "paper-system.hh"
#include "text-interface.hh"
#include "warn.hh"
+#include "program-option.hh"
#include "ly-smobs.icc"
if (ly_is_module (header_))
scopes = scm_cons (header_, scopes);
- string mod_nm = "scm framework-" + output_backend_global;
+ string mod_nm = "scm framework-" + get_output_backend_name ();
SCM mod = scm_c_resolve_module (mod_nm.c_str ());
- if (make_print)
+
+ if (get_program_option ("print-pages"))
{
SCM func = scm_c_module_lookup (mod, "output-framework");
SCM_UNDEFINED));
}
- if (make_preview)
+ if (get_program_option ("preview"))
{
SCM func = scm_c_module_lookup (mod, "output-preview-framework");
func = scm_variable_ref (func);
if (ly_is_module (header_0_))
scopes = scm_cons (header_0_, scopes);
- string format = output_backend_global;
+ string format = get_output_backend_name ();
string mod_nm = "scm framework-" + format;
SCM mod = scm_c_resolve_module (mod_nm.c_str ());
/* read the breakbefore property of a score block and set up the preceding
system-spec to honour it. That is, SYM should be the system spec that
immediately precedes the score (from which HEADER is taken)
- in the get_system_specs() list */
+ in the get_system_specs () list */
void
set_system_penalty (SCM sys, SCM header)
{
Prob *ps = make_paper_system (props);
paper_system_set_stencil (ps, title);
- return ps->self_scm();
+ return ps->self_scm ();
}
return SCM_BOOL_F;