Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
/* Copyright (C) 2002 Aladdin Enterprises.  All rights reserved.
2
 
3
  This software is provided AS-IS with no warranty, either express or
4
  implied.
5
 
6
  This software is distributed under license and may not be copied,
7
  modified or distributed except as expressly authorized under the terms
8
  of the license contained in the file LICENSE in this distribution.
9
 
10
  For more information about licensing, please refer to
11
  http://www.ghostscript.com/licensing/. For information on
12
  commercial licensing, go to http://www.artifex.com/licensing/ or
13
  contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14
  San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15
*/
16
 
17
/* $Id: stdpn.h,v 1.2 2002/06/16 08:59:16 lpd Exp $ */
18
/* Pn macros for pre-ANSI compiler compatibility */
19
 
20
#ifndef stdpn_INCLUDED
21
#  define stdpn_INCLUDED
22
 
23
/*
24
 * We formerly supported "traditional" (pre-ANSI) C compilers, by using
25
 * these macros for formal parameter lists and defining them as empty
26
 * for pre-ANSI compilers, with the syntax
27
 *      resulttype func(Pn(arg1, ..., argn));
28
 * However, we no longer support pre-ANSI compilers; these macros are
29
 * deprecated (should not be used in new code), and eventually will be
30
 * removed.
31
 */
32
 
33
#define P0() void
34
#define P1(t1) t1
35
#define P2(t1,t2) t1,t2
36
#define P3(t1,t2,t3) t1,t2,t3
37
#define P4(t1,t2,t3,t4) t1,t2,t3,t4
38
#define P5(t1,t2,t3,t4,t5) t1,t2,t3,t4,t5
39
#define P6(t1,t2,t3,t4,t5,t6) t1,t2,t3,t4,t5,t6
40
#define P7(t1,t2,t3,t4,t5,t6,t7) t1,t2,t3,t4,t5,t6,t7
41
#define P8(t1,t2,t3,t4,t5,t6,t7,t8) t1,t2,t3,t4,t5,t6,t7,t8
42
#define P9(t1,t2,t3,t4,t5,t6,t7,t8,t9) t1,t2,t3,t4,t5,t6,t7,t8,t9
43
#define P10(t1,t2,t3,t4,t5,t6,t7,t8,t9,t10) t1,t2,t3,t4,t5,t6,t7,t8,t9,t10
44
#define P11(t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11) t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11
45
#define P12(t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12) t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12
46
#define P13(t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13) t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13
47
#define P14(t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14) t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14
48
#define P15(t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15) t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15
49
#define P16(t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16) t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16
50
 
51
#endif /* stdpn_INCLUDED */