--- libaitio/inc/aitio.h 2012/04/24 08:24:01 1.16.2.13 +++ libaitio/inc/aitio.h 2012/05/14 12:48:21 1.16.2.14 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.16.2.13 2012/04/24 08:24:01 misho Exp $ +* $Id: aitio.h,v 1.16.2.14 2012/05/14 12:48:21 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -357,7 +357,7 @@ inline ait_val_t *io_allocVar(void); * @val = Variable * return: none */ -inline void io_freeVar(ait_val_t * __restrict val); +inline void io_freeVar(ait_val_t ** __restrict val); /* * io_allocVars() - Allocate ait_val_t array * @@ -601,6 +601,7 @@ int io_arrayVacuum(array_t * __restrict arr, int fromW #define io_arrayZero(_arr) (assert((_arr)), memset((_arr)->arr_data, 0, \ io_arraySize((_arr)) * sizeof(void*))) +#define io_arrayGet2(_arr, _d) (assert((_arr) && (_arr)->arr_num > _d), ((_arr)->arr_data + _d)) #define io_arrayGet(_arr, _d) (assert((_arr) && (_arr)->arr_num > _d), *((_arr)->arr_data + _d)) #define io_array(_arr, _d, _type) (assert((_arr) && (_arr)->arr_num > _d), \ ((_type) *((_arr)->arr_data + _d)))