|
#define | CPL_RECODE_ICONV |
|
#define | CPL_RECODE_STUB |
|
#define | CPL_GBOOL_DEFINED |
|
#define | CPL_FRMT_GB_WITHOUT_PREFIX "ll" |
|
#define | CPL_FRMT_GIB "%" CPL_FRMT_GB_WITHOUT_PREFIX "d" |
|
#define | CPL_FRMT_GUIB "%" CPL_FRMT_GB_WITHOUT_PREFIX "u" |
|
#define | GUINTBIG_TO_DOUBLE(x) (double)(x) |
|
#define | CPL_C_START extern "C" { |
|
#define | CPL_C_END } |
|
#define | CPL_ODLL |
|
#define | FORCE_CDECL |
|
#define | CPL_INLINE |
|
#define | NULL 0 |
|
#define | FALSE 0 |
|
#define | TRUE 1 |
|
#define | MIN(a, b) ((a<b) ? a : b) |
|
#define | MAX(a, b) ((a>b) ? a : b) |
|
#define | ABS(x) ((x<0) ? (-1*(x)) : x) |
|
#define | M_PI 3.14159265358979323846 /* pi */ |
|
#define | CPLIsEqual(x, y) (fabs((x) - (y)) < 0.0000000000001) |
|
#define | STRCASECMP(a, b) (strcasecmp(a,b)) |
|
#define | STRNCASECMP(a, b, n) (strncasecmp(a,b,n)) |
|
#define | EQUALN(a, b, n) (STRNCASECMP(a,b,n)==0) |
|
#define | EQUAL(a, b) (STRCASECMP(a,b)==0) |
|
#define | CPL_THREADLOCAL |
|
#define | CPLIsNan(x) isnan(x) |
|
#define | CPLIsInf(x) FALSE |
|
#define | CPLIsFinite(x) (!isnan(x)) |
|
#define | CPL_LSB |
|
#define | CPL_IS_LSB 1 |
|
#define | CPL_SWAP16(x) |
|
#define | CPL_SWAP16PTR(x) |
|
#define | CPL_SWAP32(x) |
|
#define | CPL_SWAP32PTR(x) |
|
#define | CPL_SWAP64PTR(x) |
|
#define | CPL_SWAPDOUBLE(p) CPL_SWAP64PTR(p) |
|
#define | CPL_LSBWORD16(x) (x) |
|
#define | CPL_MSBWORD16(x) CPL_SWAP16(x) |
|
#define | CPL_LSBWORD32(x) (x) |
|
#define | CPL_MSBWORD32(x) CPL_SWAP32(x) |
|
#define | CPL_LSBPTR16(x) |
|
#define | CPL_MSBPTR16(x) CPL_SWAP16PTR(x) |
|
#define | CPL_LSBPTR32(x) |
|
#define | CPL_MSBPTR32(x) CPL_SWAP32PTR(x) |
|
#define | CPL_LSBPTR64(x) |
|
#define | CPL_MSBPTR64(x) CPL_SWAP64PTR(x) |
|
#define | CPL_LSBINT16PTR(x) ((*(GByte*)(x)) | ((*(GByte*)((x)+1)) << 8)) |
| Return a Int16 from the 2 bytes ordered in LSB order at address x.
|
|
#define | CPL_LSBINT32PTR(x) |
| Return a Int32 from the 4 bytes ordered in LSB order at address x. More...
|
|
#define | CPL_LSBSINT16PTR(x) ((GInt16) CPL_LSBINT16PTR(x)) |
| Return a signed Int16 from the 2 bytes ordered in LSB order at address x.
|
|
#define | CPL_LSBUINT16PTR(x) ((GUInt16)CPL_LSBINT16PTR(x)) |
| Return a unsigned Int16 from the 2 bytes ordered in LSB order at address x.
|
|
#define | CPL_LSBSINT32PTR(x) ((GInt32) CPL_LSBINT32PTR(x)) |
| Return a signed Int32 from the 4 bytes ordered in LSB order at address x.
|
|
#define | CPL_LSBUINT32PTR(x) ((GUInt32)CPL_LSBINT32PTR(x)) |
| Return a unsigned Int32 from the 4 bytes ordered in LSB order at address x.
|
|
#define | UNREFERENCED_PARAM(param) ((void)param) |
|
#define | CPL_CVSID(string) |
|
#define | CPL_NULL_TERMINATED |
|
#define | CPL_PRINT_FUNC_FORMAT(format_idx, arg_idx) |
|
#define | CPL_WARN_UNUSED_RESULT |
|
#define | CPL_UNUSED |
|
#define | CPL_NO_RETURN |
|
Core portability definitions for CPL.