1: /*	sed.h	4.1	85/04/05	*/
   2: 
   3: /*
   4:  * sed -- stream  editor
   5:  */
   6: 
   7: #define CBRA    1
   8: #define CCHR    2
   9: #define CDOT    4
  10: #define CCL 6
  11: #define CNL 8
  12: #define CDOL    10
  13: #define CEOF    11
  14: #define CKET    12
  15: #define CNULL   13
  16: #define CLNUM   14
  17: #define CEND    16
  18: #define CDONT   17
  19: #define CBACK   18
  20: 
  21: #define STAR    01
  22: 
  23: #define NLINES  256
  24: #define DEPTH   20
  25: #define PTRSIZE 200
  26: #define RESIZE  10000
  27: #define ABUFSIZE    20
  28: #define LBSIZE  4000
  29: #define ESIZE   256
  30: #define LABSIZE 50
  31: #define NBRA    9
  32: 
  33: FILE    *fin;
  34: union reptr *abuf[ABUFSIZE];
  35: union reptr **aptr;
  36: char    *lastre;
  37: char    ibuf[BUFSIZ];
  38: char    *cbp;
  39: char    *ebp;
  40: char    genbuf[LBSIZE];
  41: char    *loc1;
  42: char    *loc2;
  43: char    *locs;
  44: char    seof;
  45: char    *reend;
  46: char    *lbend;
  47: char    *hend;
  48: char    *lcomend;
  49: union reptr *ptrend;
  50: int eflag;
  51: int dolflag;
  52: int sflag;
  53: int jflag;
  54: int numbra;
  55: int delflag;
  56: long    lnum;
  57: char    linebuf[LBSIZE+1];
  58: char    holdsp[LBSIZE+1];
  59: char    *spend;
  60: char    *hspend;
  61: int nflag;
  62: int gflag;
  63: char    *braelist[NBRA];
  64: char    *braslist[NBRA];
  65: long    tlno[NLINES];
  66: int nlno;
  67: char    fname[12][40];
  68: FILE    *fcode[12];
  69: int nfiles;
  70: 
  71: #define ACOM    01
  72: #define BCOM    020
  73: #define CCOM    02
  74: #define CDCOM   025
  75: #define CNCOM   022
  76: #define COCOM   017
  77: #define CPCOM   023
  78: #define DCOM    03
  79: #define ECOM    015
  80: #define EQCOM   013
  81: #define FCOM    016
  82: #define GCOM    027
  83: #define CGCOM   030
  84: #define HCOM    031
  85: #define CHCOM   032
  86: #define ICOM    04
  87: #define LCOM    05
  88: #define NCOM    012
  89: #define PCOM    010
  90: #define QCOM    011
  91: #define RCOM    06
  92: #define SCOM    07
  93: #define TCOM    021
  94: #define WCOM    014
  95: #define CWCOM   024
  96: #define YCOM    026
  97: #define XCOM    033
  98: 
  99: char    *cp;
 100: char    *reend;
 101: char    *lbend;
 102: 
 103: union   reptr {
 104:     struct reptr1 {
 105:         char    *ad1;
 106:         char    *ad2;
 107:         char    *re1;
 108:         char    *rhs;
 109:         FILE    *fcode;
 110:         char    command;
 111:         char    gfl;
 112:         char    pfl;
 113:         char    inar;
 114:         char    negfl;
 115:     } A;
 116:     struct reptr2 {
 117:         char    *ad1;
 118:         char    *ad2;
 119:         union reptr *lb1;
 120:         char    *rhs;
 121:         FILE    *fcode;
 122:         char    command;
 123:         char    gfl;
 124:         char    pfl;
 125:         char    inar;
 126:         char    negfl;
 127:     } B;
 128: } ptrspace[PTRSIZE], *rep;
 129: 
 130: 
 131: char    respace[RESIZE];
 132: 
 133: struct label {
 134:     char    asc[9];
 135:     union reptr *chain;
 136:     union reptr *address;
 137: } ltab[LABSIZE];
 138: 
 139: struct label    *lab;
 140: struct label    *labend;
 141: 
 142: int f;
 143: int depth;
 144: 
 145: int eargc;
 146: char    **eargv;
 147: 
 148: extern  char    bittab[];
 149: 
 150: union reptr **cmpend[DEPTH];
 151: int depth;
 152: union reptr *pending;
 153: char    *badp;
 154: char    bad;
 155: char    *compile();
 156: char    *ycomp();
 157: char    *address();
 158: char    *text();
 159: char    *compsub();
 160: struct label    *search();
 161: char    *gline();
 162: char    *place();
 163: char    compfl;

Defined variables

abuf defined in line 34; used 9 times
aptr defined in line 35; used 18 times
bad defined in line 154; used 1 times
badp defined in line 153; used 23 times
braelist defined in line 63; used 4 times
braslist defined in line 64; used 5 times
cbp defined in line 38; used 3 times
cmpend defined in line 150; used 2 times
compfl defined in line 163; used 2 times
cp defined in line 99; used 74 times
delflag defined in line 55; used 8 times
depth defined in line 151; used 5 times
dolflag defined in line 51; used 3 times
eargc defined in line 145; used 10 times
eargv defined in line 146; used 10 times
ebp defined in line 39; used 5 times
eflag defined in line 50; used 7 times
f defined in line 142; used 6 times
fname defined in line 67; used 10 times
genbuf defined in line 40; used 19 times
gflag defined in line 62; used 2 times
hend defined in line 47; used 2 times
holdsp defined in line 58; used 7 times
hspend defined in line 60; used 6 times
ibuf defined in line 37; used 8 times
jflag defined in line 53; used 5 times
lab defined in line 139; used 14 times
labend defined in line 140; used 3 times
lastre defined in line 36; used 2 times
lbend defined in line 101; used 3 times
lcomend defined in line 48; used 4 times
linebuf defined in line 57; used 63 times
lnum defined in line 56; used 8 times
loc1 defined in line 41; used 5 times
loc2 defined in line 42; used 6 times
locs defined in line 43; used 3 times
ltab defined in line 137; used 1 times
nfiles defined in line 69; used 15 times
nflag defined in line 61; used 5 times
nlno defined in line 66; used 3 times
numbra defined in line 54; used 5 times
pending defined in line 152; used 6 times
ptrend defined in line 49; used 3 times
ptrspace defined in line 128; used 5 times
reend defined in line 100; used 5 times
rep defined in line 128; used 92 times
respace defined in line 131; used 2 times
seof defined in line 44; used 11 times
sflag defined in line 52; used 3 times
spend defined in line 59; used 18 times
tlno defined in line 65; used 4 times

Defined struct's

label defined in line 133; used 18 times
reptr1 defined in line 104; never used
reptr2 defined in line 116; never used

Defined union's

reptr defined in line 103; used 23 times

Defined macros

ABUFSIZE defined in line 27; used 3 times
ACOM defined in line 71; used 2 times
BCOM defined in line 72; used 2 times
CBACK defined in line 19; used 3 times
CBRA defined in line 7; used 1 times
CCHR defined in line 8; used 5 times
CCL defined in line 10; used 2 times
CCOM defined in line 73; used 1 times
CDCOM defined in line 74; used 1 times
CDOL defined in line 12; used 1 times
CDONT defined in line 18; never used
CDOT defined in line 9; used 2 times
CEND defined in line 17; used 3 times
CEOF defined in line 13; used 3 times
CGCOM defined in line 83; used 1 times
CHCOM defined in line 85; used 1 times
CKET defined in line 14; used 2 times
CLNUM defined in line 16; used 3 times
CNCOM defined in line 75; used 1 times
CNL defined in line 11; never used
CNULL defined in line 15; never used
COCOM defined in line 76; never used
CPCOM defined in line 77; used 1 times
CWCOM defined in line 95; never used
DCOM defined in line 78; used 1 times
DEPTH defined in line 24; used 1 times
ECOM defined in line 79; never used
EQCOM defined in line 80; used 1 times
ESIZE defined in line 29; used 2 times
FCOM defined in line 81; never used
GCOM defined in line 82; used 1 times
HCOM defined in line 84; used 1 times
ICOM defined in line 86; used 1 times
LABSIZE defined in line 30; used 2 times
LBSIZE defined in line 28; used 8 times
LCOM defined in line 87; used 1 times
NBRA defined in line 31; used 5 times
NCOM defined in line 88; used 1 times
NLINES defined in line 23; used 2 times
PCOM defined in line 89; used 1 times
PTRSIZE defined in line 25; used 2 times
QCOM defined in line 90; used 1 times
RCOM defined in line 91; used 1 times
RESIZE defined in line 26; used 2 times
SCOM defined in line 92; used 1 times
STAR defined in line 21; used 1 times
TCOM defined in line 93; used 1 times
WCOM defined in line 94; used 1 times
XCOM defined in line 97; used 1 times
YCOM defined in line 96; used 1 times

Usage of this include

Last modified: 1987-02-08
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 3843
Valid CSS Valid XHTML 1.0 Strict