Commit e29f86e4 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(init_cmdargs): Set up initial_argv, initial_argc.

parent a69a8ca2
......@@ -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;
/* 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment