diff options
| author | Glenn Morris | 2012-07-12 19:56:39 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-07-12 19:56:39 -0400 |
| commit | b82da769e5bd9aab6ee2102d4c98ed7e1c6541bb (patch) | |
| tree | b2ceffaf072612d2e1121a680c8f381148761646 | |
| parent | ba9e4b84ac8322e84cd0cc1c5fe6d5d8a8453ff5 (diff) | |
| download | emacs-b82da769e5bd9aab6ee2102d4c98ed7e1c6541bb.tar.gz emacs-b82da769e5bd9aab6ee2102d4c98ed7e1c6541bb.zip | |
Rename init_process rather than working around it on Darwin
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.
| -rw-r--r-- | admin/notes/multi-tty | 2 | ||||
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/emacs.c | 4 | ||||
| -rw-r--r-- | src/lisp.h | 2 | ||||
| -rw-r--r-- | src/nsgui.h | 2 | ||||
| -rw-r--r-- | src/process.c | 4 | ||||
| -rw-r--r-- | src/s/darwin.h | 4 | ||||
| -rw-r--r-- | src/sysselect.h | 6 |
8 files changed, 16 insertions, 17 deletions
diff --git a/admin/notes/multi-tty b/admin/notes/multi-tty index 4146c8ffa58..5408b9a3d00 100644 --- a/admin/notes/multi-tty +++ b/admin/notes/multi-tty | |||
| @@ -906,7 +906,7 @@ DIARY OF CHANGES | |||
| 906 | read_avail_input. | 906 | read_avail_input. |
| 907 | 907 | ||
| 908 | (Fixed. This was caused by unconditionally including stdin in | 908 | (Fixed. This was caused by unconditionally including stdin in |
| 909 | input_wait_mask in init_process. The select call in | 909 | input_wait_mask in init_process_emacs. The select call in |
| 910 | wait_reading_process_input always returned immediately, indicating | 910 | wait_reading_process_input always returned immediately, indicating |
| 911 | that there is pending input from stdin, which nobody read. | 911 | that there is pending input from stdin, which nobody read. |
| 912 | 912 | ||
diff --git a/src/ChangeLog b/src/ChangeLog index 49014c340dc..8383cf17b03 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2012-07-12 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | |||
| 4 | * process.c (init_process_emacs): Rename from init_process. | ||
| 5 | The old name is also the name of a Mach system call. | ||
| 6 | * lisp.h, emacs.c: Update for this name change. | ||
| 7 | * nsgui.h, sysselect.h, s/darwin.h: Remove workaround that is no | ||
| 8 | longer needed. | ||
| 9 | |||
| 1 | 2012-07-12 Eli Zaretskii <eliz@gnu.org> | 10 | 2012-07-12 Eli Zaretskii <eliz@gnu.org> |
| 2 | 11 | ||
| 3 | * xdisp.c (insert_left_trunc_glyphs): Fix incorrect size in | 12 | * xdisp.c (insert_left_trunc_glyphs): Fix incorrect size in |
diff --git a/src/emacs.c b/src/emacs.c index 2194cfead16..db01b13c32d 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1597,8 +1597,8 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem | |||
| 1597 | 1597 | ||
| 1598 | init_charset (); | 1598 | init_charset (); |
| 1599 | 1599 | ||
| 1600 | init_editfns (); /* init_process uses Voperating_system_release. */ | 1600 | init_editfns (); /* init_process_emacs uses Voperating_system_release. */ |
| 1601 | init_process (); /* init_display uses add_keyboard_wait_descriptor. */ | 1601 | init_process_emacs (); /* init_display uses add_keyboard_wait_descriptor. */ |
| 1602 | init_keyboard (); /* This too must precede init_sys_modes. */ | 1602 | init_keyboard (); /* This too must precede init_sys_modes. */ |
| 1603 | if (!noninteractive) | 1603 | if (!noninteractive) |
| 1604 | init_display (); /* Determine terminal type. Calls init_sys_modes. */ | 1604 | init_display (); /* Determine terminal type. Calls init_sys_modes. */ |
diff --git a/src/lisp.h b/src/lisp.h index e01f21e84d8..529feb99fd5 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -3060,7 +3060,7 @@ extern void add_gpm_wait_descriptor (int); | |||
| 3060 | extern void delete_gpm_wait_descriptor (int); | 3060 | extern void delete_gpm_wait_descriptor (int); |
| 3061 | #endif | 3061 | #endif |
| 3062 | extern void close_process_descs (void); | 3062 | extern void close_process_descs (void); |
| 3063 | extern void init_process (void); | 3063 | extern void init_process_emacs (void); |
| 3064 | extern void syms_of_process (void); | 3064 | extern void syms_of_process (void); |
| 3065 | extern void setup_process_coding_systems (Lisp_Object); | 3065 | extern void setup_process_coding_systems (Lisp_Object); |
| 3066 | 3066 | ||
diff --git a/src/nsgui.h b/src/nsgui.h index 0c9a8a01e69..60c38b221fb 100644 --- a/src/nsgui.h +++ b/src/nsgui.h | |||
| @@ -27,7 +27,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 27 | #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." | 27 | #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." |
| 28 | #endif /* Z */ | 28 | #endif /* Z */ |
| 29 | #define Cursor FooFoo | 29 | #define Cursor FooFoo |
| 30 | #undef init_process | ||
| 31 | #endif /* NS_IMPL_COCOA */ | 30 | #endif /* NS_IMPL_COCOA */ |
| 32 | 31 | ||
| 33 | #undef verify | 32 | #undef verify |
| @@ -36,7 +35,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 36 | 35 | ||
| 37 | #ifdef NS_IMPL_COCOA | 36 | #ifdef NS_IMPL_COCOA |
| 38 | #undef Cursor | 37 | #undef Cursor |
| 39 | #define init_process emacs_init_process | ||
| 40 | #endif /* NS_IMPL_COCOA */ | 38 | #endif /* NS_IMPL_COCOA */ |
| 41 | #import <Foundation/NSDistantObject.h> | 39 | #import <Foundation/NSDistantObject.h> |
| 42 | 40 | ||
diff --git a/src/process.c b/src/process.c index 98a47eca7ae..44f8520745d 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -7298,8 +7298,10 @@ integer or floating point values. | |||
| 7298 | } | 7298 | } |
| 7299 | 7299 | ||
| 7300 | 7300 | ||
| 7301 | /* This is not called "init_process" because that is the name of a | ||
| 7302 | Mach system call, so it would cause problems on Darwin systems. */ | ||
| 7301 | void | 7303 | void |
| 7302 | init_process (void) | 7304 | init_process_emacs (void) |
| 7303 | { | 7305 | { |
| 7304 | #ifdef subprocesses | 7306 | #ifdef subprocesses |
| 7305 | register int i; | 7307 | register int i; |
diff --git a/src/s/darwin.h b/src/s/darwin.h index c853f9d94f0..48f6f583d1e 100644 --- a/src/s/darwin.h +++ b/src/s/darwin.h | |||
| @@ -34,10 +34,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 34 | for process-connection-type dependent on the kernel version. */ | 34 | for process-connection-type dependent on the kernel version. */ |
| 35 | #define MIN_PTY_KERNEL_VERSION '7' | 35 | #define MIN_PTY_KERNEL_VERSION '7' |
| 36 | 36 | ||
| 37 | /* Avoid the use of the name init_process (process.c) because it is | ||
| 38 | also the name of a Mach system call. */ | ||
| 39 | #define init_process emacs_init_process | ||
| 40 | |||
| 41 | /* Definitions for how to compile & link. */ | 37 | /* Definitions for how to compile & link. */ |
| 42 | #ifdef HAVE_NS | 38 | #ifdef HAVE_NS |
| 43 | #define SYSTEM_PURESIZE_EXTRA 200000 | 39 | #define SYSTEM_PURESIZE_EXTRA 200000 |
diff --git a/src/sysselect.h b/src/sysselect.h index 2dbbede2bff..24bdf469ced 100644 --- a/src/sysselect.h +++ b/src/sysselect.h | |||
| @@ -16,15 +16,9 @@ GNU General Public License for more details. | |||
| 16 | You should have received a copy of the GNU General Public License | 16 | You should have received a copy of the GNU General Public License |
| 17 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 17 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 18 | 18 | ||
| 19 | #if defined (DARWIN_OS) | ||
| 20 | #undef init_process | ||
| 21 | #endif | ||
| 22 | #ifndef DOS_NT | 19 | #ifndef DOS_NT |
| 23 | #include <sys/select.h> | 20 | #include <sys/select.h> |
| 24 | #endif | 21 | #endif |
| 25 | #if defined (DARWIN_OS) | ||
| 26 | #define init_process emacs_init_process | ||
| 27 | #endif | ||
| 28 | 22 | ||
| 29 | /* The w32 build defines select stuff in w32.h, which is included | 23 | /* The w32 build defines select stuff in w32.h, which is included |
| 30 | where w32 needs it, but not where sysselect.h is included. The w32 | 24 | where w32 needs it, but not where sysselect.h is included. The w32 |