changeset 7869:3b27d2451f83

(init_cmdargs): Set up initial_argv, initial_argc.
author Richard M. Stallman <rms@gnu.org>
date Mon, 13 Jun 1994 20:41:00 +0000
parents 4951edd1b764
children 537930034e73
files src/emacs.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Mon Jun 13 20:11:10 1994 +0000
+++ b/src/emacs.c	Mon Jun 13 20:41:00 1994 +0000
@@ -128,6 +128,10 @@
    but nothing terrible happens if user sets this one.  */
 
 int noninteractive1;
+
+/* Save argv and argc.  */
+char **initial_argv;
+int initial_argc;
 
 /* Signal code for the fatal signal that was received */
 int fatal_error_code;
@@ -192,6 +196,9 @@
   register int i;
   Lisp_Object name, dir;
 
+  initial_argv = argv;
+  initial_argc = argc;
+
   Vinvocation_name = Ffile_name_nondirectory (build_string (argv[0]));
   Vinvocation_directory = Ffile_name_directory (build_string (argv[0]));
   /* If we got no directory in argv[0], search PATH to find where