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/w32term.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/w32term.c')
| -rw-r--r-- | src/w32term.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/w32term.c b/src/w32term.c index f8c3a7bd69b..c9628277a47 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -6508,9 +6508,9 @@ note_mode_line_highlight (w, x, mode_line_p) | |||
| 6508 | 6508 | ||
| 6509 | if (glyph < end | 6509 | if (glyph < end |
| 6510 | && STRINGP (glyph->object) | 6510 | && STRINGP (glyph->object) |
| 6511 | && XSTRING (glyph->object)->intervals | 6511 | && STRING_INTERVALS (glyph->object) |
| 6512 | && glyph->charpos >= 0 | 6512 | && glyph->charpos >= 0 |
| 6513 | && glyph->charpos < XSTRING (glyph->object)->size) | 6513 | && glyph->charpos < SCHARS (glyph->object)) |
| 6514 | { | 6514 | { |
| 6515 | /* If we're on a string with `help-echo' text property, | 6515 | /* If we're on a string with `help-echo' text property, |
| 6516 | arrange for the help to be displayed. This is done by | 6516 | arrange for the help to be displayed. This is done by |
| @@ -6829,7 +6829,7 @@ note_mouse_highlight (f, x, y) | |||
| 6829 | if (NILP (b)) | 6829 | if (NILP (b)) |
| 6830 | b = make_number (0); | 6830 | b = make_number (0); |
| 6831 | if (NILP (e)) | 6831 | if (NILP (e)) |
| 6832 | e = make_number (XSTRING (object)->size - 1); | 6832 | e = make_number (SCHARS (object) - 1); |
| 6833 | fast_find_string_pos (w, XINT (b), object, | 6833 | fast_find_string_pos (w, XINT (b), object, |
| 6834 | &dpyinfo->mouse_face_beg_col, | 6834 | &dpyinfo->mouse_face_beg_col, |
| 6835 | &dpyinfo->mouse_face_beg_row, | 6835 | &dpyinfo->mouse_face_beg_row, |
| @@ -6927,7 +6927,7 @@ note_mouse_highlight (f, x, y) | |||
| 6927 | /* Try text properties. */ | 6927 | /* Try text properties. */ |
| 6928 | if (STRINGP (object) | 6928 | if (STRINGP (object) |
| 6929 | && charpos >= 0 | 6929 | && charpos >= 0 |
| 6930 | && charpos < XSTRING (object)->size) | 6930 | && charpos < SCHARS (object)) |
| 6931 | { | 6931 | { |
| 6932 | help = Fget_text_property (make_number (charpos), | 6932 | help = Fget_text_property (make_number (charpos), |
| 6933 | Qhelp_echo, object); | 6933 | Qhelp_echo, object); |
| @@ -8619,7 +8619,7 @@ w32_read_socket (sd, bufp, numchars, expected) | |||
| 8619 | /* We may get paint messages even though the client | 8619 | /* We may get paint messages even though the client |
| 8620 | area is clipped - these are not expose events. */ | 8620 | area is clipped - these are not expose events. */ |
| 8621 | DebPrint (("clipped frame %p (%s) got WM_PAINT - ignored\n", f, | 8621 | DebPrint (("clipped frame %p (%s) got WM_PAINT - ignored\n", f, |
| 8622 | XSTRING (f->name)->data)); | 8622 | SDATA (f->name))); |
| 8623 | } | 8623 | } |
| 8624 | else if (f->async_visible != 1) | 8624 | else if (f->async_visible != 1) |
| 8625 | { | 8625 | { |
| @@ -8628,7 +8628,7 @@ w32_read_socket (sd, bufp, numchars, expected) | |||
| 8628 | f->async_iconified = 0; | 8628 | f->async_iconified = 0; |
| 8629 | SET_FRAME_GARBAGED (f); | 8629 | SET_FRAME_GARBAGED (f); |
| 8630 | DebPrint (("frame %p (%s) reexposed by WM_PAINT\n", f, | 8630 | DebPrint (("frame %p (%s) reexposed by WM_PAINT\n", f, |
| 8631 | XSTRING (f->name)->data)); | 8631 | SDATA (f->name))); |
| 8632 | 8632 | ||
| 8633 | /* WM_PAINT serves as MapNotify as well, so report | 8633 | /* WM_PAINT serves as MapNotify as well, so report |
| 8634 | visibility changes properly. */ | 8634 | visibility changes properly. */ |
| @@ -9308,7 +9308,7 @@ w32_read_socket (sd, bufp, numchars, expected) | |||
| 9308 | if (!FRAME_OBSCURED_P (f)) | 9308 | if (!FRAME_OBSCURED_P (f)) |
| 9309 | { | 9309 | { |
| 9310 | DebPrint (("frame %p (%s) obscured\n", f, | 9310 | DebPrint (("frame %p (%s) obscured\n", f, |
| 9311 | XSTRING (f->name)->data)); | 9311 | SDATA (f->name))); |
| 9312 | } | 9312 | } |
| 9313 | } | 9313 | } |
| 9314 | else | 9314 | else |
| @@ -9320,7 +9320,7 @@ w32_read_socket (sd, bufp, numchars, expected) | |||
| 9320 | { | 9320 | { |
| 9321 | SET_FRAME_GARBAGED (f); | 9321 | SET_FRAME_GARBAGED (f); |
| 9322 | DebPrint (("obscured frame %p (%s) found to be visible\n", f, | 9322 | DebPrint (("obscured frame %p (%s) found to be visible\n", f, |
| 9323 | XSTRING (f->name)->data)); | 9323 | SDATA (f->name))); |
| 9324 | 9324 | ||
| 9325 | /* Force a redisplay sooner or later. */ | 9325 | /* Force a redisplay sooner or later. */ |
| 9326 | record_asynch_buffer_change (); | 9326 | record_asynch_buffer_change (); |
| @@ -9991,7 +9991,7 @@ x_bitmap_icon (f, icon) | |||
| 9991 | if (NILP (icon)) | 9991 | if (NILP (icon)) |
| 9992 | hicon = LoadIcon (hinst, EMACS_CLASS); | 9992 | hicon = LoadIcon (hinst, EMACS_CLASS); |
| 9993 | else if (STRINGP (icon)) | 9993 | else if (STRINGP (icon)) |
| 9994 | hicon = LoadImage (NULL, (LPCTSTR) XSTRING (icon)->data, IMAGE_ICON, 0, 0, | 9994 | hicon = LoadImage (NULL, (LPCTSTR) SDATA (icon), IMAGE_ICON, 0, 0, |
| 9995 | LR_DEFAULTSIZE | LR_LOADFROMFILE); | 9995 | LR_DEFAULTSIZE | LR_LOADFROMFILE); |
| 9996 | else if (SYMBOLP (icon)) | 9996 | else if (SYMBOLP (icon)) |
| 9997 | { | 9997 | { |
| @@ -10121,7 +10121,7 @@ x_new_fontset (f, fontsetname) | |||
| 10121 | to do. */ | 10121 | to do. */ |
| 10122 | return fontset_name (fontset); | 10122 | return fontset_name (fontset); |
| 10123 | 10123 | ||
| 10124 | result = x_new_font (f, (XSTRING (fontset_ascii (fontset))->data)); | 10124 | result = x_new_font (f, (SDATA (fontset_ascii (fontset)))); |
| 10125 | 10125 | ||
| 10126 | if (!STRINGP (result)) | 10126 | if (!STRINGP (result)) |
| 10127 | /* Can't load ASCII font. */ | 10127 | /* Can't load ASCII font. */ |
| @@ -11047,11 +11047,11 @@ w32_initialize_display_info (display_name) | |||
| 11047 | dpyinfo->name_list_element = XCAR (w32_display_name_list); | 11047 | dpyinfo->name_list_element = XCAR (w32_display_name_list); |
| 11048 | 11048 | ||
| 11049 | dpyinfo->w32_id_name | 11049 | dpyinfo->w32_id_name |
| 11050 | = (char *) xmalloc (XSTRING (Vinvocation_name)->size | 11050 | = (char *) xmalloc (SCHARS (Vinvocation_name) |
| 11051 | + XSTRING (Vsystem_name)->size | 11051 | + SCHARS (Vsystem_name) |
| 11052 | + 2); | 11052 | + 2); |
| 11053 | sprintf (dpyinfo->w32_id_name, "%s@%s", | 11053 | sprintf (dpyinfo->w32_id_name, "%s@%s", |
| 11054 | XSTRING (Vinvocation_name)->data, XSTRING (Vsystem_name)->data); | 11054 | SDATA (Vinvocation_name), SDATA (Vsystem_name)); |
| 11055 | 11055 | ||
| 11056 | /* Default Console mode values - overridden when running in GUI mode | 11056 | /* Default Console mode values - overridden when running in GUI mode |
| 11057 | with values obtained from system metrics. */ | 11057 | with values obtained from system metrics. */ |