aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/ChangeLog15
-rw-r--r--src/msdos.c10
-rw-r--r--src/msdos.h8
-rw-r--r--src/syntax.c2
-rw-r--r--src/xfaces.c2
5 files changed, 27 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 478a5aa2512..7efd8dad6cc 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,20 @@
12011-04-24 Eli Zaretskii <eliz@gnu.org> 12011-04-24 Eli Zaretskii <eliz@gnu.org>
2 2
3 * msdos.c (XMenuActivate, XMenuAddSelection): Adjust argument list
4 to changes in oldXMenu/XMenu.h from 2011-04-16.
5 <menu_help_message, prev_menu_help_message>: Constify.
6 (IT_menu_make_room): menu->help_text is now `const char **';
7 adjust.
8
9 * msdos.h (XMenuActivate, XMenuAddSelection): Adjust prototypes
10 to changes in oldXMenu/XMenu.h from 2011-04-16.
11 (struct XMenu): Declare `help_text' `const char **'.
12
13 * xfaces.c <Qunspecified>: Make extern again.
14
15 * syntax.c: Include sys/types.h before including regex.h, as
16 required by Posix.
17
3 * doc.c (get_doc_string): Improve the format passed to `error'. 18 * doc.c (get_doc_string): Improve the format passed to `error'.
4 19
5 * doprnt.c (doprnt): Improve commentary. 20 * doprnt.c (doprnt): Improve commentary.
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;
diff --git a/src/msdos.h b/src/msdos.h
index 5051f2f3837..3048b5f7e35 100644
--- a/src/msdos.h
+++ b/src/msdos.h
@@ -101,16 +101,16 @@ typedef struct x_menu_struct
101 int allocated; 101 int allocated;
102 int panecount; 102 int panecount;
103 int width; 103 int width;
104 char **help_text; 104 const char **help_text;
105} XMenu; 105} XMenu;
106 106
107XMenu *XMenuCreate (Display *, Window, char *); 107XMenu *XMenuCreate (Display *, Window, char *);
108int XMenuAddPane (Display *, XMenu *, const char *, int); 108int XMenuAddPane (Display *, XMenu *, char const *, int);
109int XMenuAddSelection (Display *, XMenu *, int, int, char *, int, char *); 109int XMenuAddSelection (Display *, XMenu *, int, int, char *, int, char const *);
110void XMenuLocate (Display *, XMenu *, int, int, int, int, 110void XMenuLocate (Display *, XMenu *, int, int, int, int,
111 int *, int *, int *, int *); 111 int *, int *, int *, int *);
112int XMenuActivate (Display *, XMenu *, int *, int *, int, int, unsigned, 112int XMenuActivate (Display *, XMenu *, int *, int *, int, int, unsigned,
113 char **, void (*callback)(char *, int, int)); 113 char **, void (*callback)(char const *, int, int));
114void XMenuDestroy (Display *, XMenu *); 114void XMenuDestroy (Display *, XMenu *);
115 115
116#endif /* not HAVE_X_WINDOWS */ 116#endif /* not HAVE_X_WINDOWS */
diff --git a/src/syntax.c b/src/syntax.c
index 4be6b8db140..9013a897dd0 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -19,7 +19,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19 19
20 20
21#include <config.h> 21#include <config.h>
22
22#include <ctype.h> 23#include <ctype.h>
24#include <sys/types.h>
23#include <setjmp.h> 25#include <setjmp.h>
24#include "lisp.h" 26#include "lisp.h"
25#include "commands.h" 27#include "commands.h"
diff --git a/src/xfaces.c b/src/xfaces.c
index fbed183522a..8e68b05cd87 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -331,7 +331,7 @@ Lisp_Object Qexpanded;
331static Lisp_Object Qultra_expanded; 331static Lisp_Object Qultra_expanded;
332static Lisp_Object Qreleased_button, Qpressed_button; 332static Lisp_Object Qreleased_button, Qpressed_button;
333static Lisp_Object QCstyle, QCcolor, QCline_width; 333static Lisp_Object QCstyle, QCcolor, QCline_width;
334static Lisp_Object Qunspecified; 334Lisp_Object Qunspecified; /* used in dosfns.c */
335static Lisp_Object Qignore_defface; 335static Lisp_Object Qignore_defface;
336 336
337char unspecified_fg[] = "unspecified-fg", unspecified_bg[] = "unspecified-bg"; 337char unspecified_fg[] = "unspecified-fg", unspecified_bg[] = "unspecified-bg";