2
|
1 /*
|
|
2 * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
|
|
3 * Universitaet Berlin. See the accompanying file "COPYRIGHT" for
|
|
4 * details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
|
|
5 */
|
|
6
|
|
7 /*$Header: /home/kbs/jutta/src/gsm/gsm-1.0/inc/RCS/proto.h,v 1.1 1992/10/28 00:11:08 jutta Exp $*/
|
|
8
|
|
9 #ifndef PROTO_H
|
|
10 #define PROTO_H
|
|
11
|
|
12 #ifndef NeedFunctionPrototypes
|
|
13 #if defined(__cplusplus) || defined(__STDC__) || defined(VMS)
|
|
14 # define NeedFunctionPrototypes 1
|
|
15 #endif
|
|
16 #endif
|
|
17
|
|
18 /* This used to be as follows, but was replaced to avoid silly complaints and
|
|
19 * errors of some compilers. Also automated symbol definition for VMS
|
|
20 * #if __cplusplus
|
|
21 * # define NeedFunctionPrototypes 1
|
|
22 * #endif
|
|
23 *
|
|
24 * #if __STDC__
|
|
25 * # define NeedFunctionPrototypes 1
|
|
26 * #endif
|
|
27 */
|
|
28
|
|
29 #ifdef _NO_PROTO
|
|
30 # undef NeedFunctionPrototypes
|
|
31 #endif
|
|
32
|
|
33 #ifdef P
|
|
34 #undef P /* gnu stdio.h actually defines this... */
|
|
35 #undef P0
|
|
36 #undef P1
|
|
37 #undef P2
|
|
38 #undef P3
|
|
39 #undef P4
|
|
40 #undef P5
|
|
41 #undef P6
|
|
42 #undef P7
|
|
43 #undef P8
|
|
44 #endif /* gnuc prototypes */
|
|
45
|
|
46 #ifdef NeedFunctionPrototypes
|
|
47
|
|
48 # define P( protos ) protos
|
|
49
|
|
50 # define P0() (void)
|
|
51 # define P1(x, a) (a)
|
|
52 # define P2(x, a, b) (a, b)
|
|
53 # define P3(x, a, b, c) (a, b, c)
|
|
54 # define P4(x, a, b, c, d) (a, b, c, d)
|
|
55 # define P5(x, a, b, c, d, e) (a, b, c, d, e)
|
|
56 # define P6(x, a, b, c, d, e, f) (a, b, c, d, e, f)
|
|
57 # define P7(x, a, b, c, d, e, f, g) (a, b, c, d, e, f, g)
|
|
58 # define P8(x, a, b, c, d, e, f, g, h) (a, b, c, d, e, f, g, h)
|
|
59
|
|
60 #else /* !NeedFunctionPrototypes */
|
|
61
|
|
62 # define P( protos ) ( /* protos */ )
|
|
63
|
|
64 # define P0() ()
|
|
65 # define P1(x, a) x a;
|
|
66 # define P2(x, a, b) x a; b;
|
|
67 # define P3(x, a, b, c) x a; b; c;
|
|
68 # define P4(x, a, b, c, d) x a; b; c; d;
|
|
69 # define P5(x, a, b, c, d, e) x a; b; c; d; e;
|
|
70 # define P6(x, a, b, c, d, e, f) x a; b; c; d; e; f;
|
|
71 # define P7(x, a, b, c, d, e, f, g) x a; b; c; d; e; f; g;
|
|
72 # define P8(x, a, b, c, d, e, f, g, h) x a; b; c; d; e; f; g; h;
|
|
73
|
|
74 #endif /* !NeedFunctionPrototypes */
|
|
75
|
|
76 #endif /* PROTO_H */
|