#include <errno.h>
#include "avro/platform.h"
#include <sys/param.h>
Go to the source code of this file.
|
| #define | AVRO_PLATFORM_IS_BIG_ENDIAN (1) |
| |
| #define | EILSEQ 138 |
| |
| #define | check(rval, call) { rval = call; if(rval) return rval; } |
| |
| #define | check_set(rval, call,...) |
| |
| #define | check_prefix(rval, call,...) |
| |
| #define | check_param(result, test, name) |
| |
| #define | AVRO_UNUSED(var) (void)var; |
| |
| #define | container_of(ptr_, type_, member_) ((type_ *)((char *)ptr_ - (size_t)&((type_ *)0)->member_)) |
| |
| #define | nullstrcmp(s1, s2) (((s1) && (s2)) ? strcmp(s1, s2) : ((s1) || (s2))) |
| |
| #define AVRO_PLATFORM_IS_BIG_ENDIAN (1) |
| #define AVRO_UNUSED |
( |
|
var | ) |
(void)var; |
| #define check |
( |
|
rval, |
|
|
|
call |
|
) |
| { rval = call; if(rval) return rval; } |
| #define check_param |
( |
|
result, |
|
|
|
test, |
|
|
|
name |
|
) |
| |
Value:{ \
if (!(test)) { \
return result; \
} \
}
| #define check_prefix |
( |
|
rval, |
|
|
|
call, |
|
|
|
... |
|
) |
| |
Value:{ \
rval = call; \
if (rval) { \
return rval; \
} \
}
| #define check_set |
( |
|
rval, |
|
|
|
call, |
|
|
|
... |
|
) |
| |
Value:{ \
rval = call; \
if (rval) { \
return rval; \
} \
}
| #define container_of |
( |
|
ptr_, |
|
|
|
type_, |
|
|
|
member_ |
|
) |
| ((type_ *)((char *)ptr_ - (size_t)&((type_ *)0)->member_)) |
| #define nullstrcmp |
( |
|
s1, |
|
|
|
s2 |
|
) |
| (((s1) && (s2)) ? strcmp(s1, s2) : ((s1) || (s2))) |