aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorRichard M. Stallman1998-03-21 07:06:14 +0000
committerRichard M. Stallman1998-03-21 07:06:14 +0000
commitfc932ac6c7b54ac6f79222a2548707a97d3a44f4 (patch)
tree88f9f2ff546b9d84c11515967b4bb5cc3c16d080 /src/buffer.c
parente7654b4a743e7c54c08629ee336e10a5f1089da6 (diff)
downloademacs-fc932ac6c7b54ac6f79222a2548707a97d3a44f4.tar.gz
emacs-fc932ac6c7b54ac6f79222a2548707a97d3a44f4.zip
Use STRING_BYTES and SET_STRING_BYTES.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 8663ff30589..69010af7cd0 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2364,9 +2364,9 @@ record_overlay_string (ssl, str, str2, pri, size)
2364 nbytes = XSTRING (str)->size; 2364 nbytes = XSTRING (str)->size;
2365 else if (! STRING_MULTIBYTE (str)) 2365 else if (! STRING_MULTIBYTE (str))
2366 nbytes = count_size_as_multibyte (XSTRING (str)->data, 2366 nbytes = count_size_as_multibyte (XSTRING (str)->data,
2367 XSTRING (str)->size_byte); 2367 STRING_BYTES (XSTRING (str)));
2368 else 2368 else
2369 nbytes = XSTRING (str)->size_byte; 2369 nbytes = STRING_BYTES (XSTRING (str));
2370 2370
2371 ssl->bytes += nbytes; 2371 ssl->bytes += nbytes;
2372 2372
@@ -2376,9 +2376,9 @@ record_overlay_string (ssl, str, str2, pri, size)
2376 nbytes = XSTRING (str2)->size; 2376 nbytes = XSTRING (str2)->size;
2377 else if (! STRING_MULTIBYTE (str2)) 2377 else if (! STRING_MULTIBYTE (str2))
2378 nbytes = count_size_as_multibyte (XSTRING (str2)->data, 2378 nbytes = count_size_as_multibyte (XSTRING (str2)->data,
2379 XSTRING (str2)->size_byte); 2379 STRING_BYTES (XSTRING (str2)));
2380 else 2380 else
2381 nbytes = XSTRING (str2)->size_byte; 2381 nbytes = STRING_BYTES (XSTRING (str2));
2382 2382
2383 ssl->bytes += nbytes; 2383 ssl->bytes += nbytes;
2384 } 2384 }
@@ -2490,7 +2490,8 @@ overlay_strings (pos, w, pstr)
2490 { 2490 {
2491 int nbytes; 2491 int nbytes;
2492 tem = overlay_tails.buf[i].string; 2492 tem = overlay_tails.buf[i].string;
2493 nbytes = copy_text (XSTRING (tem)->data, p, XSTRING (tem)->size_byte, 2493 nbytes = copy_text (XSTRING (tem)->data, p,
2494 STRING_BYTES (XSTRING (tem)),
2494 STRING_MULTIBYTE (tem), multibyte); 2495 STRING_MULTIBYTE (tem), multibyte);
2495 p += nbytes; 2496 p += nbytes;
2496 } 2497 }
@@ -2498,14 +2499,15 @@ overlay_strings (pos, w, pstr)
2498 { 2499 {
2499 int nbytes; 2500 int nbytes;
2500 tem = overlay_heads.buf[i].string; 2501 tem = overlay_heads.buf[i].string;
2501 nbytes = copy_text (XSTRING (tem)->data, p, XSTRING (tem)->size_byte, 2502 nbytes = copy_text (XSTRING (tem)->data, p,
2503 STRING_BYTES (XSTRING (tem)),
2502 STRING_MULTIBYTE (tem), multibyte); 2504 STRING_MULTIBYTE (tem), multibyte);
2503 p += nbytes; 2505 p += nbytes;
2504 tem = overlay_heads.buf[i].string2; 2506 tem = overlay_heads.buf[i].string2;
2505 if (STRINGP (tem)) 2507 if (STRINGP (tem))
2506 { 2508 {
2507 nbytes = copy_text (XSTRING (tem)->data, p, 2509 nbytes = copy_text (XSTRING (tem)->data, p,
2508 XSTRING (tem)->size_byte, 2510 STRING_BYTES (XSTRING (tem)),
2509 STRING_MULTIBYTE (tem), multibyte); 2511 STRING_MULTIBYTE (tem), multibyte);
2510 p += nbytes; 2512 p += nbytes;
2511 } 2513 }