Defines | |
#define | ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0])) |
#define | basename(x) DO_NOT_CALL_MALLOC__USE_C_BASENAME_INSTEAD |
#define | calloc(x, y) DO_NOT_CALL_CALLOC__USE_C_CALLOC_INSTEAD |
#define | dirname(x) DO_NOT_CALL_MALLOC__USE_C_DIRNAME_INSTEAD |
#define | INT_TO_POINTER(i) (void *) i |
#define | malloc(x) DO_NOT_CALL_MALLOC__USE_C_MALLOC_INSTEAD |
#define | MAX(a, b) ((a) < (b) ? (b) : (a)) |
#define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
#define | POINTER_TO_INT(p) *((int *) (p)) |
#define | realloc(x, y) DO_NOT_CALL_REALLOC__USE_C_REALLOC_INSTEAD |
#define | SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0) |
#define | strdup(x) DO_NOT_CALL_STRDUP__USE_C_STRDUP_INSTEAD |
#define | ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x)) |
#define | ZERO_STRUCTP(x) do { if ((x) != NULL) memset((char *)(x), 0, sizeof(*(x))); } while(0) |
#define ARRAY_SIZE | ( | a | ) | (sizeof(a)/sizeof(a[0])) |
#define basename | ( | x | ) | DO_NOT_CALL_MALLOC__USE_C_BASENAME_INSTEAD |
#define calloc | ( | x, | |||
y | ) | DO_NOT_CALL_CALLOC__USE_C_CALLOC_INSTEAD |
#define dirname | ( | x | ) | DO_NOT_CALL_MALLOC__USE_C_DIRNAME_INSTEAD |
#define malloc | ( | x | ) | DO_NOT_CALL_MALLOC__USE_C_MALLOC_INSTEAD |
#define MAX | ( | a, | |||
b | ) | ((a) < (b) ? (b) : (a)) |
#define MIN | ( | a, | |||
b | ) | ((a) < (b) ? (a) : (b)) |
#define realloc | ( | x, | |||
y | ) | DO_NOT_CALL_REALLOC__USE_C_REALLOC_INSTEAD |
#define SAFE_FREE | ( | x | ) | do { if ((x) != NULL) {free(x); x=NULL;} } while(0) |
#define strdup | ( | x | ) | DO_NOT_CALL_STRDUP__USE_C_STRDUP_INSTEAD |
#define ZERO_STRUCT | ( | x | ) | memset((char *)&(x), 0, sizeof(x)) |
#define ZERO_STRUCTP | ( | x | ) | do { if ((x) != NULL) memset((char *)(x), 0, sizeof(*(x))); } while(0) |