From 9748df5d771df91aa4caf534a3ed3a6682f1bfcb Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 9 Aug 2012 20:16:33 -0400 Subject: [PATCH] Remove some make-docfile.c undes that are no longer needed * lib-src/make-docfile.c (main): (fopen) [!WINDOWSNT]: (chdir) [!DOS_NT]: No more need to undef. --- lib-src/ChangeLog | 4 ++++ lib-src/make-docfile.c | 25 ++++++++++--------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 1262c917a4..f3946f1f6c 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,5 +1,9 @@ 2012-08-10 Glenn Morris + * make-docfile.c (main): + (fopen) [!WINDOWSNT]: + (chdir) [!DOS_NT]: No more need to undef. + * movemail.c (DIRECTORY_SEP, IS_DIRECTORY_SEP): * make-docfile.c (DIRECTORY_SEP, IS_DIRECTORY_SEP): * emacsclient.c (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_DEVICE_SEP): diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index c2ac8ed63f..627f4639aa 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c @@ -36,23 +36,26 @@ along with GNU Emacs. If not, see . */ #include -/* Defined to be emacs_main, sys_fopen, etc. in config.h. */ -/* FIXME Not for ages? */ -#undef main -#undef fopen -#undef chdir - #include -#include /* FIXME config.h unconditionally includes this */ +#include /* config.h unconditionally includes this anyway */ #ifdef MSDOS #include #endif /* MSDOS */ #ifdef WINDOWSNT +/* Defined to be sys_fopen in ms-w32.h, but only #ifdef emacs, so this + is really just insurance. */ +#undef fopen #include #include #endif /* WINDOWSNT */ #ifdef DOS_NT +/* Defined to be sys_chdir in ms-w32.h, but only #ifdef emacs, so this + is really just insurance. + + Similarly, msdos defines this as sys_chdir, but we're not linking with the + file where that function is defined. */ +#undef chdir #define READ_TEXT "rt" #define READ_BINARY "rb" #else /* not DOS_NT */ @@ -73,14 +76,6 @@ static int scan_c_file (char *filename, const char *mode); static void start_globals (void); static void write_globals (void); -/* FIXME msdos does not define this any more, and in any case we - undefined it for everyone just above. */ -#ifdef MSDOS -/* s/msdos.h defines this as sys_chdir, but we're not linking with the - file where that function is defined. */ -#undef chdir -#endif - #include /* Stdio stream for output to the DOC file. */ -- 2.20.1