aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu.c
diff options
context:
space:
mode:
authorPaul Eggert2011-01-22 18:56:06 -0800
committerPaul Eggert2011-01-22 18:56:06 -0800
commit51b59d794fe1d4a82fcd842b478657cc93f91595 (patch)
tree25e57573403a13f3fe70934b40bf38c0190fd5ed /src/menu.c
parent9e928ac989c824c376b1ab576a6da69cd86b12c6 (diff)
downloademacs-51b59d794fe1d4a82fcd842b478657cc93f91595.tar.gz
emacs-51b59d794fe1d4a82fcd842b478657cc93f91595.zip
Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/menu.c b/src/menu.c
index 24df935eef6..53cd721a1e8 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -695,7 +695,7 @@ digest_single_submenu (int start, int end, int top_level_items)
695#endif 695#endif
696 696
697 pane_string = (NILP (pane_name) 697 pane_string = (NILP (pane_name)
698 ? "" : (char *) SDATA (pane_name)); 698 ? "" : SSDATA (pane_name));
699 /* If there is just one top-level pane, put all its items directly 699 /* If there is just one top-level pane, put all its items directly
700 under the top-level menu. */ 700 under the top-level menu. */
701 if (menu_items_n_panes == 1) 701 if (menu_items_n_panes == 1)
@@ -847,7 +847,7 @@ update_submenu_strings (widget_value *first_wv)
847 { 847 {
848 if (STRINGP (wv->lname)) 848 if (STRINGP (wv->lname))
849 { 849 {
850 wv->name = (char *) SDATA (wv->lname); 850 wv->name = SSDATA (wv->lname);
851 851
852 /* Ignore the @ that means "separate pane". 852 /* Ignore the @ that means "separate pane".
853 This is a kludge, but this isn't worth more time. */ 853 This is a kludge, but this isn't worth more time. */
@@ -860,7 +860,7 @@ update_submenu_strings (widget_value *first_wv)
860 } 860 }
861 861
862 if (STRINGP (wv->lkey)) 862 if (STRINGP (wv->lkey))
863 wv->key = (char *) SDATA (wv->lkey); 863 wv->key = SSDATA (wv->lkey);
864 864
865 if (wv->contents) 865 if (wv->contents)
866 update_submenu_strings (wv->contents); 866 update_submenu_strings (wv->contents);
@@ -1353,4 +1353,3 @@ syms_of_menu (void)
1353 1353
1354 defsubr (&Sx_popup_menu); 1354 defsubr (&Sx_popup_menu);
1355} 1355}
1356