add offsets, new fields
[unix-history] / usr / src / usr.bin / ex / ex_argv.h
index 4fded2d..23a8eec 100644 (file)
@@ -1,5 +1,11 @@
-/* Copyright (c) 1981 Regents of the University of California */
-/* sccs id:    @(#)ex_argv.h   7.1     %G%  */
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ *
+ *     @(#)ex_argv.h   7.3 (Berkeley) %G%
+ */
+
 /*
  * The current implementation of the argument list is poor,
  * using an argv even for internally done "next" commands.
 /*
  * The current implementation of the argument list is poor,
  * using an argv even for internally done "next" commands.
  * space.  The statically allocated glob structure could be replaced
  * by a dynamically allocated argument area space.
  */
  * space.  The statically allocated glob structure could be replaced
  * by a dynamically allocated argument area space.
  */
-extern char    **argv;
-extern char    **argv0;
-extern char    *args;
-extern char    *args0;
-extern short   argc;
-extern short   argc0;
-extern short   morargc;                /* Used with "More files to edit..." */
+var char       **argv;
+var char       **argv0;
+var char       *args;
+var char       *args0;
+var short      argc;
+var short      argc0;
+var short      morargc;                /* Used with "More files to edit..." */
 
 
-extern int     firstln;                /* From +lineno */
-extern char    *firstpat;              /* From +/pat   */
+var int        firstln;                /* From +lineno */
+var char       *firstpat;              /* From +/pat   */
 
 /* Yech... */
 struct glob {
 
 /* Yech... */
 struct glob {
@@ -25,4 +31,4 @@ struct        glob {
        char    *argv[NARGS + 1];       /* WHAT A WASTE! */
        char    argspac[NCARGS + sizeof (int)];
 };
        char    *argv[NARGS + 1];       /* WHAT A WASTE! */
        char    argspac[NCARGS + sizeof (int)];
 };
-extern struct  glob frob;
+var struct     glob frob;