X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fcontext-mod.cc;h=cb6cf83562fcd64fe5d8303f3ab4ceb2cd56627b;hb=aefc5a4057a0a61f1d7e4411cc1c5061d9aea6b7;hp=c1fc344c29bbeb882722a99c423f899e2f74214e;hpb=a42aaa559b71ce5776795fa11a7e1df9110d85b7;p=lilypond.git diff --git a/lily/context-mod.cc b/lily/context-mod.cc index c1fc344c29..cb6cf83562 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 @@ -45,7 +45,7 @@ Context_mod::print_smob (SCM smob, SCM port, scm_print_state *) Context_mod *me = (Context_mod *) SCM_CELL_WORD_1 (smob); scm_puts ("#mods_, port); + scm_display (me->get_mods (), port); scm_puts (">", port); return 1; } @@ -53,11 +53,10 @@ Context_mod::print_smob (SCM smob, SCM port, scm_print_state *) SCM Context_mod::mark_smob (SCM smob) { - ASSERT_LIVE_IS_ALLOWED (); + ASSERT_LIVE_IS_ALLOWED (smob); Context_mod *me = (Context_mod *) SCM_CELL_WORD_1 (smob); - scm_gc_mark (me->mods_); return me->mods_; }