X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fkey-signature-interface.cc;h=3249a736c3f2a18c103107bdce08e851b06650b8;hb=6defe33388b630e1f2aa5b76c9b6eecfd0607343;hp=e345e9d132308b768584cea3daf40919f5439a00;hpb=5bbfc22fce036b9b69df5e420de93e11da23c05e;p=lilypond.git diff --git a/lily/key-signature-interface.cc b/lily/key-signature-interface.cc index e345e9d132..3249a736c3 100644 --- a/lily/key-signature-interface.cc +++ b/lily/key-signature-interface.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1996--2014 Han-Wen Nienhuys + Copyright (C) 1996--2015 Han-Wen Nienhuys keyplacement by Mats Bengtsson @@ -27,11 +27,11 @@ #include "output-def.hh" #include "staff-symbol-referencer.hh" #include "rational.hh" +#include "lily-imports.hh" struct Key_signature_interface { DECLARE_SCHEME_CALLBACK (print, (SCM)); - DECLARE_GROB_INTERFACE (); }; /* @@ -42,7 +42,7 @@ MAKE_SCHEME_CALLBACK (Key_signature_interface, print, 1); SCM Key_signature_interface::print (SCM smob) { - Item *me = dynamic_cast (Grob::unsmob (smob)); + Item *me = unsmob (smob); Real inter = Staff_symbol_referencer::staff_space (me) / 2.0; @@ -87,11 +87,10 @@ Key_signature_interface::print (SCM smob) me->warning (_ ("alteration not found")); else { - SCM proc = ly_lily_module_constant ("key-signature-interface::alteration-positions"); - pos.set_empty (); Stencil column; - for (SCM pos_list = scm_call_3 (proc, scm_car (s), c0s, smob); + for (SCM pos_list = Lily::key_signature_interface_alteration_positions + (scm_car (s), c0s, smob); scm_is_pair (pos_list); pos_list = scm_cdr (pos_list)) { int p = scm_to_int (scm_car (pos_list));