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/xselect.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/xselect.c')
| -rw-r--r-- | src/xselect.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/xselect.c b/src/xselect.c index 1d5fe0b8ea2..5519eecf64c 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -200,9 +200,9 @@ symbol_to_x_atom (dpyinfo, display, sym) | |||
| 200 | #endif | 200 | #endif |
| 201 | if (!SYMBOLP (sym)) abort (); | 201 | if (!SYMBOLP (sym)) abort (); |
| 202 | 202 | ||
| 203 | TRACE1 (" XInternAtom %s", (char *) XSTRING (SYMBOL_NAME (sym))->data); | 203 | TRACE1 (" XInternAtom %s", (char *) SDATA (SYMBOL_NAME (sym))); |
| 204 | BLOCK_INPUT; | 204 | BLOCK_INPUT; |
| 205 | val = XInternAtom (display, (char *) XSTRING (SYMBOL_NAME (sym))->data, False); | 205 | val = XInternAtom (display, (char *) SDATA (SYMBOL_NAME (sym)), False); |
| 206 | UNBLOCK_INPUT; | 206 | UNBLOCK_INPUT; |
| 207 | return val; | 207 | return val; |
| 208 | } | 208 | } |
| @@ -1272,7 +1272,7 @@ x_get_foreign_selection (selection_symbol, target_type) | |||
| 1272 | if (NILP (XCAR (reading_selection_reply))) | 1272 | if (NILP (XCAR (reading_selection_reply))) |
| 1273 | error ("Timed out waiting for reply from selection owner"); | 1273 | error ("Timed out waiting for reply from selection owner"); |
| 1274 | if (EQ (XCAR (reading_selection_reply), Qlambda)) | 1274 | if (EQ (XCAR (reading_selection_reply), Qlambda)) |
| 1275 | error ("No `%s' selection", XSTRING (SYMBOL_NAME (selection_symbol))->data); | 1275 | error ("No `%s' selection", SDATA (SYMBOL_NAME (selection_symbol))); |
| 1276 | 1276 | ||
| 1277 | /* Otherwise, the selection is waiting for us on the requested property. */ | 1277 | /* Otherwise, the selection is waiting for us on the requested property. */ |
| 1278 | return | 1278 | return |
| @@ -1662,7 +1662,7 @@ selection_data_to_lisp_data (display, data, size, type, format) | |||
| 1662 | str = run_pre_post_conversion_on_str (str, &coding, 0); | 1662 | str = run_pre_post_conversion_on_str (str, &coding, 0); |
| 1663 | Vlast_coding_system_used = coding.symbol; | 1663 | Vlast_coding_system_used = coding.symbol; |
| 1664 | } | 1664 | } |
| 1665 | compose_chars_in_text (0, XSTRING (str)->size, str); | 1665 | compose_chars_in_text (0, SCHARS (str), str); |
| 1666 | return str; | 1666 | return str; |
| 1667 | } | 1667 | } |
| 1668 | /* Convert a single atom to a Lisp_Symbol. Convert a set of atoms to | 1668 | /* Convert a single atom to a Lisp_Symbol. Convert a set of atoms to |
| @@ -1778,7 +1778,7 @@ lisp_data_to_selection_data (display, obj, | |||
| 1778 | Lisp_Object unibyte_string; | 1778 | Lisp_Object unibyte_string; |
| 1779 | 1779 | ||
| 1780 | unibyte_string = string_make_unibyte (obj); | 1780 | unibyte_string = string_make_unibyte (obj); |
| 1781 | *data_ret = XSTRING (unibyte_string)->data; | 1781 | *data_ret = SDATA (unibyte_string); |
| 1782 | *nofree_ret = 1; | 1782 | *nofree_ret = 1; |
| 1783 | *size_ret = SBYTES (unibyte_string); | 1783 | *size_ret = SBYTES (unibyte_string); |
| 1784 | } | 1784 | } |
| @@ -1786,7 +1786,7 @@ lisp_data_to_selection_data (display, obj, | |||
| 1786 | { | 1786 | { |
| 1787 | *data_ret = x_encode_text (obj, Vnext_selection_coding_system, 1, | 1787 | *data_ret = x_encode_text (obj, Vnext_selection_coding_system, 1, |
| 1788 | (int *) size_ret, &stringp); | 1788 | (int *) size_ret, &stringp); |
| 1789 | *nofree_ret = (*data_ret == XSTRING (obj)->data); | 1789 | *nofree_ret = (*data_ret == SDATA (obj)); |
| 1790 | } | 1790 | } |
| 1791 | if (NILP (type)) | 1791 | if (NILP (type)) |
| 1792 | type = (stringp ? QSTRING : QCOMPOUND_TEXT); | 1792 | type = (stringp ? QSTRING : QCOMPOUND_TEXT); |
| @@ -2277,8 +2277,8 @@ DEFUN ("x-store-cut-buffer-internal", Fx_store_cut_buffer_internal, | |||
| 2277 | CHECK_STRING (string); | 2277 | CHECK_STRING (string); |
| 2278 | buffer_atom = symbol_to_x_atom (FRAME_X_DISPLAY_INFO (sf), | 2278 | buffer_atom = symbol_to_x_atom (FRAME_X_DISPLAY_INFO (sf), |
| 2279 | display, buffer); | 2279 | display, buffer); |
| 2280 | data = (unsigned char *) XSTRING (string)->data; | 2280 | data = (unsigned char *) SDATA (string); |
| 2281 | bytes = STRING_BYTES (XSTRING (string)); | 2281 | bytes = SBYTES (string); |
| 2282 | bytes_remaining = bytes; | 2282 | bytes_remaining = bytes; |
| 2283 | 2283 | ||
| 2284 | if (! FRAME_X_DISPLAY_INFO (sf)->cut_buffers_initialized) | 2284 | if (! FRAME_X_DISPLAY_INFO (sf)->cut_buffers_initialized) |