date and time created 83/02/11 15:44:54 by rrh
[unix-history] / usr / src / usr.bin / ex / ex_argv.h
CommitLineData
299f2784 1/* Copyright (c) 1981 Regents of the University of California */
cb3ac212 2/* sccs id: @(#)ex_argv.h 7.2 %G% */
ba91b69a
MH
3/*
4 * The current implementation of the argument list is poor,
5 * using an argv even for internally done "next" commands.
6 * It is not hard to see that this is restrictive and a waste of
7 * space. The statically allocated glob structure could be replaced
8 * by a dynamically allocated argument area space.
9 */
cb3ac212
MH
10var char **argv;
11var char **argv0;
12var char *args;
13var char *args0;
14var short argc;
15var short argc0;
16var short morargc; /* Used with "More files to edit..." */
ba91b69a 17
cb3ac212
MH
18var int firstln; /* From +lineno */
19var char *firstpat; /* From +/pat */
ba91b69a
MH
20
21/* Yech... */
22struct glob {
23 short argc; /* Index of current file in argv */
24 short argc0; /* Number of arguments in argv */
25 char *argv[NARGS + 1]; /* WHAT A WASTE! */
26 char argspac[NCARGS + sizeof (int)];
299f2784 27};
cb3ac212 28var struct glob frob;