Mercurial > emacs
comparison src/buffer.c @ 11418:f892e7cb7f51
(Foverlays_at, Fnext_overlay_change): Don't use NULL.
(Fprevious_overlay_change): Don't use NULL.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Thu, 13 Apr 1995 16:54:41 +0000 |
| parents | 60d40ca8c16b |
| children | 24ede15e0aaa |
comparison
equal
deleted
inserted
replaced
| 11417:a5b136d16356 | 11418:f892e7cb7f51 |
|---|---|
| 2311 len = 10; | 2311 len = 10; |
| 2312 overlay_vec = (Lisp_Object *) xmalloc (len * sizeof (Lisp_Object)); | 2312 overlay_vec = (Lisp_Object *) xmalloc (len * sizeof (Lisp_Object)); |
| 2313 | 2313 |
| 2314 /* Put all the overlays we want in a vector in overlay_vec. | 2314 /* Put all the overlays we want in a vector in overlay_vec. |
| 2315 Store the length in len. */ | 2315 Store the length in len. */ |
| 2316 noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, NULL, NULL); | 2316 noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, |
| 2317 (int *) 0, (int *) 0); | |
| 2317 | 2318 |
| 2318 /* Make a list of them all. */ | 2319 /* Make a list of them all. */ |
| 2319 result = Flist (noverlays, overlay_vec); | 2320 result = Flist (noverlays, overlay_vec); |
| 2320 | 2321 |
| 2321 xfree (overlay_vec); | 2322 xfree (overlay_vec); |
| 2341 overlay_vec = (Lisp_Object *) xmalloc (len * sizeof (Lisp_Object)); | 2342 overlay_vec = (Lisp_Object *) xmalloc (len * sizeof (Lisp_Object)); |
| 2342 | 2343 |
| 2343 /* Put all the overlays we want in a vector in overlay_vec. | 2344 /* Put all the overlays we want in a vector in overlay_vec. |
| 2344 Store the length in len. | 2345 Store the length in len. |
| 2345 endpos gets the position where the next overlay starts. */ | 2346 endpos gets the position where the next overlay starts. */ |
| 2346 noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, &endpos, NULL); | 2347 noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, |
| 2348 &endpos, (int *) 0); | |
| 2347 | 2349 |
| 2348 /* If any of these overlays ends before endpos, | 2350 /* If any of these overlays ends before endpos, |
| 2349 use its ending point instead. */ | 2351 use its ending point instead. */ |
| 2350 for (i = 0; i < noverlays; i++) | 2352 for (i = 0; i < noverlays; i++) |
| 2351 { | 2353 { |
| 2381 overlay_vec = (Lisp_Object *) xmalloc (len * sizeof (Lisp_Object)); | 2383 overlay_vec = (Lisp_Object *) xmalloc (len * sizeof (Lisp_Object)); |
| 2382 | 2384 |
| 2383 /* Put all the overlays we want in a vector in overlay_vec. | 2385 /* Put all the overlays we want in a vector in overlay_vec. |
| 2384 Store the length in len. | 2386 Store the length in len. |
| 2385 prevpos gets the position of an overlay end. */ | 2387 prevpos gets the position of an overlay end. */ |
| 2386 noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, NULL, &prevpos); | 2388 noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len, |
| 2389 (int *) 0, &prevpos); | |
| 2387 | 2390 |
| 2388 /* If any of these overlays starts before endpos, | 2391 /* If any of these overlays starts before endpos, |
| 2389 maybe use its starting point instead. */ | 2392 maybe use its starting point instead. */ |
| 2390 for (i = 0; i < noverlays; i++) | 2393 for (i = 0; i < noverlays; i++) |
| 2391 { | 2394 { |
