Remove recursion from kill_block()
commitfbb7642b73ee1b80f4d7bae8dd959aa0aacc47d8
authorPetr Tesarik <petr@tesarici.cz>
Mon, 22 Oct 2012 21:23:15 +0000 (22 23:23 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Mon, 22 Oct 2012 21:23:15 +0000 (22 23:23 +0200)
tree52d627f74c70b93001d34fa2e37a8de824469f8a
parent592819f32103842c18d42b607dcca1d347e8b4e3
Remove recursion from kill_block()

The recursion can be converted to a conditional. Why is it not
converted to a while-loop? It could be, but there should be no
difference in practice, because mergeable blocks are never created
(instead the previous/following block is extended).

Note that looping over following blocks was never possible as long
as the function guaranteed that it doesn't destroy anything that
follows the block to be deleted.
libhed/file.c