Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 235 → Rev 236

/bioloid/cli/bioloid.cpp
167,6 → 167,8
 
bool ReadRegisterFiles( const char *exeDir )
{
bool rc = true;
 
#if defined( __WIN32__ )
HANDLE dir;
WIN32_FIND_DATA fd;
180,13 → 182,17
{
DevTypeParser dtp;
 
LogVerbose( "Parsing device type file '%s' ...\n", fd.cFileName );
if ( !dtp.ParseFile( fd.cFileName, AddDevType ))
{
return false;
rc = false;
break;
}
 
} while ( FindNextFile( dir, &fd ));
}
 
FindClose( dir );
#else
DIR *dir;
struct dirent *de;
203,9 → 209,11
{
DevTypeParser dtp;
 
LogVerbose( "Parsing device type file '%s' ...\n", de->d_name );
if ( !dtp.ParseFile( de->d_name, AddDevType ))
{
return false;
rc = false;
break;
}
}
}
212,7 → 220,7
 
closedir( dir );
#endif
return true;
return rc;
}
 
/***************************************************************************/
/bioloid/cli/DevTypeParser.cpp
197,7 → 197,6
 
LogError( "Unrecognized keyword: '%s' %s:%d\n", token, m_fileName, m_lineNum );
return false;
}
 
if ( stricmp( token, "DeviceType:" ) == 0 )