Mercurial > emacs
comparison src/buffer.c @ 18603:525fb9a7cc96
(overlay_strings): Finish up previous change.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Fri, 04 Jul 1997 18:36:58 +0000 |
| parents | e0d1b341124c |
| children | 614b916ff5bf |
comparison
equal
deleted
inserted
replaced
| 18602:9b34ca7eb8ef | 18603:525fb9a7cc96 |
|---|---|
| 2254 cmp_for_strings); | 2254 cmp_for_strings); |
| 2255 if (overlay_heads.bytes || overlay_tails.bytes) | 2255 if (overlay_heads.bytes || overlay_tails.bytes) |
| 2256 { | 2256 { |
| 2257 Lisp_Object tem; | 2257 Lisp_Object tem; |
| 2258 int i; | 2258 int i; |
| 2259 char *p; | 2259 unsigned char *p; |
| 2260 int total = overlay_heads.bytes + overlay_tails.bytes; | 2260 int total = overlay_heads.bytes + overlay_tails.bytes; |
| 2261 | 2261 |
| 2262 if (total > overlay_str_len) | 2262 if (total > overlay_str_len) |
| 2263 overlay_str_buf = (char *)xrealloc (overlay_str_buf, | 2263 { |
| 2264 overlay_str_len = total); | 2264 overlay_str_len = total; |
| 2265 overlay_str_buf = (unsigned char *)xrealloc (overlay_str_buf, | |
| 2266 total); | |
| 2267 } | |
| 2265 p = overlay_str_buf; | 2268 p = overlay_str_buf; |
| 2266 for (i = overlay_tails.used; --i >= 0;) | 2269 for (i = overlay_tails.used; --i >= 0;) |
| 2267 { | 2270 { |
| 2268 tem = overlay_tails.buf[i].string; | 2271 tem = overlay_tails.buf[i].string; |
| 2269 bcopy (XSTRING (tem)->data, p, XSTRING (tem)->size); | 2272 bcopy (XSTRING (tem)->data, p, XSTRING (tem)->size); |
