1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-12 09:28:24 +00:00

* xmenu.c: conform to C89 const rules

(xmenu_show, xdialog_show): Declare local var as char *, not
const char *, to stay compatible with C89 const rules.
This commit is contained in:
Paul Eggert 2011-02-05 01:49:52 -08:00
parent 9bcaafce53
commit cc618f4e69
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2011-02-05 Paul Eggert <eggert@cs.ucla.edu>
* xmenu.c: conform to C89 const rules
(xmenu_show, xdialog_show): Declare local var as char *, not
const char *, to stay compatible with C89 const rules.
* xdisp.c: conform to C89 pointer rules
(store_mode_line_noprop, display_string, reseat_to_string):
(c_string_pos, number_of_chars, message_dolog):

View File

@ -1668,7 +1668,7 @@ xmenu_show (FRAME_PTR f, int x, int y, int for_click, int keymaps,
{
/* Create a new pane. */
Lisp_Object pane_name, prefix;
const char *pane_string;
char *pane_string;
pane_name = AREF (menu_items, i + MENU_ITEMS_PANE_NAME);
prefix = AREF (menu_items, i + MENU_ITEMS_PANE_PREFIX);
@ -2016,7 +2016,7 @@ xdialog_show (FRAME_PTR f,
representing the text label and buttons. */
{
Lisp_Object pane_name, prefix;
const char *pane_string;
char *pane_string;
pane_name = XVECTOR (menu_items)->contents[MENU_ITEMS_PANE_NAME];
prefix = XVECTOR (menu_items)->contents[MENU_ITEMS_PANE_PREFIX];
pane_string = (NILP (pane_name)