diff options
| author | Jim Blandy | 1993-02-22 14:24:42 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-02-22 14:24:42 +0000 |
| commit | 9fefd2bacbcd23bc1e62c276d96319772af32c71 (patch) | |
| tree | 520675213de311f20f7929995bd9c3a5709e5438 | |
| parent | f054132a4d5faba5d7a5199a28cdf25eeb0127e6 (diff) | |
| download | emacs-9fefd2bacbcd23bc1e62c276d96319772af32c71.tar.gz emacs-9fefd2bacbcd23bc1e62c276d96319772af32c71.zip | |
* callproc.c (delete_temp_file): Declare this to return
Lisp_Object, to smooth type-checking.
* callproc.c (init_callproc): Move the initialization of
Vprocess_environment to its own function.
(set_process_environment): This is that.
* emacs.c (main): Call set_process_environment earlier than
init_callproc.
| -rw-r--r-- | src/callproc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/callproc.c b/src/callproc.c index 6278b46022c..383a1d74774 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -334,7 +334,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") | |||
| 334 | } | 334 | } |
| 335 | #endif | 335 | #endif |
| 336 | 336 | ||
| 337 | static void | 337 | static Lisp_Object |
| 338 | delete_temp_file (name) | 338 | delete_temp_file (name) |
| 339 | Lisp_Object name; | 339 | Lisp_Object name; |
| 340 | { | 340 | { |
| @@ -572,7 +572,6 @@ egetenv (var) | |||
| 572 | init_callproc () | 572 | init_callproc () |
| 573 | { | 573 | { |
| 574 | register char * sh; | 574 | register char * sh; |
| 575 | register char **envp; | ||
| 576 | Lisp_Object tempdir; | 575 | Lisp_Object tempdir; |
| 577 | 576 | ||
| 578 | { | 577 | { |
| @@ -611,6 +610,11 @@ init_callproc () | |||
| 611 | sh = (char *) getenv ("SHELL"); | 610 | sh = (char *) getenv ("SHELL"); |
| 612 | Vshell_file_name = build_string (sh ? sh : "/bin/sh"); | 611 | Vshell_file_name = build_string (sh ? sh : "/bin/sh"); |
| 613 | #endif | 612 | #endif |
| 613 | } | ||
| 614 | |||
| 615 | set_process_environment () | ||
| 616 | { | ||
| 617 | register char **envp; | ||
| 614 | 618 | ||
| 615 | Vprocess_environment = Qnil; | 619 | Vprocess_environment = Qnil; |
| 616 | #ifndef CANNOT_DUMP | 620 | #ifndef CANNOT_DUMP |