aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs.c
diff options
context:
space:
mode:
authorRichard M. Stallman1994-06-13 20:41:00 +0000
committerRichard M. Stallman1994-06-13 20:41:00 +0000
commite29f86e4e8f603b1d53aa2a054d2a0eefaea0209 (patch)
treedaf900c451f88401064193c8568afa4e4f4559df /src/emacs.c
parenta69a8ca2f925a0b093d59888a290341fe76eb927 (diff)
downloademacs-e29f86e4e8f603b1d53aa2a054d2a0eefaea0209.tar.gz
emacs-e29f86e4e8f603b1d53aa2a054d2a0eefaea0209.zip
(init_cmdargs): Set up initial_argv, initial_argc.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c7
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;
128 but nothing terrible happens if user sets this one. */ 128 but nothing terrible happens if user sets this one. */
129 129
130int noninteractive1; 130int noninteractive1;
131
132/* Save argv and argc. */
133char **initial_argv;
134int initial_argc;
131 135
132/* Signal code for the fatal signal that was received */ 136/* Signal code for the fatal signal that was received */
133int fatal_error_code; 137int fatal_error_code;
@@ -192,6 +196,9 @@ init_cmdargs (argc, argv, skip_args)
192 register int i; 196 register int i;
193 Lisp_Object name, dir; 197 Lisp_Object name, dir;
194 198
199 initial_argv = argv;
200 initial_argc = argc;
201
195 Vinvocation_name = Ffile_name_nondirectory (build_string (argv[0])); 202 Vinvocation_name = Ffile_name_nondirectory (build_string (argv[0]));
196 Vinvocation_directory = Ffile_name_directory (build_string (argv[0])); 203 Vinvocation_directory = Ffile_name_directory (build_string (argv[0]));
197 /* If we got no directory in argv[0], search PATH to find where 204 /* If we got no directory in argv[0], search PATH to find where