diff options
| author | Eli Zaretskii | 2011-04-24 15:48:30 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2011-04-24 15:48:30 +0300 |
| commit | 1b2de274591d07480256539c4be65299d1dde3e9 (patch) | |
| tree | aa92b53c0827f7467b2b64c675b682290c06b380 | |
| parent | 762b15be8c7925c661e839fa41d46189513dfda6 (diff) | |
| download | emacs-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.
| -rw-r--r-- | msdos/ChangeLog | 6 | ||||
| -rw-r--r-- | msdos/sedlibmk.inp | 18 | ||||
| -rw-r--r-- | src/ChangeLog | 15 | ||||
| -rw-r--r-- | src/msdos.c | 10 | ||||
| -rw-r--r-- | src/msdos.h | 8 | ||||
| -rw-r--r-- | src/syntax.c | 2 | ||||
| -rw-r--r-- | src/xfaces.c | 2 |
7 files changed, 50 insertions, 11 deletions
diff --git a/msdos/ChangeLog b/msdos/ChangeLog index ebac5b288b6..5c345de5e35 100644 --- a/msdos/ChangeLog +++ b/msdos/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-04-24 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * sedlibmk.inp (am_libgnu_a_OBJECTS): Edit out | ||
| 4 | allocator.$(OBJEXT). Add editing for the new GNULIB_* and | ||
| 5 | REPLACE_* variables. | ||
| 6 | |||
| 1 | 2011-04-06 Eli Zaretskii <eliz@gnu.org> | 7 | 2011-04-06 Eli Zaretskii <eliz@gnu.org> |
| 2 | 8 | ||
| 3 | * sedlibmk.inp: Update checklist. | 9 | * sedlibmk.inp: Update checklist. |
diff --git a/msdos/sedlibmk.inp b/msdos/sedlibmk.inp index df4dd7ddf75..92313b96421 100644 --- a/msdos/sedlibmk.inp +++ b/msdos/sedlibmk.inp | |||
| @@ -36,7 +36,7 @@ | |||
| 36 | # /^STDDEF_H *=/s/@[^@\n]*@// -- stddef.h is not needed | 36 | # /^STDDEF_H *=/s/@[^@\n]*@// -- stddef.h is not needed |
| 37 | # | 37 | # |
| 38 | # . Some of the headers are generated conditionally, and the | 38 | # . Some of the headers are generated conditionally, and the |
| 39 | # corresponding recipes are guarder by @GL_GENERATE_xxxx_H_TRUE@ | 39 | # corresponding recipes are guarded by @GL_GENERATE_xxxx_H_TRUE@ |
| 40 | # and @GL_GENERATE_xxxx_H_FALSE@. Depending on whether DJGPP uses | 40 | # and @GL_GENERATE_xxxx_H_FALSE@. Depending on whether DJGPP uses |
| 41 | # the corresponding header, these should be edited either to | 41 | # the corresponding header, these should be edited either to |
| 42 | # nothing (thus exposing the recipe) or to #, which comments the | 42 | # nothing (thus exposing the recipe) or to #, which comments the |
| @@ -160,13 +160,17 @@ am__cd = cd | |||
| 160 | /^GNULIB_FCHMODAT *=/s/@GNULIB_FCHMODAT@/0/ | 160 | /^GNULIB_FCHMODAT *=/s/@GNULIB_FCHMODAT@/0/ |
| 161 | /^GNULIB_FCLOSE *=/s/@GNULIB_FCLOSE@/0/ | 161 | /^GNULIB_FCLOSE *=/s/@GNULIB_FCLOSE@/0/ |
| 162 | /^GNULIB_FFLUSH *=/s/@GNULIB_FFLUSH@/0/ | 162 | /^GNULIB_FFLUSH *=/s/@GNULIB_FFLUSH@/0/ |
| 163 | /^GNULIB_FGETC *=/s/@GNULIB_FGETC@/0/ | ||
| 164 | /^GNULIB_FGETS *=/s/@GNULIB_FGETS@/0/ | ||
| 163 | /^GNULIB_FOPEN *=/s/@GNULIB_FOPEN@/0/ | 165 | /^GNULIB_FOPEN *=/s/@GNULIB_FOPEN@/0/ |
| 164 | /^GNULIB_FPRINTF *=/s/@GNULIB_FPRINTF@/0/ | 166 | /^GNULIB_FPRINTF *=/s/@GNULIB_FPRINTF@/0/ |
| 165 | /^GNULIB_FPRINTF_POSIX *=/s/@GNULIB_FPRINTF_POSIX@/0/ | 167 | /^GNULIB_FPRINTF_POSIX *=/s/@GNULIB_FPRINTF_POSIX@/0/ |
| 166 | /^GNULIB_FPURGE *=/s/@GNULIB_FPURGE@/0/ | 168 | /^GNULIB_FPURGE *=/s/@GNULIB_FPURGE@/0/ |
| 167 | /^GNULIB_FPUTC *=/s/@GNULIB_FPUTC@/0/ | 169 | /^GNULIB_FPUTC *=/s/@GNULIB_FPUTC@/0/ |
| 168 | /^GNULIB_FPUTS *=/s/@GNULIB_FPUTS@/0/ | 170 | /^GNULIB_FPUTS *=/s/@GNULIB_FPUTS@/0/ |
| 171 | /^GNULIB_FREAD *=/s/@GNULIB_FREAD@/0/ | ||
| 169 | /^GNULIB_FREOPEN *=/s/@GNULIB_FREOPEN@/0/ | 172 | /^GNULIB_FREOPEN *=/s/@GNULIB_FREOPEN@/0/ |
| 173 | /^GNULIB_FSCANF *=/s/@GNULIB_FSCANF@/0/ | ||
| 170 | /^GNULIB_FSEEK *=/s/@GNULIB_FSEEK@/0/ | 174 | /^GNULIB_FSEEK *=/s/@GNULIB_FSEEK@/0/ |
| 171 | /^GNULIB_FSEEKO *=/s/@GNULIB_FSEEKO@/0/ | 175 | /^GNULIB_FSEEKO *=/s/@GNULIB_FSEEKO@/0/ |
| 172 | /^GNULIB_FSTATAT *=/s/@GNULIB_FSTATAT@/0/ | 176 | /^GNULIB_FSTATAT *=/s/@GNULIB_FSTATAT@/0/ |
| @@ -176,6 +180,8 @@ am__cd = cd | |||
| 176 | /^GNULIB_FTRUNCATE *=/s/@GNULIB_FTRUNCATE@/0/ | 180 | /^GNULIB_FTRUNCATE *=/s/@GNULIB_FTRUNCATE@/0/ |
| 177 | /^GNULIB_FUTIMENS *=/s/@GNULIB_FUTIMENS@/0/ | 181 | /^GNULIB_FUTIMENS *=/s/@GNULIB_FUTIMENS@/0/ |
| 178 | /^GNULIB_FWRITE *=/s/@GNULIB_FWRITE@/0/ | 182 | /^GNULIB_FWRITE *=/s/@GNULIB_FWRITE@/0/ |
| 183 | /^GNULIB_GETC *=/s/@GNULIB_GETC@/0/ | ||
| 184 | /^GNULIB_GETCHAR *=/s/@GNULIB_GETCHAR@/0/ | ||
| 179 | /^GNULIB_GETCWD *=/s/@GNULIB_GETCWD@/0/ | 185 | /^GNULIB_GETCWD *=/s/@GNULIB_GETCWD@/0/ |
| 180 | /^GNULIB_GETDELIM *=/s/@GNULIB_GETDELIM@/0/ | 186 | /^GNULIB_GETDELIM *=/s/@GNULIB_GETDELIM@/0/ |
| 181 | /^GNULIB_GETDOMAINNAME *=/s/@GNULIB_GETDOMAINNAME@/0/ | 187 | /^GNULIB_GETDOMAINNAME *=/s/@GNULIB_GETDOMAINNAME@/0/ |
| @@ -187,6 +193,7 @@ am__cd = cd | |||
| 187 | /^GNULIB_GETLOGIN *=/s/@GNULIB_GETLOGIN@/0/ | 193 | /^GNULIB_GETLOGIN *=/s/@GNULIB_GETLOGIN@/0/ |
| 188 | /^GNULIB_GETLOGIN_R *=/s/@GNULIB_GETLOGIN_R@/0/ | 194 | /^GNULIB_GETLOGIN_R *=/s/@GNULIB_GETLOGIN_R@/0/ |
| 189 | /^GNULIB_GETPAGESIZE *=/s/@GNULIB_GETPAGESIZE@/0/ | 195 | /^GNULIB_GETPAGESIZE *=/s/@GNULIB_GETPAGESIZE@/0/ |
| 196 | /^GNULIB_GETS *=/s/@GNULIB_GETS@/0/ | ||
| 190 | /^GNULIB_GETSUBOPT *=/s/@GNULIB_GETSUBOPT@/0/ | 197 | /^GNULIB_GETSUBOPT *=/s/@GNULIB_GETSUBOPT@/0/ |
| 191 | /^GNULIB_GETUSERSHELL *=/s/@GNULIB_GETUSERSHELL@/0/ | 198 | /^GNULIB_GETUSERSHELL *=/s/@GNULIB_GETUSERSHELL@/0/ |
| 192 | /^GNULIB_GRANTPT *=/s/@GNULIB_GRANTPT@/0/ | 199 | /^GNULIB_GRANTPT *=/s/@GNULIB_GRANTPT@/0/ |
| @@ -226,6 +233,7 @@ am__cd = cd | |||
| 226 | /^GNULIB_PUTS *=/s/@GNULIB_PUTS@/0/ | 233 | /^GNULIB_PUTS *=/s/@GNULIB_PUTS@/0/ |
| 227 | /^GNULIB_PWRITE *=/s/@GNULIB_PWRITE@/0/ | 234 | /^GNULIB_PWRITE *=/s/@GNULIB_PWRITE@/0/ |
| 228 | /^GNULIB_RANDOM_R *=/s/@GNULIB_RANDOM_R@/0/ | 235 | /^GNULIB_RANDOM_R *=/s/@GNULIB_RANDOM_R@/0/ |
| 236 | /^GNULIB_READ *=/s/@GNULIB_READ@/0/ | ||
| 229 | /^GNULIB_READLINK *=/s/@GNULIB_READLINK@/0/ | 237 | /^GNULIB_READLINK *=/s/@GNULIB_READLINK@/0/ |
| 230 | /^GNULIB_READLINKAT *=/s/@GNULIB_READLINKAT@/0/ | 238 | /^GNULIB_READLINKAT *=/s/@GNULIB_READLINKAT@/0/ |
| 231 | /^GNULIB_REALLOC_POSIX *=/s/@GNULIB_REALLOC_POSIX@/0/ | 239 | /^GNULIB_REALLOC_POSIX *=/s/@GNULIB_REALLOC_POSIX@/0/ |
| @@ -235,11 +243,13 @@ am__cd = cd | |||
| 235 | /^GNULIB_RENAMEAT *=/s/@GNULIB_RENAMEAT@/0/ | 243 | /^GNULIB_RENAMEAT *=/s/@GNULIB_RENAMEAT@/0/ |
| 236 | /^GNULIB_RMDIR *=/s/@GNULIB_RMDIR@/0/ | 244 | /^GNULIB_RMDIR *=/s/@GNULIB_RMDIR@/0/ |
| 237 | /^GNULIB_RPMATCH *=/s/@GNULIB_RPMATCH@/0/ | 245 | /^GNULIB_RPMATCH *=/s/@GNULIB_RPMATCH@/0/ |
| 246 | /^GNULIB_SCANF *=/s/@GNULIB_SCANF@/0/ | ||
| 238 | /^GNULIB_SETENV *=/s/@GNULIB_SETENV@/0/ | 247 | /^GNULIB_SETENV *=/s/@GNULIB_SETENV@/0/ |
| 239 | /^GNULIB_SLEEP *=/s/@GNULIB_SLEEP@/0/ | 248 | /^GNULIB_SLEEP *=/s/@GNULIB_SLEEP@/0/ |
| 240 | /^GNULIB_SNPRINTF *=/s/@GNULIB_SNPRINTF@/0/ | 249 | /^GNULIB_SNPRINTF *=/s/@GNULIB_SNPRINTF@/0/ |
| 241 | /^GNULIB_SPRINTF_POSIX *=/s/@GNULIB_SPRINTF_POSIX@/0/ | 250 | /^GNULIB_SPRINTF_POSIX *=/s/@GNULIB_SPRINTF_POSIX@/0/ |
| 242 | /^GNULIB_STAT *=/s/@GNULIB_STAT@/0/ | 251 | /^GNULIB_STAT *=/s/@GNULIB_STAT@/0/ |
| 252 | /^GNULIB_STDIO_H_NONBLOCKING *=/s/@GNULIB_STDIO_H_NONBLOCKING@/0/ | ||
| 243 | /^GNULIB_STDIO_H_SIGPIPE *=/s/@GNULIB_STDIO_H_SIGPIPE@/0/ | 253 | /^GNULIB_STDIO_H_SIGPIPE *=/s/@GNULIB_STDIO_H_SIGPIPE@/0/ |
| 244 | /^GNULIB_STRPTIME *=/s/@GNULIB_STRPTIME@/0/ | 254 | /^GNULIB_STRPTIME *=/s/@GNULIB_STRPTIME@/0/ |
| 245 | /^GNULIB_STRTOD *=/s/@GNULIB_STRTOD@/0/ | 255 | /^GNULIB_STRTOD *=/s/@GNULIB_STRTOD@/0/ |
| @@ -253,6 +263,7 @@ am__cd = cd | |||
| 253 | /^GNULIB_TMPFILE *=/s/@GNULIB_TMPFILE@/0/ | 263 | /^GNULIB_TMPFILE *=/s/@GNULIB_TMPFILE@/0/ |
| 254 | /^GNULIB_TTYNAME_R *=/s/@GNULIB_TTYNAME_R@/0/ | 264 | /^GNULIB_TTYNAME_R *=/s/@GNULIB_TTYNAME_R@/0/ |
| 255 | /^GNULIB_UNISTD_H_GETOPT *=/s/@GNULIB_UNISTD_H_GETOPT@/1/ | 265 | /^GNULIB_UNISTD_H_GETOPT *=/s/@GNULIB_UNISTD_H_GETOPT@/1/ |
| 266 | /^GNULIB_UNISTD_H_NONBLOCKING *=/s/@GNULIB_UNISTD_H_NONBLOCKING@/0/ | ||
| 256 | /^GNULIB_UNISTD_H_SIGPIPE *=/s/@GNULIB_UNISTD_H_SIGPIPE@/0/ | 267 | /^GNULIB_UNISTD_H_SIGPIPE *=/s/@GNULIB_UNISTD_H_SIGPIPE@/0/ |
| 257 | /^GNULIB_UNLINK *=/s/@GNULIB_UNLINK@/0/ | 268 | /^GNULIB_UNLINK *=/s/@GNULIB_UNLINK@/0/ |
| 258 | /^GNULIB_UNLINKAT *=/s/@GNULIB_UNLINKAT@/0/ | 269 | /^GNULIB_UNLINKAT *=/s/@GNULIB_UNLINKAT@/0/ |
| @@ -264,8 +275,10 @@ am__cd = cd | |||
| 264 | /^GNULIB_VDPRINTF *=/s/@GNULIB_VDPRINTF@/0/ | 275 | /^GNULIB_VDPRINTF *=/s/@GNULIB_VDPRINTF@/0/ |
| 265 | /^GNULIB_VFPRINTF *=/s/@GNULIB_VFPRINTF@/0/ | 276 | /^GNULIB_VFPRINTF *=/s/@GNULIB_VFPRINTF@/0/ |
| 266 | /^GNULIB_VFPRINTF_POSIX *=/s/@GNULIB_VFPRINTF_POSIX@/0/ | 277 | /^GNULIB_VFPRINTF_POSIX *=/s/@GNULIB_VFPRINTF_POSIX@/0/ |
| 278 | /^GNULIB_VFSCANF *=/s/@GNULIB_VFSCANF@/0/ | ||
| 267 | /^GNULIB_VPRINTF *=/s/@GNULIB_VPRINTF@/0/ | 279 | /^GNULIB_VPRINTF *=/s/@GNULIB_VPRINTF@/0/ |
| 268 | /^GNULIB_VPRINTF_POSIX *=/s/@GNULIB_VPRINTF_POSIX@/0/ | 280 | /^GNULIB_VPRINTF_POSIX *=/s/@GNULIB_VPRINTF_POSIX@/0/ |
| 281 | /^GNULIB_VSCANF *=/s/@GNULIB_VSCANF@/0/ | ||
| 269 | /^GNULIB_VSNPRINTF *=/s/@GNULIB_VSNPRINTF@/0/ | 282 | /^GNULIB_VSNPRINTF *=/s/@GNULIB_VSNPRINTF@/0/ |
| 270 | /^GNULIB_VSPRINTF_POSIX *=/s/@GNULIB_VSPRINTF_POSIX@/0/ | 283 | /^GNULIB_VSPRINTF_POSIX *=/s/@GNULIB_VSPRINTF_POSIX@/0/ |
| 271 | /^GNULIB_WCTOMB *=/s/@GNULIB_WCTOMB@/0/ | 284 | /^GNULIB_WCTOMB *=/s/@GNULIB_WCTOMB@/0/ |
| @@ -457,6 +470,7 @@ am__cd = cd | |||
| 457 | /^REPLACE_PRINTF *=/s/@REPLACE_PRINTF@/0/ | 470 | /^REPLACE_PRINTF *=/s/@REPLACE_PRINTF@/0/ |
| 458 | /^REPLACE_PUTENV *=/s/@REPLACE_PUTENV@/0/ | 471 | /^REPLACE_PUTENV *=/s/@REPLACE_PUTENV@/0/ |
| 459 | /^REPLACE_PWRITE *=/s/@REPLACE_PWRITE@/0/ | 472 | /^REPLACE_PWRITE *=/s/@REPLACE_PWRITE@/0/ |
| 473 | /^REPLACE_READ *=/s/@REPLACE_READ@/0/ | ||
| 460 | /^REPLACE_READLINK *=/s/@REPLACE_READLINK@/0/ | 474 | /^REPLACE_READLINK *=/s/@REPLACE_READLINK@/0/ |
| 461 | /^REPLACE_REALLOC *=/s/@REPLACE_REALLOC@/0/ | 475 | /^REPLACE_REALLOC *=/s/@REPLACE_REALLOC@/0/ |
| 462 | /^REPLACE_REALPATH *=/s/@REPLACE_REALPATH@/0/ | 476 | /^REPLACE_REALPATH *=/s/@REPLACE_REALPATH@/0/ |
| @@ -469,6 +483,7 @@ am__cd = cd | |||
| 469 | /^REPLACE_SNPRINTF *=/s/@REPLACE_SNPRINTF@/0/ | 483 | /^REPLACE_SNPRINTF *=/s/@REPLACE_SNPRINTF@/0/ |
| 470 | /^REPLACE_SPRINTF *=/s/@REPLACE_SPRINTF@/0/ | 484 | /^REPLACE_SPRINTF *=/s/@REPLACE_SPRINTF@/0/ |
| 471 | /^REPLACE_STAT *=/s/@REPLACE_STAT@/0/ | 485 | /^REPLACE_STAT *=/s/@REPLACE_STAT@/0/ |
| 486 | /^REPLACE_STDIO_READ_FUNCS *=/s/@REPLACE_STDIO_READ_FUNCS@/0/ | ||
| 472 | /^REPLACE_STDIO_WRITE_FUNCS *=/s/@REPLACE_STDIO_WRITE_FUNCS@/0/ | 487 | /^REPLACE_STDIO_WRITE_FUNCS *=/s/@REPLACE_STDIO_WRITE_FUNCS@/0/ |
| 473 | /^REPLACE_STRTOD *=/s/@REPLACE_STRTOD@/0/ | 488 | /^REPLACE_STRTOD *=/s/@REPLACE_STRTOD@/0/ |
| 474 | /^REPLACE_SYMLINK *=/s/@REPLACE_SYMLINK@/0/ | 489 | /^REPLACE_SYMLINK *=/s/@REPLACE_SYMLINK@/0/ |
| @@ -501,6 +516,7 @@ am__cd = cd | |||
| 501 | /^WINT_T_SUFFIX *=/s/@WINT_T_SUFFIX@// | 516 | /^WINT_T_SUFFIX *=/s/@WINT_T_SUFFIX@// |
| 502 | /^gl_LIBOBJS *=/s/@[^@\n]*@/getopt.o getopt1.o strftime.o time_r.o getloadavg.o md5.o filemode.o/ | 517 | /^gl_LIBOBJS *=/s/@[^@\n]*@/getopt.o getopt1.o strftime.o time_r.o getloadavg.o md5.o filemode.o/ |
| 503 | /^am_libgnu_a_OBJECTS *=/s/careadlinkat.\$(OBJEXT)// | 518 | /^am_libgnu_a_OBJECTS *=/s/careadlinkat.\$(OBJEXT)// |
| 519 | /^am_libgnu_a_OBJECTS *=/s/allocator.\$(OBJEXT)// | ||
| 504 | /^srcdir *=/s/@[^@\n]*@/./ | 520 | /^srcdir *=/s/@[^@\n]*@/./ |
| 505 | /^top_srcdir *=/s/@[^@\n]*@/../ | 521 | /^top_srcdir *=/s/@[^@\n]*@/../ |
| 506 | /^top_builddir *=/s/@[^@\n]*@/../ | 522 | /^top_builddir *=/s/@[^@\n]*@/../ |
diff --git a/src/ChangeLog b/src/ChangeLog index 478a5aa2512..7efd8dad6cc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,20 @@ | |||
| 1 | 2011-04-24 Eli Zaretskii <eliz@gnu.org> | 1 | 2011-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. */ |
| 2815 | static char *menu_help_message, *prev_menu_help_message; | 2815 | static 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. */ |
| 2818 | static int menu_help_paneno, menu_help_itemno; | 2818 | static 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 | ||
| 3034 | int | 3034 | int |
| 3035 | XMenuAddSelection (Display *bar, XMenu *menu, int pane, | 3035 | XMenuAddSelection (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 | |||
| 3086 | int | 3086 | int |
| 3087 | XMenuActivate (Display *foo, XMenu *menu, int *pane, int *selidx, | 3087 | XMenuActivate (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 | ||
| 107 | XMenu *XMenuCreate (Display *, Window, char *); | 107 | XMenu *XMenuCreate (Display *, Window, char *); |
| 108 | int XMenuAddPane (Display *, XMenu *, const char *, int); | 108 | int XMenuAddPane (Display *, XMenu *, char const *, int); |
| 109 | int XMenuAddSelection (Display *, XMenu *, int, int, char *, int, char *); | 109 | int XMenuAddSelection (Display *, XMenu *, int, int, char *, int, char const *); |
| 110 | void XMenuLocate (Display *, XMenu *, int, int, int, int, | 110 | void XMenuLocate (Display *, XMenu *, int, int, int, int, |
| 111 | int *, int *, int *, int *); | 111 | int *, int *, int *, int *); |
| 112 | int XMenuActivate (Display *, XMenu *, int *, int *, int, int, unsigned, | 112 | int XMenuActivate (Display *, XMenu *, int *, int *, int, int, unsigned, |
| 113 | char **, void (*callback)(char *, int, int)); | 113 | char **, void (*callback)(char const *, int, int)); |
| 114 | void XMenuDestroy (Display *, XMenu *); | 114 | void 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; | |||
| 331 | static Lisp_Object Qultra_expanded; | 331 | static Lisp_Object Qultra_expanded; |
| 332 | static Lisp_Object Qreleased_button, Qpressed_button; | 332 | static Lisp_Object Qreleased_button, Qpressed_button; |
| 333 | static Lisp_Object QCstyle, QCcolor, QCline_width; | 333 | static Lisp_Object QCstyle, QCcolor, QCline_width; |
| 334 | static Lisp_Object Qunspecified; | 334 | Lisp_Object Qunspecified; /* used in dosfns.c */ |
| 335 | static Lisp_Object Qignore_defface; | 335 | static Lisp_Object Qignore_defface; |
| 336 | 336 | ||
| 337 | char unspecified_fg[] = "unspecified-fg", unspecified_bg[] = "unspecified-bg"; | 337 | char unspecified_fg[] = "unspecified-fg", unspecified_bg[] = "unspecified-bg"; |