# 2.11BSD#431 - /usr/src/bin/sed/sed.h

##### Variables

    abuf              X
    aptr              X
    bad               X
    badp              X
    braelist          X
    braslist          X
    cbp               X
    cmpend            X
    compfl            X
    cp                X
    delflag           X
    depth             X
    dolflag           X
    eargc             X
    eargv             X
    ebp               X
    eflag             X
    f                 X
    fname             X
    genbuf            X
    gflag             X
    hend              X
    holdsp            X
    hspend            X
    ibuf              X
    jflag             X
    lab               X
    labend            X
    lastre            X
    lbend             X
    lcomend           X
    linebuf           X
    lnum              X
    loc1              X
    loc2              X
    locs              X
    ltab              X
    nfiles            X
    nflag             X
    nlno              X
    numbra            X
    pending           X
    ptrend            X
    ptrspace          X
    reend             X
    rep               X
    respace           X
    seof              X
    sflag             X
    spend             X
    tlno              X

##### Macros

    ABUFSIZE          X
    ACOM              X
    BCOM              X
    CBACK             X
    CBRA              X
    CCHR              X
    CCL               X
    CCOM              X
    CDCOM             X
    CDOL              X
    CDONT             X
    CDOT              X
    CEND              X
    CEOF              X
    CGCOM             X
    CHCOM             X
    CKET              X
    CLNUM             X
    CNCOM             X
    CNL               X
    CNULL             X
    COCOM             X
    CPCOM             X
    CWCOM             X
    DCOM              X
    DEPTH             X
    ECOM              X
    EQCOM             X
    ESIZE             X
    FCOM              X
    GCOM              X
    HCOM              X
    ICOM              X
    LABSIZE           X
    LBSIZE            X
    LCOM              X
    NBRA              X
    NCOM              X
    NLINES            X
    PCOM              X
    PTRSIZE           X
    QCOM              X
    RCOM              X
    RESIZE            X
    SCOM              X
    STAR              X
    TCOM              X
    WCOM              X
    XCOM              X
    YCOM              X

##### struct's

    label             X
    reptr1            X
    reptr2            X

##### unions's

    reptr             X

       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

- in /usr/src/bin/sed/sed0.c line 31
- in /usr/src/bin/sed/sed1.c line 152, 417, 545, 556, 585, 591, 701, 717

aptr defined in line 35; used 18 times

- in /usr/src/bin/sed/sed0.c line 31
- in /usr/src/bin/sed/sed1.c line 152, 416-421(3), 545, 556, 585-595(4), 701-708(5), 717-718(2)

bad defined in line 154; used 1 times

- in /usr/src/bin/sed/sed0.c line 30

badp defined in line 153; used 23 times

- in /usr/src/bin/sed/sed0.c line 30, 154, 178, 439, 460, 539, 580, 590, 626-631(2), 645, 655, 665, 673, 684, 695, 951, 965-968(2)
- in /usr/src/bin/sed/sed1.c line 66, 547, 559, 658

braelist defined in line 63; used 4 times

- in /usr/src/bin/sed/sed1.c line 254-259(2), 269, 371

braslist defined in line 64; used 5 times

- in /usr/src/bin/sed/sed1.c line 250, 258, 268, 317, 371

cbp defined in line 38; used 3 times

- in /usr/src/bin/sed/sed1.c line 57, 654, 682

cmpend defined in line 150; used 2 times

- in /usr/src/bin/sed/sed0.c line 212, 232

compfl defined in line 163; used 2 times

- in /usr/src/bin/sed/sed0.c line 88, 126

cp defined in line 99; used 74 times

- in /usr/src/bin/sed/sed0.c line 135, 142-149(8), 171-172(3), 196-199(4), 218, 251-256(3), 287-288(3), 297-298(3), 311-312(3), 343-346(3), 356-361(2), 405, 436, 464-482(9), 507, 536, 558-559(2), 575, 586, 607-608(2), 616, 625-633(3), 644, 654, 672, 683, 694, 830-831(2), 837-843(3), 849, 858, 882, 889, 946-947(2), 969

delflag defined in line 55; used 8 times

- in /usr/src/bin/sed/sed1.c line 133, 146, 156, 425, 433, 440, 549, 561

depth defined in line 151; used 5 times

- in /usr/src/bin/sed/sed0.c line 43, 98, 212, 228-232(2)

dolflag defined in line 51; used 3 times

- in /usr/src/bin/sed/sed1.c line 98, 426, 668

eargc defined in line 145; used 10 times

- in /usr/src/bin/sed/sed0.c line 27, 49-53(2), 61, 90-94(2), 109-111(2), 769
- in /usr/src/bin/sed/sed1.c line 667

eargv defined in line 146; used 10 times

- in /usr/src/bin/sed/sed0.c line 28, 53-54(2), 63-64(2), 83, 89-93(2), 112, 771

ebp defined in line 39; used 5 times

- in /usr/src/bin/sed/sed1.c line 56, 656-664(3), 672

eflag defined in line 50; used 7 times

- in /usr/src/bin/sed/sed0.c line 73-75(2), 91-95(2), 766-768(3)

f defined in line 142; used 6 times

- in /usr/src/bin/sed/sed1.c line 50-54(2), 67, 657, 665-666(2)

fname defined in line 67; used 10 times

- in /usr/src/bin/sed/sed0.c line 491-498(5), 516-524(5)

genbuf defined in line 40; used 19 times

- in /usr/src/bin/sed/sed0.c line 37
- in /usr/src/bin/sed/sed1.c line 168, 362, 375-385(4), 399, 501-502(2), 510-511(2), 520-521(2), 528-529(2), 535, 626, 632

gflag defined in line 62; used 2 times

- in /usr/src/bin/sed/sed0.c line 79, 467

hend defined in line 47; used 2 times

- in /usr/src/bin/sed/sed0.c line 36
- in /usr/src/bin/sed/sed1.c line 484

holdsp defined in line 58; used 7 times

- in /usr/src/bin/sed/sed0.c line 36, 45
- in /usr/src/bin/sed/sed1.c line 457, 465, 473, 628-633(2)

hspend defined in line 60; used 6 times

- in /usr/src/bin/sed/sed0.c line 45
- in /usr/src/bin/sed/sed1.c line 476-486(4), 635

ibuf defined in line 37; used 8 times

- in /usr/src/bin/sed/sed1.c line 56-57(2), 657-665(4), 671-672(2)

jflag defined in line 53; used 5 times

- in /usr/src/bin/sed/sed1.c line 136-137(2), 448, 496, 616

lab defined in line 139; used 14 times

- in /usr/src/bin/sed/sed0.c line 32, 255-257(2), 263, 269-271(3), 355-357(2), 364, 374-376(3), 921

labend defined in line 140; used 3 times

- in /usr/src/bin/sed/sed0.c line 40, 271, 376

lastre defined in line 36; used 2 times

- in /usr/src/bin/sed/sed0.c line 127, 567

lbend defined in line 101; used 3 times

- in /usr/src/bin/sed/sed0.c line 35
- in /usr/src/bin/sed/sed1.c line 467, 677

lcomend defined in line 48; used 4 times

- in /usr/src/bin/sed/sed0.c line 37
- in /usr/src/bin/sed/sed1.c line 508, 518, 526

linebuf defined in line 57; used 63 times

- in /usr/src/bin/sed/sed0.c line 35, 44, 129-142(6), 155, 174-179(2), 192, 202, 214, 224, 240, 247, 258, 265, 272, 284-289(2), 299, 308-313(2), 358, 377, 402-406(2), 425, 440, 456-461(2), 483, 508, 540-544(2), 552, 561, 708, 723
- in /usr/src/bin/sed/sed1.c line 66, 147, 167-172(2), 361, 379-384(2), 436, 456, 474, 482, 500, 540, 547, 568, 574, 581, 603, 621-629(3), 639

lnum defined in line 56; used 8 times

- in /usr/src/bin/sed/sed0.c line 41
- in /usr/src/bin/sed/sed1.c line 84, 91, 107, 419, 452, 593, 680

loc1 defined in line 41; used 5 times

- in /usr/src/bin/sed/sed1.c line 178, 192, 201, 364-368(2)

loc2 defined in line 42; used 6 times

- in /usr/src/bin/sed/sed1.c line 170, 238, 347, 368, 378-379(2)

locs defined in line 43; used 3 times

- in /usr/src/bin/sed/sed1.c line 170-173(2), 328

ltab defined in line 137; used 1 times

- in /usr/src/bin/sed/sed0.c line 6

nfiles defined in line 69; used 15 times

- in /usr/src/bin/sed/sed0.c line 47, 486-501(7), 511-527(7)

nflag defined in line 61; used 5 times

- in /usr/src/bin/sed/sed0.c line 57, 132
- in /usr/src/bin/sed/sed1.c line 146, 539, 580

nlno defined in line 66; used 3 times

- in /usr/src/bin/sed/sed0.c line 851-853(3)

numbra defined in line 54; used 5 times

- in /usr/src/bin/sed/sed0.c line 579, 615, 643-649(3)

pending defined in line 152; used 6 times

- in /usr/src/bin/sed/sed0.c line 42
- in /usr/src/bin/sed/sed1.c line 59-61(3), 548, 560

ptrend defined in line 49; used 3 times

- in /usr/src/bin/sed/sed0.c line 38, 213, 551

ptrspace defined in line 128; used 5 times

- in /usr/src/bin/sed/sed0.c line 33-38(2), 419
- in /usr/src/bin/sed/sed1.c line 72, 139

reend defined in line 100; used 5 times

- in /usr/src/bin/sed/sed0.c line 39, 173, 191, 455, 543

rep defined in line 128; used 92 times

- in /usr/src/bin/sed/sed0.c line 33-34(2), 103, 153, 159-161(2), 167-188(9), 206-217(7), 223, 232-239(4), 246, 276-283(4), 292-296(3), 302-307(4), 316-341(8), 350-352(2), 366-374(3), 384-401(6), 409-424(7), 431-445(6), 452-460(3), 466-477(4), 494-506(4), 519-538(7), 551-556(2), 566

respace defined in line 131; used 2 times

- in /usr/src/bin/sed/sed0.c line 34-39(2)

seof defined in line 44; used 11 times

- in /usr/src/bin/sed/sed0.c line 436, 536, 584, 607, 628, 701, 838, 947, 955, 964-967(2)

sflag defined in line 52; used 3 times

- in /usr/src/bin/sed/sed1.c line 343, 614-615(2)

spend defined in line 59; used 18 times

- in /usr/src/bin/sed/sed0.c line 44
- in /usr/src/bin/sed/sed1.c line 70, 147, 387, 447, 459-469(4), 540, 552, 558-568(4), 581, 603, 631

tlno defined in line 65; used 4 times

- in /usr/src/bin/sed/sed0.c line 852
- in /usr/src/bin/sed/sed1.c line 84, 91, 107

#### Defined struct's

label defined in line 133; used 18 times

- in line 139-140(4), 160(2)
- in /usr/src/bin/sed/sed0.c line 6(2), 124(2), 900-903(6), 918(2)

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

- in line 34-35(2), 49, 119(2), 135-136(4), 150-152(4)
- in /usr/src/bin/sed/sed0.c line 122(2), 919(2)
- in /usr/src/bin/sed/sed1.c line 45(2), 339(2), 406(2)

#### Defined macros

ABUFSIZE defined in line 27; used 3 times

- in line 34
- in /usr/src/bin/sed/sed1.c line 417, 591

ACOM defined in line 71; used 2 times

- in /usr/src/bin/sed/sed0.c line 282
- in /usr/src/bin/sed/sed1.c line 703

BCOM defined in line 72; used 2 times

- in /usr/src/bin/sed/sed0.c line 210, 341

CBACK defined in line 19; used 3 times

- in /usr/src/bin/sed/sed0.c line 667
- in /usr/src/bin/sed/sed1.c line 267, 316

CBRA defined in line 7; used 1 times

- in /usr/src/bin/sed/sed0.c line 648

CCHR defined in line 8; used 5 times

- in /usr/src/bin/sed/sed0.c line 752
- in /usr/src/bin/sed/sed1.c line 179, 186, 286, 305

CCL defined in line 10; used 2 times

- in /usr/src/bin/sed/sed0.c line 712
- in /usr/src/bin/sed/sed1.c line 292

CCOM defined in line 73; used 1 times

- in /usr/src/bin/sed/sed0.c line 296

CDCOM defined in line 74; used 1 times

- in /usr/src/bin/sed/sed0.c line 418

CDOL defined in line 12; used 1 times

- in /usr/src/bin/sed/sed0.c line 703

CDONT defined in line 18; never used
CDOT defined in line 9; used 2 times

- in /usr/src/bin/sed/sed0.c line 687
- in /usr/src/bin/sed/sed1.c line 281

CEND defined in line 17; used 3 times

- in /usr/src/bin/sed/sed0.c line 832
- in /usr/src/bin/sed/sed1.c line 80, 97

CEOF defined in line 13; used 3 times

- in /usr/src/bin/sed/sed0.c line 634, 833, 857

CGCOM defined in line 83; used 1 times

- in /usr/src/bin/sed/sed0.c line 325

CHCOM defined in line 85; used 1 times

- in /usr/src/bin/sed/sed0.c line 333

CKET defined in line 14; used 2 times

- in /usr/src/bin/sed/sed0.c line 657, 693

CLNUM defined in line 16; used 3 times

- in /usr/src/bin/sed/sed0.c line 850
- in /usr/src/bin/sed/sed1.c line 82, 105

CNCOM defined in line 75; used 1 times

- in /usr/src/bin/sed/sed0.c line 388

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

- in /usr/src/bin/sed/sed0.c line 396

CWCOM defined in line 95; never used
DCOM defined in line 78; used 1 times

- in /usr/src/bin/sed/sed0.c line 414

DEPTH defined in line 24; used 1 times

- in line 150

ECOM defined in line 79; never used
EQCOM defined in line 80; used 1 times

- in /usr/src/bin/sed/sed0.c line 238

ESIZE defined in line 29; used 2 times

- in /usr/src/bin/sed/sed0.c line 624, 707

FCOM defined in line 81; never used
GCOM defined in line 82; used 1 times

- in /usr/src/bin/sed/sed0.c line 321

HCOM defined in line 84; used 1 times

- in /usr/src/bin/sed/sed0.c line 329

ICOM defined in line 86; used 1 times

- in /usr/src/bin/sed/sed0.c line 306

LABSIZE defined in line 30; used 2 times

- in line 137
- in /usr/src/bin/sed/sed0.c line 40

LBSIZE defined in line 28; used 8 times

- in line 40, 57-58(2)
- in /usr/src/bin/sed/sed0.c line 35-36(2)
- in /usr/src/bin/sed/sed1.c line 375, 381, 399

LCOM defined in line 87; used 1 times

- in /usr/src/bin/sed/sed0.c line 431

NBRA defined in line 31; used 5 times

- in line 63-64(2)
- in /usr/src/bin/sed/sed0.c line 605, 643
- in /usr/src/bin/sed/sed1.c line 370

NCOM defined in line 88; used 1 times

- in /usr/src/bin/sed/sed0.c line 384

NLINES defined in line 23; used 2 times

- in line 65
- in /usr/src/bin/sed/sed0.c line 853

PCOM defined in line 89; used 1 times

- in /usr/src/bin/sed/sed0.c line 392

PTRSIZE defined in line 25; used 2 times

- in line 128
- in /usr/src/bin/sed/sed0.c line 38

QCOM defined in line 90; used 1 times

- in /usr/src/bin/sed/sed0.c line 423

RCOM defined in line 91; used 1 times

- in /usr/src/bin/sed/sed0.c line 400

RESIZE defined in line 26; used 2 times

- in line 131
- in /usr/src/bin/sed/sed0.c line 39

SCOM defined in line 92; used 1 times

- in /usr/src/bin/sed/sed0.c line 435

STAR defined in line 21; used 1 times

- in /usr/src/bin/sed/sed0.c line 697

TCOM defined in line 93; used 1 times

- in /usr/src/bin/sed/sed0.c line 337

WCOM defined in line 94; used 1 times

- in /usr/src/bin/sed/sed0.c line 506

XCOM defined in line 97; used 1 times

- in /usr/src/bin/sed/sed0.c line 531

YCOM defined in line 96; used 1 times

- in /usr/src/bin/sed/sed0.c line 535

#### Usage of this include

sed.h used 2 times

- in /usr/src/bin/sed/sed0.c line 4
- in /usr/src/bin/sed/sed1.c line 4

Last modified: 1987-02-08 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1930 |