diff options
| author | Ken Raeburn | 2002-07-15 00:01:34 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2002-07-15 00:01:34 +0000 |
| commit | d5db40779d7505244d37476b4f046641f07eea2b (patch) | |
| tree | 5c8bf4dad41639287e722cb7cbdc0709e47a9e53 /src/w32select.c | |
| parent | 491c2516d32fa8b9ba9422ec142c8925dd82af00 (diff) | |
| download | emacs-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/w32select.c')
| -rw-r--r-- | src/w32select.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/w32select.c b/src/w32select.c index ef0910964e8..1cb5838c6fc 100644 --- a/src/w32select.c +++ b/src/w32select.c | |||
| @@ -125,8 +125,8 @@ DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data, | |||
| 125 | 125 | ||
| 126 | BLOCK_INPUT; | 126 | BLOCK_INPUT; |
| 127 | 127 | ||
| 128 | nbytes = STRING_BYTES (XSTRING (string)) + 1; | 128 | nbytes = SBYTES (string) + 1; |
| 129 | src = XSTRING (string)->data; | 129 | src = SDATA (string); |
| 130 | dst = src; | 130 | dst = src; |
| 131 | 131 | ||
| 132 | /* We need to know how many lines there are, since we need CRLF line | 132 | /* We need to know how many lines there are, since we need CRLF line |
| @@ -141,7 +141,7 @@ DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data, | |||
| 141 | { | 141 | { |
| 142 | /* Since we are now handling multilingual text, we must consider | 142 | /* Since we are now handling multilingual text, we must consider |
| 143 | encoding text for the clipboard. */ | 143 | encoding text for the clipboard. */ |
| 144 | int charset_info = find_charset_in_text (src, XSTRING (string)->size, | 144 | int charset_info = find_charset_in_text (src, SCHARS (string), |
| 145 | nbytes, NULL, Qnil); | 145 | nbytes, NULL, Qnil); |
| 146 | 146 | ||
| 147 | if (charset_info == 0) | 147 | if (charset_info == 0) |
| @@ -202,8 +202,8 @@ DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data, | |||
| 202 | && !NILP (Ffboundp (coding.pre_write_conversion))) | 202 | && !NILP (Ffboundp (coding.pre_write_conversion))) |
| 203 | { | 203 | { |
| 204 | string = run_pre_post_conversion_on_str (string, &coding, 1); | 204 | string = run_pre_post_conversion_on_str (string, &coding, 1); |
| 205 | src = XSTRING (string)->data; | 205 | src = SDATA (string); |
| 206 | nbytes = STRING_BYTES (XSTRING (string)); | 206 | nbytes = SBYTES (string); |
| 207 | } | 207 | } |
| 208 | coding.src_multibyte = 1; | 208 | coding.src_multibyte = 1; |
| 209 | coding.dst_multibyte = 0; | 209 | coding.dst_multibyte = 0; |
| @@ -368,7 +368,7 @@ DEFUN ("w32-get-clipboard-data", Fw32_get_clipboard_data, | |||
| 368 | /* Convert CRLF line endings (the standard CF_TEXT clipboard | 368 | /* Convert CRLF line endings (the standard CF_TEXT clipboard |
| 369 | format) to LF endings as used internally by Emacs. */ | 369 | format) to LF endings as used internally by Emacs. */ |
| 370 | 370 | ||
| 371 | dst = XSTRING (ret)->data; | 371 | dst = SDATA (ret); |
| 372 | while (1) | 372 | while (1) |
| 373 | { | 373 | { |
| 374 | unsigned char *next; | 374 | unsigned char *next; |