]> git.donarmstrong.com Git - lilypond.git/commit
Issue 4070: Cyclic markup detection unable to deal with non-linear code execution
authorDavid Kastrup <dak@gnu.org>
Mon, 18 Aug 2014 16:17:05 +0000 (18:17 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 24 Aug 2014 11:17:47 +0000 (13:17 +0200)
commitdbb052ff31e25cbb21791363a58271f55d0c5be0
treeb5399040aa035c46497be869692149d1a3cf4492
parent184b9e9e2a8a70dfd43fca3b6e0e09bc0c46296f
Issue 4070: Cyclic markup detection unable to deal with non-linear code execution

This uses dynamic winding to keep the stack depth counts accurate even
in the presence of non-local exits like those used of
map-markup-commands.  It also changes the regtest
markup-cyclic-reference.ly since it seems too much trouble to trap both
cyclic references via a tortoise/hare algorithm as well as limiting the
maximum markup stack depth.
input/regression/markup-cyclic-reference.ly
lily/text-interface.cc