summaryrefslogtreecommitdiff
path: root/src/editfns.c
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2003-07-09 14:51:57 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2003-07-09 14:51:57 +0000
commit88006f77c435184cbb0b2403720bcff9b8bd0e56 (patch)
treee39bd9b74370174ee0ab6a5a0b1dd859a545761b /src/editfns.c
parentb7253a3e4a4b89a4da02072759515732749d2c58 (diff)
downloademacs-88006f77c435184cbb0b2403720bcff9b8bd0e56.tar.gz
(overlays_around): Use new type for overlays_(before|after).
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/editfns.c b/src/editfns.c
index f3dc714e3cd..97a939ce43b 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -338,15 +338,14 @@ overlays_around (pos, vec, len)
Lisp_Object *vec;
int len;
{
- Lisp_Object tail, overlay, start, end;
+ Lisp_Object overlay, start, end;
+ struct Lisp_Overlay *tail;
int startpos, endpos;
int idx = 0;
- for (tail = current_buffer->overlays_before;
- GC_CONSP (tail);
- tail = XCDR (tail))
+ for (tail = current_buffer->overlays_before; tail; tail = tail->next)
{
- overlay = XCAR (tail);
+ XSETMISC (overlay, tail);
end = OVERLAY_END (overlay);
endpos = OVERLAY_POSITION (end);
@@ -363,11 +362,9 @@ overlays_around (pos, vec, len)
}
}
- for (tail = current_buffer->overlays_after;
- GC_CONSP (tail);
- tail = XCDR (tail))
+ for (tail = current_buffer->overlays_after; tail; tail = tail->next)
{
- overlay = XCAR (tail);
+ XSETMISC (overlay, tail);
start = OVERLAY_START (overlay);
startpos = OVERLAY_POSITION (start);