Owner: dak@gnu.org
When ly:make-unpure-pure-container
is called with a single procedure
argument, this procedure is used for both unpure and pure calls. It
turns out that the calling convention in call_pure_function
places the
start/end arguments always in position 2/3 of the call.
Unpure_pure_call::call
previously always dropped the last 2 arguments of
a pure call before passing the rest on. Most calls take exactly 3
arguments (grob start end)
where this does not make a difference, but
there may be use cases with a different number of arguments.
Passes make, make check and a full make doc.
New patchset, which consists of commits:
call_pure_function
Simple_closure
smob typegrob::compose-function
andgrob::offset-function
into Cgrob::compose-function
andgrob::offset-function
Those are the main replacements for the uses of
ly:make-simple-closure
in
lily/grob-closure.cc
.ly:pure-call
andly:unpure-call
functionschain-grob-member-functions
Last edit: Simon Albrecht 2015-09-25
Unpure_pure_call::call
--> Remove/replace Simple_closure smob typeUnpure_pure_call::call
Reverting changes. The other commits now are grouped in issue 4620.
Related
Issues:
#4620Patch on countdown for September 29th.
Patch counted down - please push.
Pushed to staging as
Last edit: David Kastrup 2015-09-29