1 /* $Header: util.h,v 2.0 86/09/17 15:40:06 lwall Exp $
4 * Revision 2.0 86/09/17 15:40:06 lwall
5 * Baseline for netwide release.
9 /* and for those machine that can't handle a variable argument list */
25 #define pfatal1 pfatal
26 #define pfatal2 pfatal
27 #define pfatal3 pfatal
28 #define pfatal4 pfatal
30 #else /* hope they allow multi-line macro actual arguments */
34 #define say1(a) say(a, 0, 0, 0)
35 #define say2(a,b) say(a, (b)==(b), 0, 0)
36 #define say3(a,b,c) say(a, (b)==(b), (c)==(c), 0)
37 #define say4(a,b,c,d) say(a, (b)==(b), (c)==(c), (d)==(d))
38 #define ask1(a) ask(a, 0, 0, 0)
39 #define ask2(a,b) ask(a, (b)==(b), 0, 0)
40 #define ask3(a,b,c) ask(a, (b)==(b), (c)==(c), 0)
41 #define ask4(a,b,c,d) ask(a, (b)==(b), (c)==(c), (d)==(d))
42 #define fatal1(a) fatal(a, 0, 0, 0)
43 #define fatal2(a,b) fatal(a, (b)==(b), 0, 0)
44 #define fatal3(a,b,c) fatal(a, (b)==(b), (c)==(c), 0)
45 #define fatal4(a,b,c,d) fatal(a, (b)==(b), (c)==(c), (d)==(d))
46 #define pfatal1(a) pfatal(a, 0, 0, 0)
47 #define pfatal2(a,b) pfatal(a, (b)==(b), 0, 0)
48 #define pfatal3(a,b,c) pfatal(a, (b)==(b), (c)==(c), 0)
49 #define pfatal4(a,b,c,d) pfatal(a, (b)==(b), (c)==(c), (d)==(d))
52 /* if this doesn't work, try defining CANVARARG above */
53 #define say1(a) say(a, Nullch, Nullch, Nullch)
54 #define say2(a,b) say(a, b, Nullch, Nullch)
55 #define say3(a,b,c) say(a, b, c, Nullch)
57 #define ask1(a) ask(a, Nullch, Nullch, Nullch)
58 #define ask2(a,b) ask(a, b, Nullch, Nullch)
59 #define ask3(a,b,c) ask(a, b, c, Nullch)
61 #define fatal1(a) fatal(a, Nullch, Nullch, Nullch)
62 #define fatal2(a,b) fatal(a, b, Nullch, Nullch)
63 #define fatal3(a,b,c) fatal(a, b, c, Nullch)
65 #define pfatal1(a) pfatal(a, Nullch, Nullch, Nullch)
66 #define pfatal2(a,b) pfatal(a, b, Nullch, Nullch)
67 #define pfatal3(a,b,c) pfatal(a, b, c, Nullch)
68 #define pfatal4 pfatal
72 /* if neither of the above work, join all multi-line macro calls. */
75 EXT char serrbuf[BUFSIZ]; /* buffer for stderr */
86 void ignore_signals();