Mercurial > emacs
diff src/w32select.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 | 7e81df5e2e1a |
line wrap: on
line diff
--- a/src/w32select.c Sun Jul 14 23:54:05 2002 +0000 +++ b/src/w32select.c Mon Jul 15 00:00:41 2002 +0000 @@ -125,8 +125,8 @@ BLOCK_INPUT; - nbytes = STRING_BYTES (XSTRING (string)) + 1; - src = XSTRING (string)->data; + nbytes = SBYTES (string) + 1; + src = SDATA (string); dst = src; /* We need to know how many lines there are, since we need CRLF line @@ -141,7 +141,7 @@ { /* Since we are now handling multilingual text, we must consider encoding text for the clipboard. */ - int charset_info = find_charset_in_text (src, XSTRING (string)->size, + int charset_info = find_charset_in_text (src, SCHARS (string), nbytes, NULL, Qnil); if (charset_info == 0) @@ -202,8 +202,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; @@ -368,7 +368,7 @@ /* Convert CRLF line endings (the standard CF_TEXT clipboard format) to LF endings as used internally by Emacs. */ - dst = XSTRING (ret)->data; + dst = SDATA (ret); while (1) { unsigned char *next;
