mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-28 08:11:05 -08:00
(init_cmdargs): Set up initial_argv, initial_argc.
This commit is contained in:
parent
a69a8ca2f9
commit
e29f86e4e8
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue