date and time created 80/07/31 23:00:05 by mark
authorMark Horton <mark@ucbvax.Berkeley.EDU>
Fri, 1 Aug 1980 14:00:05 +0000 (06:00 -0800)
committerMark Horton <mark@ucbvax.Berkeley.EDU>
Fri, 1 Aug 1980 14:00:05 +0000 (06:00 -0800)
SCCS-vsn: usr.bin/ex/ex_argv.h 1.1

usr/src/usr.bin/ex/ex_argv.h [new file with mode: 0644]

diff --git a/usr/src/usr.bin/ex/ex_argv.h b/usr/src/usr.bin/ex/ex_argv.h
new file mode 100644 (file)
index 0000000..7ce9dba
--- /dev/null
@@ -0,0 +1,26 @@
+/* Copyright (c) 1979 Regents of the University of California */
+/*
+ * The current implementation of the argument list is poor,
+ * using an argv even for internally done "next" commands.
+ * It is not hard to see that this is restrictive and a waste of
+ * space.  The statically allocated glob structure could be replaced
+ * by a dynamically allocated argument area space.
+ */
+char   **argv;
+char   **argv0;
+char   *args;
+char   *args0;
+short  argc;
+short  argc0;
+short  morargc;                /* Used with "More files to edit..." */
+
+short  firstln;                /* From +lineno */
+char   *firstpat;              /* From +/pat   */
+
+/* Yech... */
+struct glob {
+       short   argc;                   /* Index of current file in argv */
+       short   argc0;                  /* Number of arguments in argv */
+       char    *argv[NARGS + 1];       /* WHAT A WASTE! */
+       char    argspac[NCARGS + sizeof (int)];
+} frob;