X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fcontext-mod.cc;h=892d692bbf8f6c2a89ff1d7288929cf8a8891e95;hb=90e4d7057f3857da049dfda3d130017d4719bd6b;hp=16910aa37ed455bb445993af8d7d9f2a1ce64694;hpb=00b9619cea1020f6773f23df8764ef85ee2912bf;p=lilypond.git diff --git a/lily/context-mod.cc b/lily/context-mod.cc index 16910aa37e..892d692bbf 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--2014 Reinhold Kainhofer + Copyright (C) 2010--2015 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 @@ -34,21 +34,19 @@ Context_mod::Context_mod (SCM mod_list) mods_ = scm_reverse (mod_list); } -const char Context_mod::type_p_name_[] = "ly:context-mod?"; +const char * const Context_mod::type_p_name_ = "ly:context-mod?"; int -Context_mod::print_smob (SCM smob, SCM port, scm_print_state *) +Context_mod::print_smob (SCM port, scm_print_state *) const { - Context_mod *me = (Context_mod *) SCM_CELL_WORD_1 (smob); - scm_puts ("#get_mods (), port); + scm_display (get_mods (), port); scm_puts (">", port); return 1; } SCM -Context_mod::mark_smob () +Context_mod::mark_smob () const { return mods_; }