[Plib-cvs] plib/src/ssg ssgLoadASC.cxx,1.1,1.2
Brought to you by:
sjbaker
From: Wolfram K. <wol...@us...> - 2004-10-06 14:33:27
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4689 Modified Files: ssgLoadASC.cxx Log Message: Replaced str(n)icmp by ulStr(N)Equal to make things portable. Index: ssgLoadASC.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadASC.cxx,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- ssgLoadASC.cxx 4 Oct 2004 08:03:37 -0000 1.1 +++ ssgLoadASC.cxx 6 Oct 2004 14:31:55 -0000 1.2 @@ -55,13 +55,13 @@ while((*p == ' ') || (*p == 9)) p++; // p points to the first word (or the line end) now. - if(0 == strnicmp(p, "Page", strlen("Page"))) + if(0 == 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 == strnicmp(p, "Camera", strlen("Camera"))) + if(0 == 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==stricmp(s, AscMaterials[i].sName)) + if(0==ulStrEqual(s, AscMaterials[i].sName)) return i; // **** not found - create it **** AscMaterials[noOfAscmaterials].sName = new char[strlen(s)+1]; @@ -605,7 +605,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 == stricmp("list", sNextToken)) + if(0 == ulStrEqual("list", sNextToken)) { parser.expectNextToken("list"); parser.expectNextToken(":"); @@ -654,7 +654,7 @@ // "Face 0: A:0 B:10 C:7 AB:1 BC:1 CA:1" { char *sNextToken = parser.peekAtNextToken( "Face list?" ); - if(0 == stricmp("list", sNextToken)) + if(0 == ulStrEqual("list", sNextToken)) { parser.expectNextToken("list"); parser.expectNextToken(":"); |