aboutsummaryrefslogtreecommitdiffstats
path: root/src/w16select.c
diff options
context:
space:
mode:
authorKen Raeburn2002-07-15 00:01:34 +0000
committerKen Raeburn2002-07-15 00:01:34 +0000
commitd5db40779d7505244d37476b4f046641f07eea2b (patch)
tree5c8bf4dad41639287e722cb7cbdc0709e47a9e53 /src/w16select.c
parent491c2516d32fa8b9ba9422ec142c8925dd82af00 (diff)
downloademacs-d5db40779d7505244d37476b4f046641f07eea2b.tar.gz
emacs-d5db40779d7505244d37476b4f046641f07eea2b.zip
Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references left unchanged for now.
Diffstat (limited to 'src/w16select.c')
-rw-r--r--src/w16select.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/w16select.c b/src/w16select.c
index 194efdf590d..bdbd38de575 100644
--- a/src/w16select.c
+++ b/src/w16select.c
@@ -501,12 +501,12 @@ DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_dat
501 501
502 BLOCK_INPUT; 502 BLOCK_INPUT;
503 503
504 nbytes = STRING_BYTES (XSTRING (string)); 504 nbytes = SBYTES (string);
505 src = XSTRING (string)->data; 505 src = SDATA (string);
506 506
507 /* Since we are now handling multilingual text, we must consider 507 /* Since we are now handling multilingual text, we must consider
508 encoding text for the clipboard. */ 508 encoding text for the clipboard. */
509 charset_info = find_charset_in_text (src, XSTRING (string)->size, nbytes, 509 charset_info = find_charset_in_text (src, SCHARS (string), nbytes,
510 NULL, Qnil); 510 NULL, Qnil);
511 511
512 if (charset_info == 0) 512 if (charset_info == 0)
@@ -531,8 +531,8 @@ DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_dat
531 && !NILP (Ffboundp (coding.pre_write_conversion))) 531 && !NILP (Ffboundp (coding.pre_write_conversion)))
532 { 532 {
533 string = run_pre_post_conversion_on_str (string, &coding, 1); 533 string = run_pre_post_conversion_on_str (string, &coding, 1);
534 src = XSTRING (string)->data; 534 src = SDATA (string);
535 nbytes = STRING_BYTES (XSTRING (string)); 535 nbytes = SBYTES (string);
536 } 536 }
537 coding.src_multibyte = 1; 537 coding.src_multibyte = 1;
538 coding.dst_multibyte = 0; 538 coding.dst_multibyte = 0;