diff options
author | Geoff Voelker <[email protected]> | 1995-11-07 07:16:44 +0000 |
---|---|---|
committer | Geoff Voelker <[email protected]> | 1995-11-07 07:16:44 +0000 |
commit | 8ba50e1ad034085ea4d48a659eb7381e032b44d8 (patch) | |
tree | 60970c8d294c8b5c89ec4f35d6be3e3cfa0716cc /src/emacs.c | |
parent | fd2e066a8654cbf5527224894f27d84b20f5ce5a (diff) |
[HAVE_NTGUI]: Declare Vwindow_system.
[HAVE_NTGUI] (main): Enable inhibit_window_system.
Initialize environment from registry.
Declare syms of Win32 windowing modules.
Use HAVE_WINDOW_SYSTEM instead of testing for specific window systems.
Diffstat (limited to 'src/emacs.c')
-rw-r--r-- | src/emacs.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/emacs.c b/src/emacs.c index f0741f53ca..51dcdd10b6 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -110,9 +110,9 @@ int display_arg; Tells GC how to save a copy of the stack. */ char *stack_bottom; -#ifdef HAVE_X_WINDOWS +#ifdef HAVE_WINDOW_SYSTEM extern Lisp_Object Vwindow_system; -#endif /* HAVE_X_WINDOWS */ +#endif /* HAVE_WINDOW_SYSTEM */ extern Lisp_Object Vauto_save_list_file_name; @@ -556,7 +556,7 @@ main (argc, argv, envp) exit (1); } fprintf (stderr, "Using %s\n", term); -#ifdef HAVE_X_WINDOWS +#ifdef HAVE_WINDOW_SYSTEM inhibit_window_system = 1; /* -t => -nw */ #endif } @@ -750,6 +750,11 @@ Usage: %s [-t term] [--terminal term] [-nw] [--no-windows] [--batch]\n\ else init_gettimeofday (); #endif +#ifdef WINDOWSNT + /* Initialize environment from registry settings. */ + init_environment (); +#endif + /* egetenv is a pretty low-level facility, which may get called in many circumstances; it seems flimsy to put off initializing it until calling init_callproc. */ @@ -866,6 +871,14 @@ Usage: %s [-t term] [--terminal term] [-nw] [--no-windows] [--batch]\n\ syms_of_xmenu (); #endif +#ifdef HAVE_NTGUI + syms_of_win32term (); + syms_of_win32fns (); + syms_of_win32faces (); + syms_of_win32select (); + syms_of_win32menu (); +#endif /* HAVE_NTGUI */ + #ifdef SYMS_SYSTEM SYMS_SYSTEM; #endif |