Diff for /libaitio/inc/aitio.h between versions 1.13.2.5 and 1.13.2.6

version 1.13.2.5, 2011/12/14 15:00:24 version 1.13.2.6, 2011/12/16 01:34:03
Line 176  typedef struct { Line 176  typedef struct {
                                                         __val->val_type = string; \                                                          __val->val_type = string; \
                                                         AIT_LEN(__val) = strlen((_v)) + 1; \                                                          AIT_LEN(__val) = strlen((_v)) + 1; \
                                                 } } while (0)                                                  } } while (0)
   #define AIT_SET_STRCAT(_vl, _v)         do { ait_val_t *__val = (_vl); assert(__val); assert((_v)); \
                                                   assert(AIT_TYPE(__val) == string); \
                                                   void *__p = realloc(AIT_LEN(__val) + strlen((_v))); \
                                                   if (__p) { \
                                                           __val->val.string = __p; \
                                                           AIT_LEN(__val) += strlen((_v)); \
                                                           strlcat(__val->val.string, (_v), AIT_LEN(__val)); \
                                                   } } while (0)
 #define AIT_SET_BLOB(_vl, _n, _len)     do { ait_val_t *__val = (_vl); assert(__val); \  #define AIT_SET_BLOB(_vl, _n, _len)     do { ait_val_t *__val = (_vl); assert(__val); \
                                                 __val->val_type = blob; AIT_LEN(__val) = _len; \                                                  __val->val_type = blob; AIT_LEN(__val) = _len; \
                                                 __val->val.blob = _n; } while (0)                                                  __val->val.blob = _n; } while (0)
Line 216  typedef struct { Line 224  typedef struct {
                                                 AIT_LEN(__val) = sizeof(double); } while (0)                                                  AIT_LEN(__val) = sizeof(double); } while (0)
   
                                         /* if attribute zeroCopy is set not execute free() */                                          /* if attribute zeroCopy is set not execute free() */
#define AIT_FREE_VAL(_vl)               do { ait_val_t *__val = (_vl); assert(__val); \#define AIT_FREE_VAL(_vl)               do { ait_val_t *__val = (ait_val_t*) (_vl); assert(__val); \
                                                 switch (__val->val_type) { \                                                  switch (__val->val_type) { \
                                                         case buffer: \                                                          case buffer: \
                                                                 if (__val->val.buffer) { \                                                                  if (__val->val.buffer) { \

Removed from v.1.13.2.5  
changed lines
  Added in v.1.13.2.6


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>