Fixed typos in debug messages and comments

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@250 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 31e8791688f3974e66151d450186bdae166aabfc
Former-commit-id: 9505d2b7142dade9eadf36b02ac0a0120f7f4954
This commit is contained in:
pouillot 2008-11-16 18:32:58 +00:00
parent e4bf59c399
commit 4045527417

View file

@ -977,7 +977,7 @@ GfParmReadBuf (char *buffer)
/* Parameters reading in buffer */ /* Parameters reading in buffer */
if (parseXml (parmHandle, buffer, strlen (buffer), 1)) { if (parseXml (parmHandle, buffer, strlen (buffer), 1)) {
GfError ("gfParmReadBuf: Parse failed for buffer\n"); GfError ("gfParmReadBuf: Parsing failed for buffer\n");
goto bailout; goto bailout;
} }
@ -999,7 +999,7 @@ GfParmReadBuf (char *buffer)
@ingroup conf @ingroup conf
@param logHandle log handle @param logHandle log handle
@param file name of the file to read or content if input is a buffer. @param file name of the file to read or content if input is a buffer.
@param mode openning mode is a mask of: @param mode opening mode is a mask of:
#GF_PARM_RMODE_STD #GF_PARM_RMODE_STD
#GF_PARM_RMODE_REREAD #GF_PARM_RMODE_REREAD
#GF_PARM_RMODE_CREAT #GF_PARM_RMODE_CREAT
@ -1017,7 +1017,7 @@ GfParmReadFile (const char *file, int mode)
int len; int len;
int done; int done;
/* search for an already openned header & clean the conf if necessary */ /* search for an already open header & clean the conf if necessary */
conf = getSharedHeader (file, mode); conf = getSharedHeader (file, mode);
/* Conf Header creation */ /* Conf Header creation */
@ -1044,7 +1044,7 @@ GfParmReadFile (const char *file, int mode)
parmHandle->flag = PARM_HANDLE_FLAG_PRIVATE; parmHandle->flag = PARM_HANDLE_FLAG_PRIVATE;
} }
/* File openning */ /* File opening */
if (mode & GFPARM_RMODE_REREAD) { if (mode & GFPARM_RMODE_REREAD) {
in = fopen (file, "r"); in = fopen (file, "r");
if (!in && ((mode & GFPARM_RMODE_CREAT) == 0)) { if (!in && ((mode & GFPARM_RMODE_CREAT) == 0)) {
@ -1063,12 +1063,12 @@ GfParmReadFile (const char *file, int mode)
len = fread (buf, 1, sizeof(buf), in); len = fread (buf, 1, sizeof(buf), in);
done = len < (int)sizeof(buf); done = len < (int)sizeof(buf);
if (parseXml (parmHandle, buf, len, done)) { if (parseXml (parmHandle, buf, len, done)) {
GfError ("gfParmReadFile: Parse failed in file \"%s\"\n", file); GfError ("gfParmReadFile: Parsing failed in file \"%s\"\n", file);
goto bailout; goto bailout;
} }
if (parmHandle->flag & PARM_HANDLE_FLAG_PARSE_ERROR) { if (parmHandle->flag & PARM_HANDLE_FLAG_PARSE_ERROR) {
/* parse error occured, ignore */ /* parse error occured, ignore */
GfError ("gfParmReadFile: Parse failed in file \"%s\"\n", file); GfError ("gfParmReadFile: Parsing failed in file \"%s\"\n", file);
goto bailout; goto bailout;
} }
} while (!done); } while (!done);
@ -1080,7 +1080,7 @@ GfParmReadFile (const char *file, int mode)
GF_TAILQ_INSERT_HEAD (&parmHandleList, parmHandle, linkHandle); GF_TAILQ_INSERT_HEAD (&parmHandleList, parmHandle, linkHandle);
GfOut ("GfParmReadFile: Openning \"%s\" (%p)\n", file, parmHandle); GfOut ("GfParmReadFile: Opening \"%s\" (%p)\n", file, parmHandle);
return parmHandle; return parmHandle;