releasing package cdck version 0.7.0+dfsg-3
[debian/cdck.git] / src / defines.h
1 /*
2  * $RCSfile: defines.h,v $
3  * $Author: swaj $
4  * $Revision: 1.1 $  
5  */
6
7
8 #ifndef __DEFINES_H_
9 #define __DEFINES_H_ 1
10
11
12 #define RET_SUCCESS 0
13 #define RET_FAILED !RET_SUCCESS
14
15
16 #define unless(__a) if(!(__a))
17
18
19 typedef unsigned char uchar;
20 typedef void * pointer;
21
22
23 #ifndef MAX
24 #define MAX(__a,__b) ((__a) > (__b) ? (__a) : (__b))
25 #endif
26
27 #ifndef MIN
28 #define MIN(__a,__b) ((__a) < (__b) ? (__a) : (__b))
29 #endif
30
31
32 #endif /* __DEFINES_H_ */
33
34
35
36 /*
37  *  __END__
38  */ 
39