]> git.eshelyaron.com Git - emacs.git/commit
Add debugging help for nested iterators (nug#58144)
authorGerd Möllmann <gerd@gnu.org>
Wed, 28 Sep 2022 14:30:34 +0000 (16:30 +0200)
committerGerd Möllmann <gerd@gnu.org>
Wed, 28 Sep 2022 14:30:34 +0000 (16:30 +0200)
commit498d331b07117408c5c5d8a3889b49b275b9a654
tree645d97f0bd0b9e310b6257b515d14026071d04bd
parent8173a292e7366beff0279480cbd2f73bf2357568
Add debugging help for nested iterators (nug#58144)

When starting an iteration, store __FILE__ and __LINE__ where this
happens in the interval_tree structure.

* src/buffer.h (buffer_overlay_iter_start): New macro adding __FILE
and __LINE__.
(buffer_overlay_iter_start1): Renamed from ..._start.
* src/itree.h (struct interval_tree): Add file and line info.
* src/itree.c: (interval_tree_contains, interval_tree_nodes,
interval_tree_insert_gap): Pass __FILE__ and __LINE__ to iter_start.
(interval_tree_iter_start): Record file and line info in tree.
src/buffer.h
src/itree.c
src/itree.h