BSD 3 development
[unix-history] / usr / src / cmd / ex / ex_argv.h
CommitLineData
27704fe4
BJ
1/* Copyright (c) 1979 Regents of the University of California */
2/*
3 * The current implementation of the argument list is poor,
4 * using an argv even for internally done "next" commands.
5 * It is not hard to see that this is restrictive and a waste of
6 * space. The statically allocated glob structure could be replaced
7 * by a dynamically allocated argument area space.
8 */
9char **argv;
10char **argv0;
11char *args;
12char *args0;
13short argc;
14short argc0;
15short morargc; /* Used with "More files to edit..." */
16
17int firstln; /* From +lineno */
18char *firstpat; /* From +/pat */
19
20/* Yech... */
21struct glob {
22 short argc; /* Index of current file in argv */
23 short argc0; /* Number of arguments in argv */
24 char *argv[NARGS + 1]; /* WHAT A WASTE! */
25 char argspac[NCARGS + sizeof (int)];
26} frob;