|
version 1.2.2.6, 2011/12/13 02:22:05
|
version 1.4.4.1, 2012/03/27 20:53:37
|
|
Line 12 terms:
|
Line 12 terms:
|
| All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
| Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
| |
|
| Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 | Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 |
| by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
| |
|
| Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
|
Line 487 io_freeVars(array_t ** __restrict vars)
|
Line 487 io_freeVars(array_t ** __restrict vars)
|
| io_clrVars(*vars); |
io_clrVars(*vars); |
| io_arrayFree(*vars); |
io_arrayFree(*vars); |
| io_arrayDestroy(vars); |
io_arrayDestroy(vars); |
| |
} |
| |
|
| |
/* |
| |
* io_allocVar() Allocate memory for variable |
| |
* return: NULL error or new variable, after use free variable with io_freeVar() |
| |
*/ |
| |
inline ait_val_t * |
| |
io_allocVar(void) |
| |
{ |
| |
ait_val_t *v = NULL; |
| |
|
| |
v = malloc(sizeof(ait_val_t)); |
| |
if (!v) { |
| |
LOGERR; |
| |
return NULL; |
| |
} else |
| |
memset(v, 0, sizeof(ait_val_t)); |
| |
v->val_type = empty; |
| |
|
| |
return v; |
| |
} |
| |
|
| |
/* |
| |
* io_freeVar() Free allocated memory for variable |
| |
* @val = Variable |
| |
* return: none |
| |
*/ |
| |
inline void |
| |
io_freeVar(ait_val_t * __restrict val) |
| |
{ |
| |
if (val) { |
| |
AIT_FREE_VAL(val); |
| |
free(val); |
| |
val = NULL; |
| |
} |
| } |
} |