BSD 4_3_Tahoe development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Mon, 21 Dec 1987 05:27:52 +0000 (21:27 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Mon, 21 Dec 1987 05:27:52 +0000 (21:27 -0800)
Work on file usr/src/bin/sed/sed.h

Synthesized-from: CSRG/cd2/4.3tahoe

usr/src/bin/sed/sed.h [new file with mode: 0644]

diff --git a/usr/src/bin/sed/sed.h b/usr/src/bin/sed/sed.h
new file mode 100644 (file)
index 0000000..808432e
--- /dev/null
@@ -0,0 +1,154 @@
+/*     sed.h   4.3     87/12/21        */
+
+/*
+ * sed -- stream  editor
+ */
+
+#define CBRA   1
+#define        CCHR    2
+#define        CDOT    4
+#define        CCL     6
+#define        CNL     8
+#define        CDOL    10
+#define        CEOF    11
+#define CKET   12
+#define CNULL  13
+#define CLNUM  14
+#define CEND   16
+#define CDONT  17
+#define        CBACK   18
+
+#define        STAR    01
+
+#define NLINES 256
+#define        DEPTH   20
+#define PTRSIZE        200
+#define RESIZE 10000
+#define        ABUFSIZE        20
+#define        LBSIZE  4000
+#define        ESIZE   256
+#define        LABSIZE 50
+#define NBRA   9
+
+FILE   *fin;
+struct reptr   *abuf[ABUFSIZE];
+struct reptr **aptr;
+char   *lastre;
+char   ibuf[BUFSIZ];
+char   *cbp;
+char   *ebp;
+char   genbuf[LBSIZE];
+char   *loc1;
+char   *loc2;
+char   *locs;
+char   seof;
+char   *reend;
+char   *lbend;
+char   *hend;
+char   *lcomend;
+struct reptr   *ptrend;
+int    eflag;
+int    dolflag;
+int    sflag;
+int    jflag;
+int    numbra;
+int    delflag;
+long   lnum;
+char   linebuf[LBSIZE+1];
+char   holdsp[LBSIZE+1];
+char   *spend;
+char   *hspend;
+int    nflag;
+int    gflag;
+char   *braelist[NBRA];
+char   *braslist[NBRA];
+long   tlno[NLINES];
+int    nlno;
+char   *fname[12];
+FILE   *fcode[12];
+int    nfiles;
+
+#define ACOM   01
+#define BCOM   020
+#define CCOM   02
+#define        CDCOM   025
+#define        CNCOM   022
+#define COCOM  017
+#define        CPCOM   023
+#define DCOM   03
+#define ECOM   015
+#define EQCOM  013
+#define FCOM   016
+#define GCOM   027
+#define CGCOM  030
+#define HCOM   031
+#define CHCOM  032
+#define ICOM   04
+#define LCOM   05
+#define NCOM   012
+#define PCOM   010
+#define QCOM   011
+#define RCOM   06
+#define SCOM   07
+#define TCOM   021
+#define WCOM   014
+#define        CWCOM   024
+#define        YCOM    026
+#define XCOM   033
+
+char   *cp;
+char   *reend;
+char   *lbend;
+
+struct reptr {
+       char    *ad1;
+       char    *ad2;
+       union {
+               char    *real_re1;
+               struct reptr    *real_lb1;
+       } re_lb;
+#define        re1     re_lb.real_re1
+#define        lb1     re_lb.real_lb1
+       char    *rhs;
+       FILE    *fcode;
+       char    command;
+       char    gfl;
+       char    pfl;
+       char    inar;
+       char    negfl;
+} ptrspace[PTRSIZE], *rep;
+
+
+char   respace[RESIZE];
+
+struct label {
+       char    asc[9];
+       struct reptr    *chain;
+       struct reptr    *address;
+} ltab[LABSIZE];
+
+struct label   *lab;
+struct label   *labend;
+
+int    f;
+int    depth;
+
+int    eargc;
+char   **eargv;
+
+extern char    bittab[];
+
+struct reptr   **cmpend[DEPTH];
+int    depth;
+struct reptr   *pending;
+char   *badp;
+char   bad;
+char   *compile();
+char   *ycomp();
+char   *address();
+char   *text();
+char   *compsub();
+struct label   *search();
+char   *gline();
+char   *place();
+char   compfl;