# 2.11BSD#431 - /usr/src/usr.bin/patch/util.h

##### Variables

    serrbuf           X

##### Macros

    ask1              X
    ask2              X
    ask3              X
    ask4              X
    fatal1            X
    fatal2            X
    fatal3            X
    fatal4            X
    say1              X
    say2              X
    say3              X
    say4              X

       1: /* $Header: util.h,v 2.0 86/09/17 15:40:06 lwall Exp $
       2:  *
       3:  * $Log:	util.h,v $
       4:  * Revision 2.0  86/09/17  15:40:06  lwall
       5:  * Baseline for netwide release.
       6:  *
       7:  */
       8:
       9: /* and for those machine that can't handle a variable argument list */
      10:
      11: #ifdef CANVARARG
      12:
      13: #define say1 say
      14: #define say2 say
      15: #define say3 say
      16: #define say4 say
      17: #define ask1 ask
      18: #define ask2 ask
      19: #define ask3 ask
      20: #define ask4 ask
      21: #define fatal1 fatal
      22: #define fatal2 fatal
      23: #define fatal3 fatal
      24: #define fatal4 fatal
      25:
      26: #else /* hope they allow multi-line macro actual arguments */
      27:
      28: #ifdef lint
      29:
      30: #define say1(a) say(a, 0, 0, 0)
      31: #define say2(a,b) say(a, (b)==(b), 0, 0)
      32: #define say3(a,b,c) say(a, (b)==(b), (c)==(c), 0)
      33: #define say4(a,b,c,d) say(a, (b)==(b), (c)==(c), (d)==(d))
      34: #define ask1(a) ask(a, 0, 0, 0)
      35: #define ask2(a,b) ask(a, (b)==(b), 0, 0)
      36: #define ask3(a,b,c) ask(a, (b)==(b), (c)==(c), 0)
      37: #define ask4(a,b,c,d) ask(a, (b)==(b), (c)==(c), (d)==(d))
      38: #define fatal1(a) fatal(a, 0, 0, 0)
      39: #define fatal2(a,b) fatal(a, (b)==(b), 0, 0)
      40: #define fatal3(a,b,c) fatal(a, (b)==(b), (c)==(c), 0)
      41: #define fatal4(a,b,c,d) fatal(a, (b)==(b), (c)==(c), (d)==(d))
      42:
      43: #else /* lint */
      44:     /* if this doesn't work, try defining CANVARARG above */
      45: #define say1(a) say(a, Nullch, Nullch, Nullch)
      46: #define say2(a,b) say(a, b, Nullch, Nullch)
      47: #define say3(a,b,c) say(a, b, c, Nullch)
      48: #define say4 say
      49: #define ask1(a) ask(a, Nullch, Nullch, Nullch)
      50: #define ask2(a,b) ask(a, b, Nullch, Nullch)
      51: #define ask3(a,b,c) ask(a, b, c, Nullch)
      52: #define ask4 ask
      53: #define fatal1(a) fatal(a, Nullch, Nullch, Nullch)
      54: #define fatal2(a,b) fatal(a, b, Nullch, Nullch)
      55: #define fatal3(a,b,c) fatal(a, b, c, Nullch)
      56: #define fatal4 fatal
      57:
      58: #endif /* lint */
      59:
      60: /* if neither of the above work, join all multi-line macro calls. */
      61: #endif
      62:
      63: EXT char serrbuf[BUFSIZ];       /* buffer for stderr */
      64:
      65: char *fetchname();
      66: int move_file();
      67: void copy_file();
      68: void say();
      69: void fatal();
      70: void ask();
      71: char *savestr();
      72: void set_signals();
      73: void ignore_signals();
      74: void makedirs();

#### Defined variables

serrbuf defined in line 63; used 1 times

- in /usr/src/usr.bin/patch/patch.c line 130

#### Defined macros

ask1 defined in line 49; used 3 times

- in /usr/src/usr.bin/patch/patch.c line 217
- in /usr/src/usr.bin/patch/pch.c line 178, 186

ask2 defined in line 50; used 2 times

- in /usr/src/usr.bin/patch/inp.c line 196, 241

ask3 defined in line 51; used 1 times

- in /usr/src/usr.bin/patch/patch.c line 212

ask4 defined in line 52; never used
fatal1 defined in line 53; used 16 times

- in /usr/src/usr.bin/patch/inp.c line 200, 245, 258-262(2), 268
- in /usr/src/usr.bin/patch/patch.c line 200-205(2), 223, 360, 382, 413
- in /usr/src/usr.bin/patch/pch.c line 135, 467
- in /usr/src/usr.bin/patch/util.c line 29, 89, 138

fatal2 defined in line 54; used 29 times

- in /usr/src/usr.bin/patch/inp.c line 102, 113-121(3), 145, 223-225(2), 275, 304
- in /usr/src/usr.bin/patch/patch.c line 404, 469, 696, 707
- in /usr/src/usr.bin/patch/pch.c line 85, 93, 486, 668, 704, 774-777(2), 790-793(2), 806-809(2)
- in /usr/src/usr.bin/patch/util.c line 26, 86, 109-115(3)

fatal3 defined in line 55; used 4 times

- in /usr/src/usr.bin/patch/pch.c line 494, 545, 842
- in /usr/src/usr.bin/patch/version.c line 26

fatal4 defined in line 56; used 3 times

- in /usr/src/usr.bin/patch/pch.c line 550, 587, 757

say1 defined in line 45; used 16 times

- in /usr/src/usr.bin/patch/patch.c line 192, 207, 258, 266, 561, 719
- in /usr/src/usr.bin/patch/pch.c line 147-159(4), 174, 191, 397, 403, 821
- in /usr/src/usr.bin/patch/util.c line 228

say2 defined in line 46; used 10 times

- in /usr/src/usr.bin/patch/inp.c line 90, 99, 110, 191, 204, 236, 249
- in /usr/src/usr.bin/patch/patch.c line 254
- in /usr/src/usr.bin/patch/pch.c line 401
- in /usr/src/usr.bin/patch/util.c line 22

say3 defined in line 47; used 16 times

- in /usr/src/usr.bin/patch/inp.c line 73
- in /usr/src/usr.bin/patch/patch.c line 241, 247-256(3), 502, 510, 624-628(2), 733
- in /usr/src/usr.bin/patch/pch.c line 163, 170
- in /usr/src/usr.bin/patch/util.c line 62-65(2), 73, 80

say4 defined in line 48; used 4 times

- in /usr/src/usr.bin/patch/patch.c line 308-312(2)
- in /usr/src/usr.bin/patch/pch.c line 689
- in /usr/src/usr.bin/patch/util.c line 339

#### Usage of this include

util.h used 5 times

- in /usr/src/usr.bin/patch/inp.c line 19
- in /usr/src/usr.bin/patch/patch.c line 94
- in /usr/src/usr.bin/patch/pch.c line 34
- in /usr/src/usr.bin/patch/util.c line 4
- in /usr/src/usr.bin/patch/version.c line 11

Last modified: 1988-06-23 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1089 |