--- libaitio/inc/aitio.h 2012/04/05 11:11:48 1.16.2.7 +++ libaitio/inc/aitio.h 2012/04/05 11:46:20 1.16.2.8 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.16.2.7 2012/04/05 11:11:48 misho Exp $ +* $Id: aitio.h,v 1.16.2.8 2012/04/05 11:46:20 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -121,6 +121,7 @@ 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)