--- libaitcfg/src/parse.c 2010/03/22 18:29:22 1.5.2.1 +++ libaitcfg/src/parse.c 2010/03/22 19:16:34 1.5.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: parse.c,v 1.5.2.1 2010/03/22 18:29:22 misho Exp $ +* $Id: parse.c,v 1.5.2.2 2010/03/22 19:16:34 misho Exp $ * *************************************************************************/ #include "global.h" @@ -118,7 +118,7 @@ int ReadConfig(FILE *f, sl_config * __restrict cfg) while (!feof(f)) { memset(szLine, 0, MAX_STR + 1); fgets((char*) szLine, MAX_STR, f); - trim(szLine); + io_TrimStr(szLine); #ifdef __DEBUG cfgDbg(stdout, "DEBUG:: RAW |%s|\n", szLine); #endif @@ -184,9 +184,9 @@ int ReadConfig(FILE *f, sl_config * __restrict cfg) psAttr = szLine; psVal = (szLine + pos + 1); szLine[pos] = 0; - rtrim(psAttr); - ltrim(psVal); - unquot(psVal); + io_RTrimStr(psAttr); + io_LTrimStr(psVal); + io_UnquotStr(psVal); #ifdef __DEBUG cfgDbg(stdout, "DEBUG:: Attr(%p) ->%s size=%d Value(%p) ->%s size=%d\n", psAttr, psAttr, strlen((char*) psAttr), psVal, psVal, strlen((char*) psVal));