diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2016-12-30 13:01:39 -0800 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-12-30 13:05:25 -0800 |
| commit | 966d51592f07ad9de6afebcd828e667cce0f6a27 (patch) | |
| tree | ae5ee7c99718abec1304682f43b620a1c00ddd06 /src/emacs.c | |
| parent | aef40049e3b81972703d3bde47b0961bcb08d7e1 (diff) | |
| download | emacs-966d51592f07ad9de6afebcd828e667cce0f6a27.tar.gz | |
Rename main_thread to main_thread_id and simplify
* src/emacs-module.c: Include syssignal.h, for main_thread_id.
[HAVE_PTHREAD]: Do not include pthread.h.
(main_thread): Remove. All uses replaced by main_thread_id,
or by dwMainThreadId on NT. Since the HAVE_PTHREAD code is now using
the main_thread_id established by sysdep.c, there is no need for a
separate copy of the main thread ID here.
(module_init): Remove. All uses removed.
* src/sysdep.c (main_thread_id) [HAVE_PTHREAD]:
Rename from main_thread. All uses changed. Now extern.
Diffstat (limited to 'src/emacs.c')
| -rw-r--r-- | src/emacs.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/emacs.c b/src/emacs.c index eff3f9dcb87..d461fe241c0 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -738,8 +738,6 @@ main (int argc, char **argv) non-ASCII file names during startup. */ w32_init_file_name_codepage (); #endif - /* This has to be done before module_init is called below, so that - the latter could use the thread ID of the main thread. */ w32_init_main_thread (); #endif @@ -757,10 +755,6 @@ main (int argc, char **argv) init_standard_fds (); atexit (close_output_streams); -#ifdef HAVE_MODULES - module_init (); -#endif - sort_args (argc, argv); argc = 0; while (argv[argc]) argc++; |
