1: /* Copyright (c) 1981 Regents of the University of California */
   2: /* sccs id:	@(#)ex_argv.h	7.2	7/26/81  */
   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: var char    **argv;
  11: var char    **argv0;
  12: var char    *args;
  13: var char    *args0;
  14: var short   argc;
  15: var short   argc0;
  16: var short   morargc;        /* Used with "More files to edit..." */
  17: 
  18: var int firstln;        /* From +lineno */
  19: var 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: };
  28: var struct  glob frob;

Defined variables

argc defined in line 14; used 15 times
argc0 defined in line 15; used 15 times
args defined in line 12; used 5 times
argv defined in line 10; used 13 times
firstln defined in line 18; never used
firstpat defined in line 19; used 7 times
frob defined in line 28; used 3 times
morargc defined in line 16; used 3 times

Defined struct's

glob defined in line 22; used 6 times

Usage of this include

Last modified: 1981-07-27
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 698
Valid CSS Valid XHTML 1.0 Strict