[artoolkit-commits] artoolkit/lib/SRC/Gl gsub_lite.c,1.7,1.8
Optical marker tracking and overlay for augmented reality.
Brought to you by:
philip_lamb
From: Philip L. <phi...@us...> - 2005-09-13 21:44:44
|
Update of /cvsroot/artoolkit/artoolkit/lib/SRC/Gl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13483 Modified Files: gsub_lite.c Log Message: Fix pointer type warnings. Index: gsub_lite.c =================================================================== RCS file: /cvsroot/artoolkit/artoolkit/lib/SRC/Gl/gsub_lite.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** gsub_lite.c 13 Sep 2005 21:40:51 -0000 1.7 --- gsub_lite.c 13 Sep 2005 21:44:31 -0000 1.8 *************** *** 233,249 **** GLubyte *where, *terminator; ! /* Extension names should not have spaces. */ ! where = (GLubyte *) strchr(extName, ' '); if (where || *extName == '\0') return GL_FALSE; ! /* It takes a bit of care to be fool-proof about parsing the ! OpenGL extensions string. Don't be fooled by sub-strings, ! etc. */ start = extString; for (;;) { ! where = (GLubyte *) strstr((const char *) start, extName); if (!where) break; ! terminator = where + strlen(extName); if (where == start || *(where - 1) == ' ') if (*terminator == ' ' || *terminator == '\0') --- 233,248 ---- GLubyte *where, *terminator; ! // Extension names should not have spaces. ! where = (GLubyte *)strchr((const char *)extName, ' '); if (where || *extName == '\0') return GL_FALSE; ! // It takes a bit of care to be fool-proof about parsing the ! // OpenGL extensions string. Don't be fooled by sub-strings, etc. start = extString; for (;;) { ! where = (GLubyte *) strstr((const char *)start, (const char *)extName); if (!where) break; ! terminator = where + strlen((const char *)extName); if (where == start || *(where - 1) == ' ') if (*terminator == ' ' || *terminator == '\0') |