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

##### Variables

    anychange         X
    bflag             X
    context           X
    diffargv          X
    efile1            X
    efile2            X
    endifname         X
    file1             X
    file2             X
    hflag             X
    ifdef1            X
    ifdef2            X
    iflag             X
    inifdef           X
    lflag             X
    opt               X
    rflag             X
    sflag             X
    start             X
    status            X
    stb1              X
    stb2              X
    tempfile          X
    tflag             X
    wantelses         X
    wflag             X

##### Macros

    D_CONTEXT         X
    D_EDIT            X
    D_IFDEF           X
    D_NORMAL          X
    D_NREVERSE        X
    D_REVERSE         X

       1: /*	diff.h	4.7	85/08/16	*/
       2:
       3: /*
       4:  * diff - common declarations
       5:  */
       6:
       7: #include <stdio.h>
       8: #include <ctype.h>
       9: #include <sys/param.h>
      10: #include <sys/stat.h>
      11: #include <sys/dir.h>
      12: #include <signal.h>
      13:
      14: /*
      15:  * Output format options
      16:  */
      17: int opt;
      18:
      19: #define D_NORMAL    0   /* Normal output */
      20: #define D_EDIT      -1  /* Editor script out */
      21: #define D_REVERSE   1   /* Reverse editor script */
      22: #define D_CONTEXT   2   /* Diff with context */
      23: #define D_IFDEF     3   /* Diff with merged #ifdef's */
      24: #define D_NREVERSE  4   /* Reverse ed script with numbered
      25: 				   lines and no trailing . */
      26:
      27: int tflag;          /* expand tabs on output */
      28:
      29: /*
      30:  * Algorithm related options
      31:  */
      32: int hflag;          /* -h, use halfhearted DIFFH */
      33: int bflag;          /* ignore blanks in comparisons */
      34: int wflag;          /* totally ignore blanks in comparisons */
      35: int iflag;          /* ignore case in comparisons */
      36:
      37: /*
      38:  * Options on hierarchical diffs.
      39:  */
      40: int lflag;          /* long output format with header */
      41: int rflag;          /* recursively trace directories */
      42: int sflag;          /* announce files which are same */
      43: char    *start;         /* do file only if name >= this */
      44:
      45: /*
      46:  * Variables for -I D_IFDEF option.
      47:  */
      48: int wantelses;      /* -E */
      49: char    *ifdef1;        /* String for -1 */
      50: char    *ifdef2;        /* String for -2 */
      51: char    *endifname;     /* What we will print on next #endif */
      52: int inifdef;
      53:
      54: /*
      55:  * Variables for -c context option.
      56:  */
      57: int context;        /* lines of context to be printed */
      58:
      59: /*
      60:  * State for exit status.
      61:  */
      62: int status;
      63: int anychange;
      64: char    *tempfile;      /* used when comparing against std input */
      65:
      66: /*
      67:  * Variables for diffdir.
      68:  */
      69: char    **diffargv;     /* option list to pass to recursive diffs */
      70:
      71: /*
      72:  * Input file names.
      73:  * With diffdir, file1 and file2 are allocated BUFSIZ space,
      74:  * and padded with a '/', and then efile0 and efile1 point after
      75:  * the '/'.
      76:  */
      77: char    *file1, *file2, *efile1, *efile2;
      78: struct  stat stb1, stb2;
      79:
      80: char    *malloc(), *talloc(), *ralloc();
      81: char    *savestr(), *splice(), *splicen();
      82: char    *mktemp(), *copytemp(), *rindex();
      83: int done();
      84:
      85: extern  char diffh[], diff[], pr[];

#### Defined variables

anychange defined in line 63; used 6 times

- in /usr/src/bin/diff/diffdir.c line 305
- in /usr/src/bin/diff/diffreg.c line 260-262(2), 666, 702-703(2)

bflag defined in line 33; used 4 times

- in /usr/src/bin/diff/diff.c line 66
- in /usr/src/bin/diff/diffreg.c line 497, 503, 882

context defined in line 57; used 8 times

- in /usr/src/bin/diff/diff.c line 80, 90
- in /usr/src/bin/diff/diffreg.c line 733-734(2), 974-977(4)

diffargv defined in line 69; used 8 times

- in /usr/src/bin/diff/diff.c line 22
- in /usr/src/bin/diff/diffdir.c line 44-47(3), 364-365(2)
- in /usr/src/bin/diff/diffreg.c line 150-151(2)

efile1 defined in line 77; used 11 times

- in /usr/src/bin/diff/diffdir.c line 52, 93-100(4), 108, 133-136(2), 149, 163, 243

efile2 defined in line 77; used 11 times

- in /usr/src/bin/diff/diffdir.c line 53, 94-100(4), 109, 133-136(2), 150, 163, 244

endifname defined in line 51; used 7 times

- in /usr/src/bin/diff/diffreg.c line 779, 823-831(5), 857

file1 defined in line 77; used 41 times

- in /usr/src/bin/diff/diff.c line 122, 129-133(3)
- in /usr/src/bin/diff/diffdir.c line 52-56(4), 93-100(4), 133-136(2), 149(2), 162, 245-247(2), 268, 293, 301, 313, 334
- in /usr/src/bin/diff/diffreg.c line 158-165(5), 171-179(4), 190-192(2), 224, 476-477(2), 632, 705-706(2)

file2 defined in line 77; used 42 times

- in /usr/src/bin/diff/diff.c line 123, 136-140(3)
- in /usr/src/bin/diff/diffdir.c line 53-57(4), 94-100(4), 133-136(2), 150(2), 162, 250-252(2), 268, 293, 301, 313, 334
- in /usr/src/bin/diff/diffreg.c line 158, 165-172(5), 182-186(4), 195-197(2), 224, 480-481(2), 633, 708-709(2)

hflag defined in line 32; used 3 times

- in /usr/src/bin/diff/diff.c line 93, 124
- in /usr/src/bin/diff/diffreg.c line 149

ifdef1 defined in line 49; used 5 times

- in /usr/src/bin/diff/diff.c line 20, 40, 47
- in /usr/src/bin/diff/diffreg.c line 802, 830

ifdef2 defined in line 50; used 6 times

- in /usr/src/bin/diff/diff.c line 20, 53
- in /usr/src/bin/diff/diffreg.c line 802, 819-823(2), 830

iflag defined in line 35; used 4 times

- in /usr/src/bin/diff/diff.c line 72
- in /usr/src/bin/diff/diffreg.c line 156, 497, 883

inifdef defined in line 52; used 6 times

- in /usr/src/bin/diff/diffreg.c line 778-780(2), 818, 834, 856-858(2)

lflag defined in line 40; used 10 times

- in /usr/src/bin/diff/diff.c line 110
- in /usr/src/bin/diff/diffdir.c line 39, 75, 85, 92, 103, 265, 290, 297, 306

opt defined in line 17; used 38 times

- in /usr/src/bin/diff/diff.c line 31-39(3), 52-63(4), 78, 124
- in /usr/src/bin/diff/diffdir.c line 35-39(2), 77(2), 87(2), 265, 299(2), 309, 316
- in /usr/src/bin/diff/diffreg.c line 262, 637, 656, 666, 700-704(2), 723, 744, 750, 770-776(6), 808, 817, 840

rflag defined in line 41; used 2 times

- in /usr/src/bin/diff/diff.c line 104
- in /usr/src/bin/diff/diffdir.c line 102

sflag defined in line 42; used 3 times

- in /usr/src/bin/diff/diff.c line 107
- in /usr/src/bin/diff/diffdir.c line 39, 288

start defined in line 43; used 3 times

- in /usr/src/bin/diff/diff.c line 100
- in /usr/src/bin/diff/diffdir.c line 420(2)

status defined in line 62; used 7 times

- in /usr/src/bin/diff/diff.c line 21, 183
- in /usr/src/bin/diff/diffdir.c line 329, 373
- in /usr/src/bin/diff/diffreg.c line 211, 222, 260

stb1 defined in line 78; used 12 times

- in /usr/src/bin/diff/diff.c line 130-131(2), 143
- in /usr/src/bin/diff/diffdir.c line 239, 256-261(3), 274
- in /usr/src/bin/diff/diffreg.c line 157-159(2), 177, 201

stb2 defined in line 78; used 12 times

- in /usr/src/bin/diff/diff.c line 137-138(2), 144
- in /usr/src/bin/diff/diffdir.c line 239, 256-261(3), 274
- in /usr/src/bin/diff/diffreg.c line 164-166(2), 184, 201

tempfile defined in line 64; used 7 times

- in /usr/src/bin/diff/diff.c line 181-182(2)
- in /usr/src/bin/diff/diffreg.c line 277-281(3), 287-291(2)

tflag defined in line 27; used 2 times

- in /usr/src/bin/diff/diff.c line 75
- in /usr/src/bin/diff/diffreg.c line 845

wantelses defined in line 48; used 4 times

- in /usr/src/bin/diff/diff.c line 32-36(2), 46
- in /usr/src/bin/diff/diffreg.c line 856

wflag defined in line 34; used 5 times

- in /usr/src/bin/diff/diff.c line 69
- in /usr/src/bin/diff/diffreg.c line 497, 514, 882, 915

#### Defined macros

D_CONTEXT defined in line 22; used 6 times

- in /usr/src/bin/diff/diff.c line 78
- in /usr/src/bin/diff/diffdir.c line 299
- in /usr/src/bin/diff/diffreg.c line 262, 666, 704, 723

D_EDIT defined in line 20; used 7 times

- in /usr/src/bin/diff/diff.c line 57
- in /usr/src/bin/diff/diffdir.c line 39, 265, 309, 316
- in /usr/src/bin/diff/diffreg.c line 637, 776

D_IFDEF defined in line 23; used 11 times

- in /usr/src/bin/diff/diff.c line 31-39(3), 52
- in /usr/src/bin/diff/diffdir.c line 35
- in /usr/src/bin/diff/diffreg.c line 656, 700, 770, 808, 817, 840

D_NORMAL defined in line 19; used 5 times

- in /usr/src/bin/diff/diffdir.c line 299
- in /usr/src/bin/diff/diffreg.c line 750, 770-775(3)

D_NREVERSE defined in line 24; used 1 times

- in /usr/src/bin/diff/diff.c line 63

D_REVERSE defined in line 21; used 2 times

- in /usr/src/bin/diff/diff.c line 60
- in /usr/src/bin/diff/diffreg.c line 776

#### Usage of this include

diff.h used 3 times

- in /usr/src/bin/diff/diff.c line 5
- in /usr/src/bin/diff/diffdir.c line 5
- in /usr/src/bin/diff/diffreg.c line 5

Last modified: 1985-08-28 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1609 |