1 /*- 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.proprietary.c% 6 * 7 * @(#)ex_argv.h 8.1 (Berkeley) 06/09/93 8 */ 9 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 */ 17 var char **argv; 18 var char **argv0; 19 var char *args; 20 var char *args0; 21 var short argc; 22 var short argc0; 23 var short morargc; /* Used with "More files to edit..." */ 24 25 var int firstln; /* From +lineno */ 26 var char *firstpat; /* From +/pat */ 27 28 /* Yech... */ 29 struct 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)]; 34 }; 35 var struct glob frob; 36