X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fcontext-mod.cc;h=a51f7cf71e7ee4ca9afaecb08dfa0b7f7dfa988f;hb=0acfe2cc783865a3f1b855cff58d43fe4410cbca;hp=a028930c2ba79d23381992a985f9a421ff39b4b7;hpb=55ac733b69643a6bc6a83b706c65cb56efd388ef;p=lilypond.git diff --git a/lily/context-mod.cc b/lily/context-mod.cc index a028930c2b..a51f7cf71e 100644 --- a/lily/context-mod.cc +++ b/lily/context-mod.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2010--2011 Reinhold Kainhofer + Copyright (C) 2010--2012 Reinhold Kainhofer LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -29,12 +29,18 @@ Context_mod::Context_mod (Context_mod const &s) mods_ = s.mods_; } +Context_mod::Context_mod (SCM mod_list) +{ + mods_ = scm_reverse (mod_list); +} + #include "ly-smobs.icc" IMPLEMENT_SIMPLE_SMOBS (Context_mod); IMPLEMENT_DEFAULT_EQUAL_P (Context_mod); +IMPLEMENT_TYPE_P (Context_mod, "ly:context-mod?"); int -Context_mod::print_smob (SCM smob, SCM port, scm_print_state*) +Context_mod::print_smob (SCM smob, SCM port, scm_print_state *) { Context_mod *me = (Context_mod *) SCM_CELL_WORD_1 (smob);