aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2012-08-01 02:29:59 +0200
committerJuanma Barranquero2012-08-01 02:29:59 +0200
commit552a99b4cb5474337048053c2e7f0dd9eef9b1cb (patch)
tree8cc3f2a0fa2c784bfae8c72694ad0511b1a80a9f
parent0d49da68b9cdc70a1f3ced0cae0b480ace5e28fc (diff)
downloademacs-552a99b4cb5474337048053c2e7f0dd9eef9b1cb.tar.gz
emacs-552a99b4cb5474337048053c2e7f0dd9eef9b1cb.zip
Adapt Windows port to recent changes in autogen/config.in.
* lib-src/makefile.w32-in (CONFIG_H): Update dependencies. (CONF_POST_H): New macro. * lib/makefile.w32-in (CONFIG_H): Update dependencies. (CONF_POST_H): New macro. * nt/config.nt: Sync with autogen/config.in. Remove code moved to conf_post.h and include <conf_post.h> (NULL_DEVICE, SEPCHAR, SIGNAL_H_AHB, TIOCSIGSEND, USER_FULL_NAME) (USG5_4, WRETCODE, _longjmp, _setjmp, wait3): New macros. * src/makefile.w32-in (CONFIG_H): Update dependencies. (CONF_POST_H): New macro. * src/s/ms-w32.h (SEPCHAR, NULL_DEVICE): Remove; moved to nt/config.nt.
-rw-r--r--ChangeLog5
-rw-r--r--lib-src/ChangeLog5
-rw-r--r--lib-src/makefile.w32-in4
-rw-r--r--lib/makefile.w32-in4
-rw-r--r--nt/ChangeLog7
-rw-r--r--nt/config.nt134
-rw-r--r--src/ChangeLog7
-rw-r--r--src/makefile.w32-in5
-rw-r--r--src/s/ms-w32.h7
9 files changed, 70 insertions, 108 deletions
diff --git a/ChangeLog b/ChangeLog
index 407bec2a03b..6c74a79f5cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12012-08-01 Juanma Barranquero <lekktu@gmail.com>
2
3 * lib/makefile.w32-in (CONFIG_H): Update dependencies.
4 (CONF_POST_H): New macro.
5
12012-07-31 Glenn Morris <rgm@gnu.org> 62012-07-31 Glenn Morris <rgm@gnu.org>
2 7
3 * configure.ac (S_FILE): Remove output variable. 8 * configure.ac (S_FILE): Remove output variable.
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 2d2bb06cd6f..c5d6ed6eaf0 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,8 @@
12012-08-01 Juanma Barranquero <lekktu@gmail.com>
2
3 * makefile.w32-in (CONFIG_H): Update dependencies.
4 (CONF_POST_H): New macro.
5
12012-07-30 Paul Eggert <eggert@cs.ucla.edu> 62012-07-30 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 Update .PHONY listings in makefiles. 8 Update .PHONY listings in makefiles.
diff --git a/lib-src/makefile.w32-in b/lib-src/makefile.w32-in
index 65e2f7cae25..8c9482b9194 100644
--- a/lib-src/makefile.w32-in
+++ b/lib-src/makefile.w32-in
@@ -362,8 +362,10 @@ GNU_LIB = $(EMACS_ROOT)/lib
362 362
363MS_W32_H = $(SRC)/s/ms-w32.h \ 363MS_W32_H = $(SRC)/s/ms-w32.h \
364 $(NT_INC)/sys/stat.h 364 $(NT_INC)/sys/stat.h
365CONFIG_H = $(SRC)/config.h \ 365CONF_POST_H = $(SRC)/conf_post.h \
366 $(MS_W32_H) 366 $(MS_W32_H)
367CONFIG_H = $(SRC)/config.h \
368 $(CONF_POST_H)
367INTTYPES_H = $(NT_INC)/inttypes.h \ 369INTTYPES_H = $(NT_INC)/inttypes.h \
368 $(NT_INC)/stdint.h 370 $(NT_INC)/stdint.h
369NTLIB_H = $(LIB_SRC)/ntlib.h \ 371NTLIB_H = $(LIB_SRC)/ntlib.h \
diff --git a/lib/makefile.w32-in b/lib/makefile.w32-in
index 345520798eb..4cebc727513 100644
--- a/lib/makefile.w32-in
+++ b/lib/makefile.w32-in
@@ -73,8 +73,10 @@ C_CTYPE_H = $(GNU_LIB)/c-ctype.h \
73 $(NT_INC)/stdbool.h 73 $(NT_INC)/stdbool.h
74MS_W32_H = $(SRC)/s/ms-w32.h \ 74MS_W32_H = $(SRC)/s/ms-w32.h \
75 $(NT_INC)/sys/stat.h 75 $(NT_INC)/sys/stat.h
76CONFIG_H = $(SRC)/config.h \ 76CONF_POST_H = $(SRC)/conf_post.h \
77 $(MS_W32_H) 77 $(MS_W32_H)
78CONFIG_H = $(SRC)/config.h \
79 $(CONF_POST_H)
78FILEMODE_H = $(GNU_LIB)/filemode.h \ 80FILEMODE_H = $(GNU_LIB)/filemode.h \
79 $(NT_INC)/sys/stat.h 81 $(NT_INC)/sys/stat.h
80FTOASTR_H = $(GNU_LIB)/ftoastr.h \ 82FTOASTR_H = $(GNU_LIB)/ftoastr.h \
diff --git a/nt/ChangeLog b/nt/ChangeLog
index 000e21a842e..5e6b3146e1d 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,10 @@
12012-08-01 Juanma Barranquero <lekktu@gmail.com>
2
3 * config.nt: Sync with autogen/config.in.
4 Remove code moved to conf_post.h and include <conf_post.h>
5 (NULL_DEVICE, SEPCHAR, SIGNAL_H_AHB, TIOCSIGSEND, USER_FULL_NAME)
6 (USG5_4, WRETCODE, _longjmp, _setjmp, wait3): New macros.
7
12012-07-29 Juanma Barranquero <lekktu@gmail.com> 82012-07-29 Juanma Barranquero <lekktu@gmail.com>
2 9
3 * config.nt: Sync with autogen/config.in. 10 * config.nt: Sync with autogen/config.in.
diff --git a/nt/config.nt b/nt/config.nt
index dfb4f61ac80..37d0009c750 100644
--- a/nt/config.nt
+++ b/nt/config.nt
@@ -36,6 +36,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
36/* Define if building universal (internal helper macro) */ 36/* Define if building universal (internal helper macro) */
37#undef AC_APPLE_UNIVERSAL_BUILD 37#undef AC_APPLE_UNIVERSAL_BUILD
38 38
39/* Define to use the convention that & in the full name stands for the login
40 id. */
41#undef AMPERSAND_FULL_NAME
42
39/* Define to the number of bits in type 'ptrdiff_t'. */ 43/* Define to the number of bits in type 'ptrdiff_t'. */
40#undef BITSIZEOF_PTRDIFF_T 44#undef BITSIZEOF_PTRDIFF_T
41 45
@@ -1166,6 +1170,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
1166/* Define to 1 if you are using NS windowing under GNUstep. */ 1170/* Define to 1 if you are using NS windowing under GNUstep. */
1167#undef NS_IMPL_GNUSTEP 1171#undef NS_IMPL_GNUSTEP
1168 1172
1173/* Name of the file to open to get a null file, or a data sink. */
1174#define NULL_DEVICE "NUL:"
1175
1169/* Define to 1 if the nlist n_name member is a pointer */ 1176/* Define to 1 if the nlist n_name member is a pointer */
1170#undef N_NAME_POINTER 1177#undef N_NAME_POINTER
1171 1178
@@ -1248,6 +1255,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
1248/* Define if emacs.c needs to call run_time_remap; for HPUX. */ 1255/* Define if emacs.c needs to call run_time_remap; for HPUX. */
1249#undef RUN_TIME_REMAP 1256#undef RUN_TIME_REMAP
1250 1257
1258/* Character that separates PATH elements. */
1259#define SEPCHAR ';'
1260
1251/* Define if process.c:child_setup should not call setpgrp. */ 1261/* Define if process.c:child_setup should not call setpgrp. */
1252#undef SETPGRP_RELEASES_CTTY 1262#undef SETPGRP_RELEASES_CTTY
1253 1263
@@ -1257,6 +1267,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
1257/* Make process_send_signal work by "typing" a signal character on the pty. */ 1267/* Make process_send_signal work by "typing" a signal character on the pty. */
1258#undef SIGNALS_VIA_CHARACTERS 1268#undef SIGNALS_VIA_CHARACTERS
1259 1269
1270/* Define if AH_BOTTOM should include signal.h. */
1271#undef SIGNAL_H_AHB
1272
1260/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type 1273/* Define to l, ll, u, ul, ull, etc., as suitable for constants of type
1261 'sig_atomic_t'. */ 1274 'sig_atomic_t'. */
1262#undef SIG_ATOMIC_T_SUFFIX 1275#undef SIG_ATOMIC_T_SUFFIX
@@ -1306,6 +1319,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
1306/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ 1319/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
1307#define TIME_WITH_SYS_TIME 1 1320#define TIME_WITH_SYS_TIME 1
1308 1321
1322/* Some platforms redefine this. */
1323#undef TIOCSIGSEND
1324
1309/* Define to 1 if your <sys/time.h> declares `struct tm'. */ 1325/* Define to 1 if your <sys/time.h> declares `struct tm'. */
1310#undef TM_IN_SYS_TIME 1326#undef TM_IN_SYS_TIME
1311 1327
@@ -1326,6 +1342,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
1326/* Define if the system has Unix98 PTYs. */ 1342/* Define if the system has Unix98 PTYs. */
1327#undef UNIX98_PTYS 1343#undef UNIX98_PTYS
1328 1344
1345/* How to get a user's full name. */
1346#define USER_FULL_NAME pw->pw_gecos
1347
1329/* Define to 1 if using GTK. */ 1348/* Define to 1 if using GTK. */
1330#undef USE_GTK 1349#undef USE_GTK
1331 1350
@@ -1353,6 +1372,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
1353/* Define if the system is compatible with System V. */ 1372/* Define if the system is compatible with System V. */
1354#undef USG5 1373#undef USG5
1355 1374
1375/* Define if the system is compatible with System V Release 4. */
1376#undef USG5_4
1377
1356/* Define for USG systems where it works to open a pty's tty in the parent 1378/* Define for USG systems where it works to open a pty's tty in the parent
1357 process, then close and reopen it in the child. */ 1379 process, then close and reopen it in the child. */
1358#undef USG_SUBTTY_WORKS 1380#undef USG_SUBTTY_WORKS
@@ -1383,6 +1405,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
1383# endif 1405# endif
1384#endif 1406#endif
1385 1407
1408/* Some platforms redefine this. */
1409#undef WRETCODE
1410
1386/* Define this to check for malloc buffer overrun. */ 1411/* Define this to check for malloc buffer overrun. */
1387#undef XMALLOC_OVERRUN_CHECK 1412#undef XMALLOC_OVERRUN_CHECK
1388 1413
@@ -1483,6 +1508,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
1483 declarations. Define as empty for no equivalent. */ 1508 declarations. Define as empty for no equivalent. */
1484#undef __restrict_arr 1509#undef __restrict_arr
1485 1510
1511/* Some platforms redefine this. */
1512#undef _longjmp
1513
1514/* Some platforms redefine this. */
1515#undef _setjmp
1516
1486/* Define to the used os dependent file. */ 1517/* Define to the used os dependent file. */
1487#define config_opsysfile "s/ms-w32.h" 1518#define config_opsysfile "s/ms-w32.h"
1488 1519
@@ -1549,6 +1580,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
1549/* Define as a signed type of the same size as size_t. */ 1580/* Define as a signed type of the same size as size_t. */
1550#undef ssize_t 1581#undef ssize_t
1551 1582
1583/* Define to enable asynchronous subprocesses. */
1584#define subprocesses
1585
1552/* Define to any substitute for sys_siglist. */ 1586/* Define to any substitute for sys_siglist. */
1553#undef sys_siglist 1587#undef sys_siglist
1554 1588
@@ -1585,104 +1619,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
1585/* Define as `fork' if `vfork' does not work. */ 1619/* Define as `fork' if `vfork' does not work. */
1586#undef vfork 1620#undef vfork
1587 1621
1622/* Some platforms redefine this. */
1623#undef wait3
1588 1624
1589/* Not valid on Windows. */ 1625#include <conf_post.h>
1590#if 0
1591/* On AIX 3 this must be included before any other include file. */
1592#include <alloca.h>
1593#if ! HAVE_ALLOCA
1594# error "alloca not available on this machine"
1595#endif
1596#endif
1597
1598/* This silences a few compilation warnings on FreeBSD. */
1599#ifdef BSD_SYSTEM_AHB
1600#undef BSD_SYSTEM_AHB
1601#undef BSD_SYSTEM
1602#if __FreeBSD__ == 1
1603#define BSD_SYSTEM 199103
1604#elif __FreeBSD__ == 2
1605#define BSD_SYSTEM 199306
1606#elif __FreeBSD__ >= 3
1607#define BSD_SYSTEM 199506
1608#endif
1609#endif
1610
1611/* Define AMPERSAND_FULL_NAME if you use the convention
1612 that & in the full name stands for the login id. */
1613#undef AMPERSAND_FULL_NAME
1614
1615/* `subprocesses' should be defined if you want to
1616 have code for asynchronous subprocesses
1617 (as used in M-x compile and M-x shell).
1618 Only MSDOS does not support this (it overrides
1619 this in its config_opsysfile below). */
1620
1621#define subprocesses
1622
1623/* Include the os dependent file. */
1624#ifdef config_opsysfile
1625# include config_opsysfile
1626#endif
1627
1628/* Mac OS X / GNUstep need a bit more pure memory. Of the existing knobs,
1629 SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems. */
1630#ifdef HAVE_NS
1631#if defined NS_IMPL_GNUSTEP
1632# define SYSTEM_PURESIZE_EXTRA 30000
1633#elif defined DARWIN_OS
1634# define SYSTEM_PURESIZE_EXTRA 200000
1635#endif
1636#endif
1637
1638#ifdef emacs /* Don't do this for lib-src. */
1639/* Tell regex.c to use a type compatible with Emacs. */
1640#define RE_TRANSLATE_TYPE Lisp_Object
1641#define RE_TRANSLATE(TBL, C) CHAR_TABLE_TRANSLATE (TBL, C)
1642#ifdef make_number
1643/* If make_number is a macro, use it. */
1644#define RE_TRANSLATE_P(TBL) (!EQ (TBL, make_number (0)))
1645#else
1646/* If make_number is a function, avoid it. */
1647#define RE_TRANSLATE_P(TBL) (!(INTEGERP (TBL) && XINT (TBL) == 0))
1648#endif
1649#endif
1650
1651#include <string.h>
1652#include <stdlib.h>
1653
1654#if __GNUC__ >= 3 /* On GCC 3.0 we might get a warning. */
1655#define NO_INLINE __attribute__((noinline))
1656#else
1657#define NO_INLINE
1658#endif
1659
1660#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1))
1661#define EXTERNALLY_VISIBLE __attribute__((externally_visible))
1662#else
1663#define EXTERNALLY_VISIBLE
1664#endif
1665
1666#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
1667# define ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
1668#else
1669# define ATTRIBUTE_FORMAT(spec) /* empty */
1670#endif
1671
1672#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
1673# define ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument) \
1674 ATTRIBUTE_FORMAT ((__gnu_printf__, formatstring_parameter, first_argument))
1675#else
1676# define ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument) \
1677 ATTRIBUTE_FORMAT ((__printf__, formatstring_parameter, first_argument))
1678#endif
1679
1680#define ATTRIBUTE_CONST _GL_ATTRIBUTE_CONST
1681
1682/* Some versions of GNU/Linux define noinline in their headers. */
1683#ifdef noinline
1684#undef noinline
1685#endif
1686 1626
1687#endif /* EMACS_CONFIG_H */ 1627#endif /* EMACS_CONFIG_H */
1688 1628
diff --git a/src/ChangeLog b/src/ChangeLog
index 9b8de9ff23e..bf172320eed 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12012-08-01 Juanma Barranquero <lekktu@gmail.com>
2
3 * makefile.w32-in (CONFIG_H): Update dependencies.
4 (CONF_POST_H): New macro.
5
6 * s/ms-w32.h (SEPCHAR, NULL_DEVICE): Remove; moved to nt/config.nt.
7
12012-07-31 Glenn Morris <rgm@gnu.org> 82012-07-31 Glenn Morris <rgm@gnu.org>
2 9
3 * Makefile.in (S_FILE): No longer set by configure. 10 * Makefile.in (S_FILE): No longer set by configure.
diff --git a/src/makefile.w32-in b/src/makefile.w32-in
index 10ab0619fb4..ee5424cf757 100644
--- a/src/makefile.w32-in
+++ b/src/makefile.w32-in
@@ -405,9 +405,10 @@ CODING_H = $(SRC)/coding.h \
405 $(SRC)/composite.h 405 $(SRC)/composite.h
406MS_W32_H = $(SRC)/s/ms-w32.h \ 406MS_W32_H = $(SRC)/s/ms-w32.h \
407 $(NT_INC)/sys/stat.h 407 $(NT_INC)/sys/stat.h
408CONFIG_H = $(SRC)/config.h \ 408CONF_POST_H = $(SRC)/conf_post.h \
409 $(SRC)/conf_post.h \
410 $(MS_W32_H) 409 $(MS_W32_H)
410CONFIG_H = $(SRC)/config.h \
411 $(CONF_POST_H)
411DIR_H = $(NT_INC)/sys/dir.h \ 412DIR_H = $(NT_INC)/sys/dir.h \
412 $(SRC)/ndir.h 413 $(SRC)/ndir.h
413W32GUI_H = $(SRC)/w32gui.h \ 414W32GUI_H = $(SRC)/w32gui.h \
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h
index bcc4c4235ee..ca4c1001ec9 100644
--- a/src/s/ms-w32.h
+++ b/src/s/ms-w32.h
@@ -52,10 +52,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
52 52
53#define MAIL_USE_SYSTEM_LOCK 1 53#define MAIL_USE_SYSTEM_LOCK 1
54 54
55/* If the character used to separate elements of the executable path
56 is not ':', #define this to be the appropriate character constant. */
57#define SEPCHAR ';'
58
59/* Define to 1 if GCC-style __attribute__ ((__aligned__ (expr))) works. */ 55/* Define to 1 if GCC-style __attribute__ ((__aligned__ (expr))) works. */
60#ifdef __GNUC__ 56#ifdef __GNUC__
61#define HAVE_ATTRIBUTE_ALIGNED 1 57#define HAVE_ATTRIBUTE_ALIGNED 1
@@ -141,9 +137,6 @@ struct sigaction {
141#define SIG_SETMASK 2 137#define SIG_SETMASK 2
142#define SIG_UNBLOCK 3 138#define SIG_UNBLOCK 3
143 139
144/* The null device on Windows NT. */
145#define NULL_DEVICE "NUL:"
146
147#ifndef MAXPATHLEN 140#ifndef MAXPATHLEN
148#define MAXPATHLEN _MAX_PATH 141#define MAXPATHLEN _MAX_PATH
149#endif 142#endif