Mercurial > emacs
diff src/w16select.c @ 46370:40db0673e6f0
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.
| author | Ken Raeburn <raeburn@raeburn.org> |
|---|---|
| date | Mon, 15 Jul 2002 00:00:41 +0000 |
| parents | 37913830a881 |
| children | 06197dc11581 |
line wrap: on
line diff
--- a/src/w16select.c Sun Jul 14 23:54:05 2002 +0000 +++ b/src/w16select.c Mon Jul 15 00:00:41 2002 +0000 @@ -501,12 +501,12 @@ BLOCK_INPUT; - nbytes = STRING_BYTES (XSTRING (string)); - src = XSTRING (string)->data; + nbytes = SBYTES (string); + src = SDATA (string); /* Since we are now handling multilingual text, we must consider encoding text for the clipboard. */ - charset_info = find_charset_in_text (src, XSTRING (string)->size, nbytes, + charset_info = find_charset_in_text (src, SCHARS (string), nbytes, NULL, Qnil); if (charset_info == 0) @@ -531,8 +531,8 @@ && !NILP (Ffboundp (coding.pre_write_conversion))) { string = run_pre_post_conversion_on_str (string, &coding, 1); - src = XSTRING (string)->data; - nbytes = STRING_BYTES (XSTRING (string)); + src = SDATA (string); + nbytes = SBYTES (string); } coding.src_multibyte = 1; coding.dst_multibyte = 0;
