X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fcontext-mod.cc;h=2d35e05f836b31278e5a376b8c8d0416c2e07c09;hb=9e781b7dc83b60a543ce218aa1a5f139f74c760f;hp=a51f7cf71e7ee4ca9afaecb08dfa0b7f7dfa988f;hpb=d61cf3bbdb1c6670a127ba3baddf2f04d3e34fd3;p=lilypond.git diff --git a/lily/context-mod.cc b/lily/context-mod.cc index a51f7cf71e..2d35e05f83 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--2012 Reinhold Kainhofer + Copyright (C) 2010--2014 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_; }