]> code.delx.au - gnu-emacs/commitdiff
Rename init_process rather than working around it on Darwin
authorGlenn Morris <rgm@gnu.org>
Thu, 12 Jul 2012 23:56:39 +0000 (19:56 -0400)
committerGlenn Morris <rgm@gnu.org>
Thu, 12 Jul 2012 23:56:39 +0000 (19:56 -0400)
The old name is also the name of a Mach system call.

* src/process.c (init_process_emacs): Rename from init_process.

* src/lisp.h, src/emacs.c: Update for this name change.

* src/nsgui.h, src/sysselect.h, src/s/darwin.h:
Remove workaround that is no longer needed.

admin/notes/multi-tty
src/ChangeLog
src/emacs.c
src/lisp.h
src/nsgui.h
src/process.c
src/s/darwin.h
src/sysselect.h

index 4146c8ffa580812df9a80578991e621878ff8486..5408b9a3d0063fb4af915d3f6745a44af9a6ecaf 100644 (file)
@@ -906,7 +906,7 @@ DIARY OF CHANGES
    read_avail_input.
 
    (Fixed.  This was caused by unconditionally including stdin in
-   input_wait_mask in init_process.  The select call in
+   input_wait_mask in init_process_emacs.  The select call in
    wait_reading_process_input always returned immediately, indicating
    that there is pending input from stdin, which nobody read.
 
index 49014c340dced73650bb89d57a9345fe665275ca..8383cf17b034cde711aa289b4a32be6c6612ff4c 100644 (file)
@@ -1,3 +1,12 @@
+2012-07-12  Glenn Morris  <rgm@gnu.org>
+
+
+       * process.c (init_process_emacs): Rename from init_process.
+       The old name is also the name of a Mach system call.
+       * lisp.h, emacs.c: Update for this name change.
+       * nsgui.h, sysselect.h, s/darwin.h: Remove workaround that is no
+       longer needed.
+
 2012-07-12  Eli Zaretskii  <eliz@gnu.org>
 
        * xdisp.c (insert_left_trunc_glyphs): Fix incorrect size in
index 2194cfead16e4e05f217b7dcea586a78165f5486..db01b13c32dcf987b4de73b62dc4cb8a292f2cd6 100644 (file)
@@ -1597,8 +1597,8 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
 
   init_charset ();
 
-  init_editfns (); /* init_process uses Voperating_system_release. */
-  init_process (); /* init_display uses add_keyboard_wait_descriptor. */
+  init_editfns (); /* init_process_emacs uses Voperating_system_release. */
+  init_process_emacs (); /* init_display uses add_keyboard_wait_descriptor. */
   init_keyboard ();    /* This too must precede init_sys_modes.  */
   if (!noninteractive)
     init_display ();   /* Determine terminal type.  Calls init_sys_modes.  */
index e01f21e84d84833cb31d41a29de62f5fd76cb97a..529feb99fd5f51c5f169b73aca60534bbff01b3d 100644 (file)
@@ -3060,7 +3060,7 @@ extern void add_gpm_wait_descriptor (int);
 extern void delete_gpm_wait_descriptor (int);
 #endif
 extern void close_process_descs (void);
-extern void init_process (void);
+extern void init_process_emacs (void);
 extern void syms_of_process (void);
 extern void setup_process_coding_systems (Lisp_Object);
 
index 0c9a8a01e6965dcb045736f6372bd6b8b8e333b8..60c38b221fb94b381cecc45aa7e4530b4c786e7d 100644 (file)
@@ -27,7 +27,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #warning "Z is defined.  If you get a later parse error in a header, check that buffer.h or other files #define-ing Z are not included."
 #endif  /* Z */
 #define Cursor FooFoo
-#undef init_process
 #endif  /* NS_IMPL_COCOA */
 
 #undef verify
@@ -36,7 +35,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #ifdef NS_IMPL_COCOA
 #undef Cursor
-#define init_process emacs_init_process
 #endif /* NS_IMPL_COCOA */
 #import <Foundation/NSDistantObject.h>
 
index 98a47eca7aebe8eb48625c97199870fe276bdb6f..44f8520745dd64d2c949a78822146d2c44d58b06 100644 (file)
@@ -7298,8 +7298,10 @@ integer or floating point values.
 }
 
 \f
+/* This is not called "init_process" because that is the name of a
+   Mach system call, so it would cause problems on Darwin systems.  */
 void
-init_process (void)
+init_process_emacs (void)
 {
 #ifdef subprocesses
   register int i;
index c853f9d94f0bf6cb1b73c6e8a94ba8cfffa8e18e..48f6f583d1efd9a99d259f792f560005b6833e27 100644 (file)
@@ -34,10 +34,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
    for process-connection-type dependent on the kernel version.  */
 #define MIN_PTY_KERNEL_VERSION '7'
 
-/* Avoid the use of the name init_process (process.c) because it is
-   also the name of a Mach system call.  */
-#define init_process emacs_init_process
-
 /* Definitions for how to compile & link.  */
 #ifdef HAVE_NS
 #define SYSTEM_PURESIZE_EXTRA 200000
index 2dbbede2bffacc2a9bf48d5e0939288f5842641b..24bdf469cedcc5f29fc1d9300dc0c50b076b49f3 100644 (file)
@@ -16,15 +16,9 @@ GNU General Public License for more details.
 You should have received a copy of the GNU General Public License
 along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#if defined (DARWIN_OS)
-#undef init_process
-#endif
 #ifndef DOS_NT
 #include <sys/select.h>
 #endif
-#if defined (DARWIN_OS)
-#define init_process emacs_init_process
-#endif
 
 /* The w32 build defines select stuff in w32.h, which is included
    where w32 needs it, but not where sysselect.h is included.  The w32