Annotation of 41BSD/cmd/ex/ex_argv.h, revision 1.1.1.1

1.1       root        1: /* Copyright (c) 1980 Regents of the University of California */
                      2: /* sccs id:    @(#)ex_argv.h   6.1 10/18/80  */
                      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:  */
                     10: char   **argv;
                     11: char   **argv0;
                     12: char   *args;
                     13: char   *args0;
                     14: short  argc;
                     15: short  argc0;
                     16: short  morargc;                /* Used with "More files to edit..." */
                     17: 
                     18: int    firstln;                /* From +lineno */
                     19: char   *firstpat;              /* From +/pat   */
                     20: 
                     21: /* Yech... */
                     22: struct 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)];
                     27: } frob;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.