Update of /cvsroot/plib/plib/src/ssg
In directory usw-pr-cvs1:/tmp/cvs-serv25822/src/ssg
Modified Files:
ssgLoadMDL.cxx ssgLoadBGL.cxx ssgLoadAC.cxx ssgLoad3ds.cxx
ssgIO.cxx
Log Message:
Minor optimizations
Index: ssgLoadMDL.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadMDL.cxx,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- ssgLoadMDL.cxx 10 Jun 2002 14:15:14 -0000 1.40
+++ ssgLoadMDL.cxx 20 Jun 2002 20:07:52 -0000 1.41
@@ -1384,7 +1384,7 @@
char c;
int i = 0;
- while((c = fgetc(fp)) != 0)
+ while((c = getc(fp)) != 0)
{
if(!isspace(c))
tex_filename[i++] = tolower(c);
@@ -1393,7 +1393,7 @@
// Padding byte
if((strlen(tex_filename) + 1) % 2)
- c = fgetc(fp);
+ c = getc(fp);
DEBUGPRINT( "TEXTURE2: Set texture: name = " << tex_filename <<
std::endl);
Index: ssgLoadBGL.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadBGL.cxx,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- ssgLoadBGL.cxx 20 Jun 2002 16:42:10 -0000 1.7
+++ ssgLoadBGL.cxx 20 Jun 2002 20:07:52 -0000 1.8
@@ -2020,7 +2020,7 @@
char c;
int i = 0;
- while((c = fgetc(fp)) != 0)
+ while((c = getc(fp)) != 0)
{
if(!isspace(c))
tex_filename[i++] = tolower(c);
@@ -2029,7 +2029,7 @@
// Padding byte
if((strlen(tex_filename) + 1) % 2)
- c = fgetc(fp);
+ c = getc(fp);
JMPRINT( ios::hex, "Set texture2: name = " << tex_filename << ", length = 0x" << length
<< ", idx = 0x" << idx << ", flags = 0x" << (short)flags << ", color = 0x" << color);
Index: ssgLoadAC.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadAC.cxx,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- ssgLoadAC.cxx 10 Jun 2002 16:34:29 -0000 1.27
+++ ssgLoadAC.cxx 20 Jun 2002 20:07:52 -0000 1.28
@@ -352,11 +352,11 @@
current_data = new char [ len + 1 ] ;
for ( int i = 0 ; i < len ; i++ )
- current_data [ i ] = fgetc ( loader_fd ) ;
+ current_data [ i ] = getc ( loader_fd ) ;
current_data [ len ] = '\0' ;
- fgetc ( loader_fd ) ; /* Final RETURN */
+ getc ( loader_fd ) ; /* Final RETURN */
ssgBranch *br = current_options -> createBranch ( current_data ) ;
Index: ssgLoad3ds.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/ssg/ssgLoad3ds.cxx,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- ssgLoad3ds.cxx 10 Jun 2002 16:34:29 -0000 1.34
+++ ssgLoad3ds.cxx 20 Jun 2002 20:07:53 -0000 1.35
@@ -343,7 +343,7 @@
char *s = new char[256], read;
int c = 0;
- while ( (read = fgetc(model)) != 0 ) {
+ while ( (read = getc(model)) != 0 ) {
if (c < 255)
s[c++] = read;
}
Index: ssgIO.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/ssg/ssgIO.cxx,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- ssgIO.cxx 18 Dec 2001 16:35:58 -0000 1.35
+++ ssgIO.cxx 20 Jun 2002 20:07:53 -0000 1.36
@@ -203,7 +203,7 @@
for ( i = 0 ; i < MAX_ENTITY_NAME_LENGTH ; i++ )
{
- int c = fgetc ( fd ) ;
+ int c = getc ( fd ) ;
s [ i ] = c ;
if ( c == '\0' )
|