00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00048 #ifndef DKPROTO_INC
00049
00051 #define DKPROTO_INC 1
00052
00053 #ifndef DKCONFIG_INC
00054 #include <dkconfig.h>
00055 #endif
00056
00057 #if DK_HAVE_PROTOTYPES
00058
00060 #define DK_PR(arg) arg
00061
00063 #define DK_P0() (void)
00064
00066 #define DK_P1(a,b) (a b)
00067
00069 #define DK_P2(a,b,c,d) (a b, c d)
00070
00072 #define DK_P3(a,b,c,d,e,f) (a b, c d, e f)
00073
00075 #define DK_P4(a,b,c,d,e,f,g,h) (a b, c d, e f, g h)
00076
00078 #define DK_P5(a,b,c,d,e,f,g,h,i,j) (a b, c d, e f, g h, i j)
00079
00081 #define DK_P6(a,b,c,d,e,f,g,h,i,j,k,l) (a b, c d, e f, g h, i j, k l)
00082
00084 #define DK_P7(a,b,c,d,e,f,g,h,i,j,k,l,m,n) (a b, c d, e f, g h, i j, k l, m n)
00085
00087 #define DK_P8(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) (a b, c d, e f, g h, i j, k l, m n, o p)
00088
00090 #define DK_P9(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r) (a b, c d, e f, g h, i j, k l, m n, o p, q r)
00091
00093 #define DK_P10(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t) (a b, c d, e f, g h, i j, k l, m n, o p, q r, s t)
00094
00096 #define DK_P11(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v) (a b, c d, e f, g h, i j, k l, m n, o p, q r, s t, u v)
00097
00099 #define DK_P12(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x) (a b, c d, e f, g h, i j, k l, m n, o p, q r, s t, u v, w x)
00100
00102 #define DK_P13(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) (a b, c d, e f, g h, i j, k l, m n, o p, q r, s t, u v, w x, y z)
00103 #else
00104 #define DK_PR(arg) ()
00105 #define DK_P0() ()
00106 #define DK_P1(a,b) (b) a b;
00107 #define DK_P2(a,b,c,d) (b,d) a b; c d;
00108 #define DK_P3(a,b,c,d,e,f) (b,d,f) a b; c d; e f;
00109 #define DK_P4(a,b,c,d,e,f,g,h) (b,d,f,h) a b; c d; e f; g h;
00110 #define DK_P5(a,b,c,d,e,fg,h,i,j) (b,d,f,h,j) a b; c d; e f; g h; i j;
00111 #define DK_P6(a,b,c,d,e,fg,h,i,j,k,l) (b,d,f,h,j,l) a b; c d; e f; g h; i j; k l;
00112 #define DK_P7(a,b,c,d,e,fg,h,i,j,k,l,m,n) (b,d,f,h,j,l) a b; c d; e f; g h; i j; k l; m n;
00113 #define DK_P8(a,b,c,d,e,fg,h,i,j,k,l,m,n,o,p) (b,d,f,h,j,l,n,p) a b; c d; e f; g h; i j; k l; m n; o p;
00114 #define DK_P9(a,b,c,d,e,fg,h,i,j,k,l,m,n,o,p,q,r) (b,d,f,h,j,l,n,p,r) a b; c d; e f; g h; i j; k l; m n; o p; q r;
00115 #define DK_P10(a,b,c,d,e,fg,h,i,j,k,l,m,n,o,p,q,r,s,t) (b,d,f,h,j,l,n,p,r,t) a b; c d; e f; g h; i j; k l; m n; o p; q r; s t;
00116 #define DK_P11(a,b,c,d,e,fg,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v) (b,d,f,h,j,l,n,p,r,t,v) a b; c d; e f; g h; i j; k l; m n; o p; q r; s t; u v;
00117 #define DK_P12(a,b,c,d,e,fg,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x) (b,d,f,h,j,l,n,p,r,t,v,x) a b; c d; e f; g h; i j; k l; m n; o p; q r; s t; u v; w x;
00118 #define DK_P13(a,b,c,d,e,fg,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) (b,d,f,h,j,l,n,p,r,t,v,x,z) a b; c d; e f; g h; i j; k l; m n; o p; q r; s t; u v; w x; y z;
00119 #endif
00120
00121 #if DK_HAVE_PROTOTYPES
00122 #define DK_EXT
00123 #else
00124 #define DK_EXT extern
00125 #endif
00126
00127 #endif
00128