Go to the documentation of this file.
22 #ifndef __CCL_COMMON_H__
23 # define __CCL_COMMON_H__
25 # include <ccl/ccl-config.h>
31 # if CCL_HAVE_STDLIB_H
35 #ifdef CCL_HAVE_SYS_TYPES_H
36 # include <sys/types.h>
39 #ifdef CCL_HAVE_SYS_STAT_H
40 # include <sys/stat.h>
43 #ifdef CCL_STDC_HEADERS
47 # ifdef CCL_HAVE_STDLIB_H
52 #ifdef CCL_HAVE_STRING_H
53 # if !defined CCL_STDC_HEADERS && defined CCL_HAVE_MEMORY_H
59 #ifdef CCL_HAVE_STRINGS_H
63 #ifdef CCL_HAVE_INTTYPES_H
64 # include <inttypes.h>
67 #ifdef CCL_HAVE_STDINT_H
71 #ifdef CCL_HAVE_UNISTD_H
75 # if CCL_HAVE_STDARG_H
80 # define size_t _ccl_size_t
83 # ifdef _ccl_uint_32_t
84 # define uint32_t _ccl_uint32_t
87 # ifdef _ccl_uintptr_t
88 # define uintptr_t _ccl_uintptr_t
91 # ifndef BEGIN_C_DECLS
93 # define BEGIN_C_DECLS extern "C" {
94 # define END_C_DECLS }
96 # define BEGIN_C_DECLS
102 # define NULL ((void *) ((uintptr_t) 0))
108 # define CCL_NOP() ((void) 0)
114 # define CCL_BITPTR(_type,_p) ((_type)(((uintptr_t)(_p))|((uintptr_t)1)))
120 # define CCL_PTRHASBIT(_p) (((uintptr_t)(_p))&((uintptr_t)1))
126 # define CCL_BITPTR2PTR(_type,_p) ((_type)(((uintptr_t)(_p))&(~(uintptr_t)1)))
132 #define CCL_FIXME(_comment_) ((void)0)