source file of the GNU LilyPond music typesetter
- (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 1997--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#include "output-def.hh"
Output_def::Output_def ()
{
scope_ = SCM_EOL;
- parser_ = 0;
parent_ = 0;
smobify_self ();
{
scope_ = SCM_EOL;
parent_ = 0;
- parser_ = s.parser_;
smobify_self ();
input_origin_ = s.input_origin_;
IMPLEMENT_SMOBS (Output_def);
IMPLEMENT_DEFAULT_EQUAL_P (Output_def);
-Lily_parser *
-Output_def::get_parser () const
-{
- return parent_ ? parent_->get_parser () : parser_;
-}
-
SCM
Output_def::mark_smob (SCM m)
{
Output_def::lookup_variable (SCM sym) const
{
SCM var = ly_module_lookup (scope_, sym);
- if (SCM_VARIABLEP (var) && SCM_VARIABLE_REF(var) != SCM_UNDEFINED)
+ if (SCM_VARIABLEP (var) && SCM_VARIABLE_REF (var) != SCM_UNDEFINED)
return SCM_VARIABLE_REF (var);
if (parent_)
}
SCM
-Output_def::c_variable (std::string s) const
+Output_def::c_variable (string s) const
{
return lookup_variable (ly_symbol2scm (s.c_str ()));
}