aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorMatt Armstrong2022-11-08 15:00:18 -0800
committerStefan Kangas2022-11-30 18:08:35 +0100
commit656a54b823599bc50e849e96c790556e9c42ab9b (patch)
treee2b93815ba5c6ff77ac3f7d30235954259129286 /src/alloc.c
parent32615c9bc124970aade150e81c2ed4a5c0492ef7 (diff)
downloademacs-656a54b823599bc50e849e96c790556e9c42ab9b.tar.gz
emacs-656a54b823599bc50e849e96c790556e9c42ab9b.zip
Add itree_empty_p for clarity and reduced coupling
* src/itree.h (itree_empty_p): New predicate. * src/buffer.h (buffer_has_overlays): * src/pdumper.c (dump_buffer): * src/alloc.c (mark_buffer): Call it. (Bug#59137)
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 980085d3292..ff8b4b40aaa 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -6553,7 +6553,7 @@ mark_buffer (struct buffer *buffer)
6553 if (!BUFFER_LIVE_P (buffer)) 6553 if (!BUFFER_LIVE_P (buffer))
6554 mark_object (BVAR (buffer, undo_list)); 6554 mark_object (BVAR (buffer, undo_list));
6555 6555
6556 if (buffer->overlays) 6556 if (!itree_empty_p (buffer->overlays))
6557 mark_overlays (buffer->overlays->root); 6557 mark_overlays (buffer->overlays->root);
6558 6558
6559 /* If this is an indirect buffer, mark its base buffer. */ 6559 /* If this is an indirect buffer, mark its base buffer. */