xref: /aosp_15_r20/external/libgsm/inc/proto.h (revision 8ec969cea971fe25ff2d3933a5a9f8504f8e86c9)
1*8ec969ceSTreehugger Robot /*
2*8ec969ceSTreehugger Robot  * Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
3*8ec969ceSTreehugger Robot  * Universitaet Berlin.  See the accompanying file "COPYRIGHT" for
4*8ec969ceSTreehugger Robot  * details.  THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
5*8ec969ceSTreehugger Robot  */
6*8ec969ceSTreehugger Robot 
7*8ec969ceSTreehugger Robot /*$Header: /tmp_amd/presto/export/kbs/jutta/src/gsm/RCS/proto.h,v 1.1 1992/10/28 00:11:08 jutta Exp $*/
8*8ec969ceSTreehugger Robot 
9*8ec969ceSTreehugger Robot #ifndef	PROTO_H
10*8ec969ceSTreehugger Robot #define	PROTO_H
11*8ec969ceSTreehugger Robot 
12*8ec969ceSTreehugger Robot #if __cplusplus
13*8ec969ceSTreehugger Robot #	define	NeedFunctionPrototypes	1
14*8ec969ceSTreehugger Robot #endif
15*8ec969ceSTreehugger Robot 
16*8ec969ceSTreehugger Robot #if __STDC__
17*8ec969ceSTreehugger Robot #	define	NeedFunctionPrototypes	1
18*8ec969ceSTreehugger Robot #endif
19*8ec969ceSTreehugger Robot 
20*8ec969ceSTreehugger Robot #ifdef	_NO_PROTO
21*8ec969ceSTreehugger Robot #	undef	NeedFunctionPrototypes
22*8ec969ceSTreehugger Robot #endif
23*8ec969ceSTreehugger Robot 
24*8ec969ceSTreehugger Robot #undef	P	/* gnu stdio.h actually defines this... 	*/
25*8ec969ceSTreehugger Robot #undef	P0
26*8ec969ceSTreehugger Robot #undef	P1
27*8ec969ceSTreehugger Robot #undef	P2
28*8ec969ceSTreehugger Robot #undef	P3
29*8ec969ceSTreehugger Robot #undef	P4
30*8ec969ceSTreehugger Robot #undef	P5
31*8ec969ceSTreehugger Robot #undef	P6
32*8ec969ceSTreehugger Robot #undef	P7
33*8ec969ceSTreehugger Robot #undef	P8
34*8ec969ceSTreehugger Robot 
35*8ec969ceSTreehugger Robot #if NeedFunctionPrototypes
36*8ec969ceSTreehugger Robot 
37*8ec969ceSTreehugger Robot #	define	P( protos )	protos
38*8ec969ceSTreehugger Robot 
39*8ec969ceSTreehugger Robot #	define	P0()				(void)
40*8ec969ceSTreehugger Robot #	define	P1(x, a)			(a)
41*8ec969ceSTreehugger Robot #	define	P2(x, a, b)			(a, b)
42*8ec969ceSTreehugger Robot #	define	P3(x, a, b, c)			(a, b, c)
43*8ec969ceSTreehugger Robot #	define	P4(x, a, b, c, d)		(a, b, c, d)
44*8ec969ceSTreehugger Robot #	define	P5(x, a, b, c, d, e)		(a, b, c, d, e)
45*8ec969ceSTreehugger Robot #	define	P6(x, a, b, c, d, e, f)		(a, b, c, d, e, f)
46*8ec969ceSTreehugger Robot #	define	P7(x, a, b, c, d, e, f, g)	(a, b, c, d, e, f, g)
47*8ec969ceSTreehugger Robot #	define	P8(x, a, b, c, d, e, f, g, h)	(a, b, c, d, e, f, g, h)
48*8ec969ceSTreehugger Robot 
49*8ec969ceSTreehugger Robot #else /* !NeedFunctionPrototypes */
50*8ec969ceSTreehugger Robot 
51*8ec969ceSTreehugger Robot #	define	P( protos )	( /* protos */ )
52*8ec969ceSTreehugger Robot 
53*8ec969ceSTreehugger Robot #	define	P0()				()
54*8ec969ceSTreehugger Robot #	define	P1(x, a)			x a;
55*8ec969ceSTreehugger Robot #	define	P2(x, a, b)			x a; b;
56*8ec969ceSTreehugger Robot #	define	P3(x, a, b, c)			x a; b; c;
57*8ec969ceSTreehugger Robot #	define	P4(x, a, b, c, d)		x a; b; c; d;
58*8ec969ceSTreehugger Robot #	define	P5(x, a, b, c, d, e)		x a; b; c; d; e;
59*8ec969ceSTreehugger Robot #	define	P6(x, a, b, c, d, e, f)		x a; b; c; d; e; f;
60*8ec969ceSTreehugger Robot #	define	P7(x, a, b, c, d, e, f, g)	x a; b; c; d; e; f; g;
61*8ec969ceSTreehugger Robot #	define	P8(x, a, b, c, d, e, f, g, h)	x a; b; c; d; e; f; g; h;
62*8ec969ceSTreehugger Robot 
63*8ec969ceSTreehugger Robot #endif  /* !NeedFunctionPrototypes */
64*8ec969ceSTreehugger Robot 
65*8ec969ceSTreehugger Robot #endif	/* PROTO_H */
66