[Plib-cvs] plib/src/ssg ssgLoadASC.cxx,1.3,1.4
Brought to you by:
sjbaker
From: Wolfram K. <wol...@us...> - 2004-12-02 20:56:41
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31821/ssg Modified Files: ssgLoadASC.cxx Log Message: ulStrNEqual works differently than strnicmp, I had not taken this into account when changing over. Index: ssgLoadASC.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadASC.cxx,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- ssgLoadASC.cxx 29 Oct 2004 22:28:16 -0000 1.3 +++ ssgLoadASC.cxx 2 Dec 2004 20:56:30 -0000 1.4 @@ -55,13 +55,13 @@ while((*p == ' ') || (*p == 9)) p++; // p points to the first word (or the line end) now. - if(0 == ulStrNEqual(p, "Page", strlen("Page"))) + if(ulStrNEqual(p, "Page", strlen("Page"))) { // Since this loader ignores the line structure, // we can also ignore the \n or \r and just "delete" the whole line line[0] = 0; } - if(0 == ulStrNEqual(p, "Camera", strlen("Camera"))) + if(ulStrNEqual(p, "Camera", strlen("Camera"))) line[0] = 0; } @@ -551,7 +551,7 @@ s[strlen(s)-1]=0; // **** search for it **** for(int i=0; i<noOfAscmaterials; i++) - if(0==ulStrEqual(s, AscMaterials[i].sName)) + if(ulStrEqual(s, AscMaterials[i].sName)) return i; // **** not found - create it **** AscMaterials[noOfAscmaterials].sName = new char[strlen(s)+1]; @@ -606,7 +606,7 @@ // "Vertex 0: X:115.710701 Y:180.000305 Z:-60.796242 U:0.048042 V:0.996284" { char *sNextToken = parser.peekAtNextToken( "vertex list?" ); - if(0 == ulStrEqual("list", sNextToken)) + if(ulStrEqual("list", sNextToken)) { parser.expectNextToken("list"); parser.expectNextToken(":"); @@ -655,7 +655,7 @@ // "Face 0: A:0 B:10 C:7 AB:1 BC:1 CA:1" { char *sNextToken = parser.peekAtNextToken( "Face list?" ); - if(0 == ulStrEqual("list", sNextToken)) + if(ulStrEqual("list", sNextToken)) { parser.expectNextToken("list"); parser.expectNextToken(":"); |