]> git.eshelyaron.com Git - emacs.git/commit
New ITREE_FOREACH macro
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 2 Oct 2022 05:30:44 +0000 (01:30 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 2 Oct 2022 05:30:44 +0000 (01:30 -0400)
commit1303f55161ae40cc98ccddc37755b58b68840798
treef7fb6040be18969a4b40795f1d5da17056c4bc54
parentab2926aad3e15c6cfa0e4b31ae9274c47a58baf2
New ITREE_FOREACH macro

* src/itree.h (interval_tree_iter_start): Adjust type.
(interval_tree_nodes): Delete declaration.
(ITREE_FOREACH, ITREE_FOREACH_ABORT, ITREE_FOREACH_NARROW): New macros.

* src/itree.c (interval_tree_contains, interval_tree_insert_gap):
Use the new ITREE_FOREACH macro.
(interval_tree_nodes): Delete function.
(interval_tree_iter_start): Return the iterator.
(interval_generator_next, interval_tree_destroy):
Don't accept a NULL arg any more.

* src/xdisp.c (load_overlay_strings, strings_with_newlines):
* src/textprop.c (get_char_property_and_overlay):
* src/buffer.c (copy_overlays, delete_all_overlays)
(set_overlays_multibyte, swap_buffer_overlays, overlays_in)
(next_overlay_change, previous_overlay_change, overlay_touches_p)
(overlay_strings, Foverlay_lists, report_overlay_modification)
(evaporate_overlays): Use the new ITREE_FOREACH macro.

* src/buffer.h (buffer_overlay_iter_start1)
(buffer_overlay_iter_start, buffer_overlay_iter_next)
(buffer_overlay_iter_finish, buffer_overlay_iter_narrow):
Delete declarations.
src/buffer.c
src/buffer.h
src/itree.c
src/itree.h
src/textprop.c
src/xdisp.c