changeset 1912:f0d4fb2b9157

* 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.
author Jim Blandy <jimb@redhat.com>
date Mon, 22 Feb 1993 14:24:42 +0000
parents d9fc49956cd8
children 674578464a59
files src/callproc.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Mon Feb 22 14:23:26 1993 +0000
+++ b/src/callproc.c	Mon Feb 22 14:24:42 1993 +0000
@@ -334,7 +334,7 @@
 }
 #endif
 
-static void
+static Lisp_Object
 delete_temp_file (name)
      Lisp_Object name;
 {
@@ -572,7 +572,6 @@
 init_callproc ()
 {
   register char * sh;
-  register char **envp;
   Lisp_Object tempdir;
 
   {
@@ -611,6 +610,11 @@
   sh = (char *) getenv ("SHELL");
   Vshell_file_name = build_string (sh ? sh : "/bin/sh");
 #endif
+}
+
+set_process_environment ()
+{
+  register char **envp;
 
   Vprocess_environment = Qnil;
 #ifndef CANNOT_DUMP