--- libaitio/inc/aitio.h 2012/04/05 11:46:20 1.16.2.8 +++ libaitio/inc/aitio.h 2012/04/05 12:21:14 1.16.2.9 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.16.2.8 2012/04/05 11:46:20 misho Exp $ +* $Id: aitio.h,v 1.16.2.9 2012/04/05 12:21:14 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -121,7 +121,6 @@ typedef struct { #define AIT_VOID(_vl) (_vl)->val.ptr #define AIT_BLOB_CHUNKS(_vl, _n) (AIT_LEN((_vl)) / _n + (AIT_LEN((_vl)) % _n) ? 1 : 0) #define AIT_ISEMPTY(_vl) (AIT_TYPE((_vl)) == empty) -#define AIT_INIT(_vl) (memset((_vl), 0, sizeof(ait_val_t))) #define AIT_GET_LIKE(_vl, _type) ((_type) (_vl)->val.ptr) @@ -214,6 +213,7 @@ typedef struct { __val->val_type = f64; __val->val.f64 = _n; \ AIT_LEN(__val) = sizeof(double); } while (0) +#define AIT_INIT_VAL(_vl) (memset((_vl), 0, sizeof(ait_val_t))) /* if attribute zeroCopy is set not execute free() */ #define AIT_FREE_VAL(_vl) do { ait_val_t *__val = (_vl); assert(__val); \ switch (AIT_TYPE(__val)) { \