blob: f1b2f0ddea0ef76abf5a707a005734a35f1ae0f7 [file] [log] [blame]
Benny Prijonoa4bf0212006-02-10 15:57:08 +00001/*
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: /tmp_amd/presto/export/kbs/jutta/src/gsm/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#ifdef _MSC_VER
13# pragma warning(push, 3)
14# pragma warning(disable: 4131) // .. uses old-style declarato
15# pragma warning(disable: 4244) // conversion from 'x ' to 'y', possible loss of data
16# pragma warning(disable: 4761) // integral size mismatch
17#endif
18
19#define NeedFunctionPrototypes 1
20
21
22#if __cplusplus
23# define NeedFunctionPrototypes 1
24#endif
25
26#if __STDC__
27# define NeedFunctionPrototypes 1
28#endif
29
30#ifdef _NO_PROTO
31# undef NeedFunctionPrototypes
32#endif
33
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
45#if NeedFunctionPrototypes
46
47# define P( protos ) protos
48
49# define P0() (void)
50# define P1(x, a) (a)
51# define P2(x, a, b) (a, b)
52# define P3(x, a, b, c) (a, b, c)
53# define P4(x, a, b, c, d) (a, b, c, d)
54# define P5(x, a, b, c, d, e) (a, b, c, d, e)
55# define P6(x, a, b, c, d, e, f) (a, b, c, d, e, f)
56# define P7(x, a, b, c, d, e, f, g) (a, b, c, d, e, f, g)
57# define P8(x, a, b, c, d, e, f, g, h) (a, b, c, d, e, f, g, h)
58
59#else /* !NeedFunctionPrototypes */
60
61# define P( protos ) ( /* protos */ )
62
63# define P0() ()
64# define P1(x, a) x a;
65# define P2(x, a, b) x a; b;
66# define P3(x, a, b, c) x a; b; c;
67# define P4(x, a, b, c, d) x a; b; c; d;
68# define P5(x, a, b, c, d, e) x a; b; c; d; e;
69# define P6(x, a, b, c, d, e, f) x a; b; c; d; e; f;
70# define P7(x, a, b, c, d, e, f, g) x a; b; c; d; e; f; g;
71# define P8(x, a, b, c, d, e, f, g, h) x a; b; c; d; e; f; g; h;
72
73#endif /* !NeedFunctionPrototypes */
74
75#endif /* PROTO_H */