X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fapply-context-iterator.cc;h=7874509da21a69aeca96a8043a894ca87c6cf1d5;hb=16013bd6cc1679432f43db72a519378b5993c208;hp=798915ab89507ce5ead2511d8dfaf6ccbdbcd33e;hpb=e24df7c27635dc996c466295eacf2981bddccaf7;p=lilypond.git diff --git a/lily/apply-context-iterator.cc b/lily/apply-context-iterator.cc index 798915ab89..7874509da2 100644 --- a/lily/apply-context-iterator.cc +++ b/lily/apply-context-iterator.cc @@ -1,20 +1,17 @@ -/* - apply-context-iterator.cc -- implement Apply_context_iterator - +/* + apply-context-iterator.cc -- implement Apply_context_iterator + source file of the GNU LilyPond music typesetter - - (c) 2004--2005 Han-Wen Nienhuys - + + (c) 2004--2009 Han-Wen Nienhuys */ -#include "simple-music-iterator.hh" #include "context.hh" -#include "music.hh" #include "input.hh" +#include "international.hh" +#include "music.hh" +#include "simple-music-iterator.hh" -/** - Iterate a property. - */ class Apply_context_iterator : public Simple_music_iterator { public: @@ -23,19 +20,18 @@ protected: virtual void process (Moment); }; - void Apply_context_iterator::process (Moment m) { SCM proc = get_music ()->get_property ("procedure"); - if (ly_c_procedure_p (proc)) + if (ly_is_procedure (proc)) scm_call_1 (proc, get_outlet ()->self_scm ()); else - get_music ()->origin ()->warning (_("\\applycontext argument is not a procedure")); - + get_music ()->origin ()->warning (_ ("\\applycontext argument is not a procedure")); + Simple_music_iterator::process (m); } IMPLEMENT_CTOR_CALLBACK (Apply_context_iterator); - +