client-c  0.7.0
avro_private.h File Reference
#include <errno.h>
#include "avro/platform.h"
#include <sys/param.h>
+ Include dependency graph for avro_private.h:

Go to the source code of this file.

Macros

#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)))
 

Macro Definition Documentation

#define AVRO_PLATFORM_IS_BIG_ENDIAN   (1)

Definition at line 44 of file avro_private.h.

#define AVRO_UNUSED (   var)    (void)var;

Definition at line 82 of file avro_private.h.

#define check (   rval,
  call 
)    { rval = call; if(rval) return rval; }

Definition at line 57 of file avro_private.h.

#define check_param (   result,
  test,
  name 
)
Value:
{ \
if (!(test)) { \
return result; \
} \
}

Definition at line 75 of file avro_private.h.

#define check_prefix (   rval,
  call,
  ... 
)
Value:
{ \
rval = call; \
if (rval) { \
return rval; \
} \
}

Definition at line 67 of file avro_private.h.

#define check_set (   rval,
  call,
  ... 
)
Value:
{ \
rval = call; \
if (rval) { \
return rval; \
} \
}

Definition at line 59 of file avro_private.h.

#define container_of (   ptr_,
  type_,
  member_ 
)    ((type_ *)((char *)ptr_ - (size_t)&((type_ *)0)->member_))

Definition at line 84 of file avro_private.h.

#define EILSEQ   138

Definition at line 53 of file avro_private.h.

#define nullstrcmp (   s1,
  s2 
)    (((s1) && (s2)) ? strcmp(s1, s2) : ((s1) || (s2)))

Definition at line 87 of file avro_private.h.