1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-16 10:50:49 -08:00

Permitting tree traversals to abort early.

Copied from Perforce
 Change: 184511
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Richard Brooksby 2014-02-23 14:42:23 +00:00
parent 59334b5e4f
commit f47100fd09
3 changed files with 23 additions and 12 deletions

View file

@ -667,8 +667,8 @@ void CBSIterate(CBS cbs, CBSIterateMethod iterate,
closure.iterate = iterate;
closure.closureP = closureP;
closure.closureS = closureS;
TreeTraverse(SplayTreeRoot(tree), tree->compare, tree->nodeKey,
CBSIterateVisit, &closure, 0);
(void)TreeTraverse(SplayTreeRoot(tree), tree->compare, tree->nodeKey,
CBSIterateVisit, &closure, 0);
cbsLeave(cbs);
return;