4.4BSD snapshot (revision 8.1)
[unix-history] / usr / src / usr.bin / ex / ex_argv.h
CommitLineData
2791ff57 1/*-
799abc32
KB
2 * Copyright (c) 1980, 1993
3 * The Regents of the University of California. All rights reserved.
2791ff57
KB
4 *
5 * %sccs.include.proprietary.c%
edf71f48 6 *
799abc32 7 * @(#)ex_argv.h 8.1 (Berkeley) %G%
edf71f48
DF
8 */
9
ba91b69a
MH
10/*
11 * The current implementation of the argument list is poor,
12 * using an argv even for internally done "next" commands.
13 * It is not hard to see that this is restrictive and a waste of
14 * space. The statically allocated glob structure could be replaced
15 * by a dynamically allocated argument area space.
16 */
cb3ac212
MH
17var char **argv;
18var char **argv0;
19var char *args;
20var char *args0;
21var short argc;
22var short argc0;
23var short morargc; /* Used with "More files to edit..." */
ba91b69a 24
cb3ac212
MH
25var int firstln; /* From +lineno */
26var char *firstpat; /* From +/pat */
ba91b69a
MH
27
28/* Yech... */
29struct glob {
30 short argc; /* Index of current file in argv */
31 short argc0; /* Number of arguments in argv */
32 char *argv[NARGS + 1]; /* WHAT A WASTE! */
33 char argspac[NCARGS + sizeof (int)];
299f2784 34};
cb3ac212 35var struct glob frob;