]> git.eshelyaron.com Git - emacs.git/commitdiff
(init_cmdargs): Set up initial_argv, initial_argc.
authorRichard M. Stallman <rms@gnu.org>
Mon, 13 Jun 1994 20:41:00 +0000 (20:41 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 13 Jun 1994 20:41:00 +0000 (20:41 +0000)
src/emacs.c

index 04f45a3a8668226cb928f60cdf8be93dace63253..b93d9212ad5b51c9c69760a5083ed7a3206bc8f9 100644 (file)
@@ -128,6 +128,10 @@ int noninteractive;
    but nothing terrible happens if user sets this one.  */
 
 int noninteractive1;
+
+/* Save argv and argc.  */
+char **initial_argv;
+int initial_argc;
 \f
 /* Signal code for the fatal signal that was received */
 int fatal_error_code;
@@ -192,6 +196,9 @@ init_cmdargs (argc, argv, skip_args)
   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