handle multiple uba's
[unix-history] / usr / src / usr.bin / ex / ex_temp.h
index e101ff6..935c425 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (c) 1981 Regents of the University of California */
 /* Copyright (c) 1981 Regents of the University of California */
-/* sccs id:    @(#)ex_temp.h   7.1     %G%  */
+/* sccs id:    @(#)ex_temp.h   7.3     %G%  */
 /*
  * The editor uses a temporary file for files being edited, in a structure
  * similar to that of ed.  The first block of the file is used for a header
 /*
  * The editor uses a temporary file for files being edited, in a structure
  * similar to that of ed.  The first block of the file is used for a header
  * spends (spent) roughly 30% of its time in the system read routine,
  * this can be a big help.
  */
  * spends (spent) roughly 30% of its time in the system read routine,
  * this can be a big help.
  */
-extern bool    hitin2;         /* Last read hit was ibuff2 not ibuff */
-extern bool    ichang2;        /* Have actually changed ibuff2 */
-extern bool    ichanged;       /* Have actually changed ibuff */
-extern short   iblock;         /* Temp file block number of ibuff (or -1) */
-extern short   iblock2;        /* Temp file block number of ibuff2 (or -1) */
-extern short   ninbuf;         /* Number useful chars left in input buffer */
-extern short   nleft;          /* Number usable chars left in output buffer */
-extern short   oblock;         /* Temp file block number of obuff (or -1) */
+var bool       hitin2;         /* Last read hit was ibuff2 not ibuff */
+var bool       ichang2;        /* Have actually changed ibuff2 */
+var bool       ichanged;       /* Have actually changed ibuff */
+var short      iblock;         /* Temp file block number of ibuff (or -1) */
+var short      iblock2;        /* Temp file block number of ibuff2 (or -1) */
+var short      ninbuf;         /* Number useful chars left in input buffer */
+var short      nleft;          /* Number usable chars left in output buffer */
+var short      oblock;         /* Temp file block number of obuff (or -1) */
 #ifndef VMUNIX
 #ifndef VMUNIX
-extern short   tline;          /* Current temp file ptr */
+var short      tline;          /* Current temp file ptr */
 #else
 #else
-extern int     tline;
+var int        tline;
 #endif
 
 #endif
 
-extern char    ibuff[BUFSIZ];
-extern char    ibuff2[BUFSIZ];
-extern char    obuff[BUFSIZ];
+var char       ibuff[BUFSIZ];
+var char       ibuff2[BUFSIZ];
+var char       obuff[BUFSIZ];
 
 /*
  * Structure of the descriptor block which resides
 
 /*
  * Structure of the descriptor block which resides
@@ -99,7 +99,7 @@ extern char   obuff[BUFSIZ];
 /* This definition also appears in expreserve.c... beware */
 struct         header {
        time_t  Time;                   /* Time temp file last updated */
 /* This definition also appears in expreserve.c... beware */
 struct         header {
        time_t  Time;                   /* Time temp file last updated */
-       short   Uid;
+       int     Uid;
 #ifndef VMUNIX
        short   Flines;                 /* Number of lines in file */
 #else
 #ifndef VMUNIX
        short   Flines;                 /* Number of lines in file */
 #else
@@ -108,7 +108,7 @@ struct      header {
        char    Savedfile[FNSIZE];      /* The current file name */
        short   Blocks[LBLKS];          /* Blocks where line pointers stashed */
 }; 
        char    Savedfile[FNSIZE];      /* The current file name */
        short   Blocks[LBLKS];          /* Blocks where line pointers stashed */
 }; 
-extern struct  header H;
+var struct     header H;
 
 #define        uid             H.Uid
 #define        flines          H.Flines
 
 #define        uid             H.Uid
 #define        flines          H.Flines