]> git.donarmstrong.com Git - lilypond.git/commit
Issue 4618: Correct argument handling of Unpure_pure_call::call
authorDavid Kastrup <dak@gnu.org>
Wed, 23 Sep 2015 19:50:39 +0000 (21:50 +0200)
committerDavid Kastrup <dak@gnu.org>
Tue, 29 Sep 2015 05:30:49 +0000 (07:30 +0200)
commit7b8fc6cb7d8ed1b072b7027ad5035ff90f8dfabc
tree2e47deb6177120e9b36939d6f7bc9ffdf2e0fddf
parentb012e497b1bff0e5ba2b32d1dad0670b0a016477
Issue 4618: Correct argument handling of Unpure_pure_call::call

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.
lily/unpure-pure-container.cc