home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Distributions / ucb / spencer_2bsd.tar.gz / 2bsd.tar / src / ex / ex_argv.h < prev    next >
C/C++ Source or Header  |  1980-02-17  |  765b  |  26 lines

  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.  */
  9. char    **argv;
  10. char    **argv0;
  11. char    *args;
  12. char    *args0;
  13. short    argc;
  14. short    argc0;
  15. short    morargc;        /* Used with "More files to edit..." */
  16.  
  17. short    firstln;        /* From +lineno */
  18.  
  19. /* Yech... */
  20. struct    glob {
  21.     short    argc;            /* Index of current file in argv */
  22.     short    argc0;            /* Number of arguments in argv */
  23.     char    *argv[NARGS + 1];    /* WHAT A WASTE! */
  24.     char    argspac[NCARGS + sizeof (int)];
  25. } frob;
  26.