--- libaitio/src/aitio.c 2012/05/23 13:53:00 1.10.6.4 +++ libaitio/src/aitio.c 2012/05/23 14:06:08 1.10.6.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.c,v 1.10.6.4 2012/05/23 13:53:00 misho Exp $ +* $Id: aitio.c,v 1.10.6.5 2012/05/23 14:06:08 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -171,7 +171,7 @@ inline void ioLibFini() { switch (use_mm) { - case 1: + case IO_MPOOL: mpool_destroy(&io_mpool); io_malloc = malloc; @@ -412,7 +412,7 @@ ioRegexGet(const char *csRegex, const char *csData, ch * @csRegex = Regulare expression pattern * @csData = Source data * @csNew = Data for replace - * return: NULL not match or error; !=NULL allocated new string, must be xfree after use! + * return: NULL not match or error; !=NULL allocated new string, must be io_free after use! */ char * ioRegexReplace(const char *csRegex, const char *csData, const char *csNew) @@ -428,7 +428,7 @@ ioRegexReplace(const char *csRegex, const char *csData // ___ before match len = sp + 1; - str = xmalloc(len); + str = io_malloc(len); if (!str) { LOGERR; return NULL; @@ -437,7 +437,7 @@ ioRegexReplace(const char *csRegex, const char *csData // * replace match * if (csNew) { len += strlen(csNew); - str = xrealloc(str, len); + str = io_realloc(str, len); if (!str) { LOGERR; return NULL; @@ -446,7 +446,7 @@ ioRegexReplace(const char *csRegex, const char *csData } // after match ___ len += strlen(csData) - ep; - str = xrealloc(str, len); + str = io_realloc(str, len); if (!str) { LOGERR; return NULL; @@ -460,7 +460,7 @@ ioRegexReplace(const char *csRegex, const char *csData * ioStrAst() - Function for evaluate string like asterisk variable "{text[:[-]#[:#]]}" * * @csString = Input string - * return: NULL error, !=NULL Allocated new string evaluated from input string, must be xfree() + * return: NULL error, !=NULL Allocated new string evaluated from input string, must be io_free() */ char * ioStrAst(const char *csString) @@ -501,7 +501,7 @@ ioStrAst(const char *csString) ext = str; out = strdup(ext); - xfree(str); + io_free(str); return out; } @@ -551,7 +551,7 @@ ioMkDir(const char *csDir, int mode) } end: chdir(szOld); - xfree(str); + io_free(str); return cx; }