aboutsummaryrefslogtreecommitdiffstats
path: root/src/msdos.c
diff options
context:
space:
mode:
authorEli Zaretskii2011-04-24 15:48:30 +0300
committerEli Zaretskii2011-04-24 15:48:30 +0300
commit1b2de274591d07480256539c4be65299d1dde3e9 (patch)
treeaa92b53c0827f7467b2b64c675b682290c06b380 /src/msdos.c
parent762b15be8c7925c661e839fa41d46189513dfda6 (diff)
downloademacs-1b2de274591d07480256539c4be65299d1dde3e9.tar.gz
emacs-1b2de274591d07480256539c4be65299d1dde3e9.zip
Repair the MSDOS build following latest changes.
msdos/sedlibmk.inp (am_libgnu_a_OBJECTS): Edit out allocator.$(OBJEXT). Add editing for the new GNULIB_* and REPLACE_* variables. src/msdos.c (XMenuActivate, XMenuAddSelection): Adjust argument list to changes in oldXMenu/XMenu.h from 2011-04-16. <menu_help_message, prev_menu_help_message>: Constify. (IT_menu_make_room): menu->help_text is now `const char **'; adjust. src/msdos.h (XMenuActivate, XMenuAddSelection): Adjust prototypes to changes in oldXMenu/XMenu.h from 2011-04-16. (struct XMenu): Declare `help_text' `const char **'. src/xfaces.c <Qunspecified>: Make extern again. src/syntax.c: Include sys/types.h before including regex.h, as required by Posix.
Diffstat (limited to 'src/msdos.c')
-rw-r--r--src/msdos.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/msdos.c b/src/msdos.c
index 6bff56b3f82..3dc586e42f5 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -2812,7 +2812,7 @@ dos_keyread (void)
2812 left), but I don't think it's worth the effort. */ 2812 left), but I don't think it's worth the effort. */
2813 2813
2814/* These hold text of the current and the previous menu help messages. */ 2814/* These hold text of the current and the previous menu help messages. */
2815static char *menu_help_message, *prev_menu_help_message; 2815static const char *menu_help_message, *prev_menu_help_message;
2816/* Pane number and item number of the menu item which generated the 2816/* Pane number and item number of the menu item which generated the
2817 last menu help message. */ 2817 last menu help message. */
2818static int menu_help_paneno, menu_help_itemno; 2818static int menu_help_paneno, menu_help_itemno;
@@ -2839,7 +2839,7 @@ IT_menu_make_room (XMenu *menu)
2839 menu->text = (char **) xmalloc (count * sizeof (char *)); 2839 menu->text = (char **) xmalloc (count * sizeof (char *));
2840 menu->submenu = (XMenu **) xmalloc (count * sizeof (XMenu *)); 2840 menu->submenu = (XMenu **) xmalloc (count * sizeof (XMenu *));
2841 menu->panenumber = (int *) xmalloc (count * sizeof (int)); 2841 menu->panenumber = (int *) xmalloc (count * sizeof (int));
2842 menu->help_text = (char **) xmalloc (count * sizeof (char *)); 2842 menu->help_text = (const char **) xmalloc (count * sizeof (char *));
2843 } 2843 }
2844 else if (menu->allocated == menu->count) 2844 else if (menu->allocated == menu->count)
2845 { 2845 {
@@ -2851,7 +2851,7 @@ IT_menu_make_room (XMenu *menu)
2851 menu->panenumber 2851 menu->panenumber
2852 = (int *) xrealloc (menu->panenumber, count * sizeof (int)); 2852 = (int *) xrealloc (menu->panenumber, count * sizeof (int));
2853 menu->help_text 2853 menu->help_text
2854 = (char **) xrealloc (menu->help_text, count * sizeof (char *)); 2854 = (const char **) xrealloc (menu->help_text, count * sizeof (char *));
2855 } 2855 }
2856} 2856}
2857 2857
@@ -3033,7 +3033,7 @@ XMenuAddPane (Display *foo, XMenu *menu, const char *txt, int enable)
3033 3033
3034int 3034int
3035XMenuAddSelection (Display *bar, XMenu *menu, int pane, 3035XMenuAddSelection (Display *bar, XMenu *menu, int pane,
3036 int foo, char *txt, int enable, char *help_text) 3036 int foo, char *txt, int enable, char const *help_text)
3037{ 3037{
3038 int len; 3038 int len;
3039 char *p; 3039 char *p;
@@ -3086,7 +3086,7 @@ struct IT_menu_state
3086int 3086int
3087XMenuActivate (Display *foo, XMenu *menu, int *pane, int *selidx, 3087XMenuActivate (Display *foo, XMenu *menu, int *pane, int *selidx,
3088 int x0, int y0, unsigned ButtonMask, char **txt, 3088 int x0, int y0, unsigned ButtonMask, char **txt,
3089 void (*help_callback)(char *, int, int)) 3089 void (*help_callback)(char const *, int, int))
3090{ 3090{
3091 struct IT_menu_state *state; 3091 struct IT_menu_state *state;
3092 int statecount, x, y, i, b, screensize, leave, result, onepane; 3092 int statecount, x, y, i, b, screensize, leave, result, onepane;