X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fsimple-closure.cc;h=22ee294f49916b9e283c19745b944eafe7bb9673;hb=c9720d4d521eb2fe7dd916334239fa0f607b256a;hp=139478983a89f000258fa09b499634b739ef2247;hpb=13a8e28de140702edbb0629002073972008e17ad;p=lilypond.git diff --git a/lily/simple-closure.cc b/lily/simple-closure.cc index 139478983a..22ee294f49 100644 --- a/lily/simple-closure.cc +++ b/lily/simple-closure.cc @@ -3,13 +3,12 @@ source file of the GNU LilyPond music typesetter - (c) 2005--2006 Han-Wen Nienhuys + (c) 2005--2007 Han-Wen Nienhuys */ #include "simple-closure.hh" #include "grob.hh" -#include "lily-guile.hh" static scm_t_bits simple_closure_tag; @@ -84,14 +83,14 @@ evaluate_with_simple_closure (SCM delayed_argument, return SCM_EOL; } -LY_DEFINE(ly_simple_closure_p, "ly:simple-closure?", +LY_DEFINE (ly_simple_closure_p, "ly:simple-closure?", 1,0,0, (SCM clos), "Type predicate.") { return scm_from_bool (is_simple_closure (clos)); } -LY_DEFINE(ly_make_simple_closure, "ly:make-simple-closure", +LY_DEFINE (ly_make_simple_closure, "ly:make-simple-closure", 1, 0, 0, (SCM expr), "Make a simple closure. @var{expr} should be form of " "@code{(@var{func} @var{a1} @var{A2} ...)}, and will be invoked " @@ -99,11 +98,11 @@ LY_DEFINE(ly_make_simple_closure, "ly:make-simple-closure", { SCM z; - SCM_NEWSMOB(z, simple_closure_tag, expr); + SCM_NEWSMOB (z, simple_closure_tag, expr); return z; } -LY_DEFINE(ly_eval_simple_closure, "ly:eval-simple-closure", +LY_DEFINE (ly_eval_simple_closure, "ly:eval-simple-closure", 2, 2, 0, (SCM delayed, SCM closure, SCM scm_start, SCM scm_end), "Evaluate a simple closure with the given delayed argument. " "If start and end are defined, evaluate it purely with those "