Mercurial > emacs
diff src/w32fns.c @ 112434:9de5a68b57e1
Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sat, 22 Jan 2011 18:56:06 -0800 |
parents | 4cddf15c8d9a |
children |
line wrap: on
line diff
--- a/src/w32fns.c Sat Jan 22 17:09:09 2011 -0800 +++ b/src/w32fns.c Sat Jan 22 18:56:06 2011 -0800 @@ -1507,11 +1507,11 @@ BLOCK_INPUT; result = x_text_icon (f, - (char *) SDATA ((!NILP (f->icon_name) - ? f->icon_name - : !NILP (f->title) - ? f->title - : f->name))); + SSDATA ((!NILP (f->icon_name) + ? f->icon_name + : !NILP (f->title) + ? f->title + : f->name))); if (result) { @@ -3877,7 +3877,7 @@ Elsewhere we specify the window name for the window manager. */ { - char *str = (char *) SDATA (Vx_resource_name); + char *str = SSDATA (Vx_resource_name); f->namebuf = (char *) xmalloc (strlen (str) + 1); strcpy (f->namebuf, str); } @@ -3943,9 +3943,9 @@ ? IconicState : NormalState)); - x_text_icon (f, (char *) SDATA ((!NILP (f->icon_name) - ? f->icon_name - : f->name))); + x_text_icon (f, SSDATA ((!NILP (f->icon_name) + ? f->icon_name + : f->name))); #endif UNBLOCK_INPUT; @@ -4723,7 +4723,7 @@ validate_x_resource_name (); dpyinfo = w32_term_init (name, (unsigned char *)0, - (char *) SDATA (Vx_resource_name)); + SSDATA (Vx_resource_name)); if (dpyinfo == 0) error ("Cannot connect to server %s", SDATA (name)); @@ -4786,7 +4786,7 @@ add_system_logical_colors_to_map (&Vw32_color_map); if (! NILP (xrm_string)) - xrm_option = (unsigned char *) SDATA (xrm_string); + xrm_option = SDATA (xrm_string); else xrm_option = (unsigned char *) 0; @@ -4807,7 +4807,7 @@ /* This is what opens the connection and sets x_current_display. This also initializes many symbols, such as those used for input. */ dpyinfo = w32_term_init (display, xrm_option, - (char *) SDATA (Vx_resource_name)); + SSDATA (Vx_resource_name)); if (dpyinfo == 0) { @@ -6188,7 +6188,7 @@ code_convert_string_norecord (make_unibyte_string (errstr, strlen (errstr)), Vlocale_coding_system, 0); - errstr = (char *)SDATA (decoded); + errstr = SSDATA (decoded); } error ("ShellExecute failed: %s", errstr); } @@ -7203,4 +7203,3 @@ { return GetLastError (); } -