--- libaitio/inc/aitio.h 2012/05/17 16:42:01 1.17.4.5 +++ libaitio/inc/aitio.h 2012/05/18 09:19:53 1.17.4.6 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.17.4.5 2012/05/17 16:42:01 misho Exp $ +* $Id: aitio.h,v 1.17.4.6 2012/05/18 09:19:53 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -410,7 +410,14 @@ inline int io_clrVars(array_t * __restrict vars); * return: none */ inline void io_freeVars(array_t ** __restrict vars); -#define io_getVars(x, _i) (io_array((x), _i, ait_val_t*)) +/* + * io_getVars() - Get ait_val_t element from array and if not exists allocate it + * + * @vars = Variable array + * @n = index of variable into array + * return: NULL error or !=NULL ait_val_t element + */ +inline ait_val_t *io_getVars(array_t * __restrict vars, int n); /* * io_sortVars() - Sorting array with variables *