Server 0.0.1
HTTP/REST server implementation

include/commons.h

Go to the documentation of this file.
00001 
00023 #ifndef __COMMONS_H__
00024 #define __COMMONS_H__
00025 
00026 #define Bool    char
00027 #define TRUE    1
00028 #define FALSE   0
00029 
00030 #ifndef MAX
00031 #       define MAX(a,b) ((a)>(b)? (a) : (b))
00032 #endif
00033 
00034 #ifndef MIN
00035 #       define MIN(a,b) ((a)<(b)? (a) : (b))
00036 #endif 
00037 
00038 #define SWAP_FUN(a, b)  ((a)^=(b),(b)^=(a),(a)^=(b))
00039 
00040 #define SWAP(type, a, b) do { \
00041         type tmp = (a);           \
00042         (a) = (b);                \
00043         (b) = tmp;                \
00044 } while(0);
00045 
00046 #endif // __COMMONS_H__
00047 
00048 // vim: set ts=4 sw=4:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines