diff src/callproc.c @ 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 dd2e31cbf205
children 7f66b40a0192
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