diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-06-13 20:41:00 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-06-13 20:41:00 +0000 |
commit | e29f86e4e8f603b1d53aa2a054d2a0eefaea0209 (patch) | |
tree | daf900c451f88401064193c8568afa4e4f4559df /src/emacs.c | |
parent | a69a8ca2f925a0b093d59888a290341fe76eb927 (diff) | |
download | emacs-e29f86e4e8f603b1d53aa2a054d2a0eefaea0209.tar.gz |
(init_cmdargs): Set up initial_argv, initial_argc.
Diffstat (limited to 'src/emacs.c')
-rw-r--r-- | src/emacs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c index 04f45a3a866..b93d9212ad5 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -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 |