mirror of
https://github.com/worldforge/ember
synced 2026-08-13 16:23:06 -04:00
2005-09-24 Erik Hjortsberg <erik@katastrof.nu>
* src/framework/tinyxml/tinyxml.cpp, src/framework/tinyxml/tinystr.cpp, src/framework/tinyxml/tinyxmlerror.cpp, src/framework/tinyxml/tinyxmlparser.cpp: made various adjustements which makes it compile on MSVC * src/framework/float_cast.h: provides lrint functionality on platforms with outdated C libs, such as win32. Thanks to Erik de Castro Lopo * src/framework/osdir.h: provides platform independent directory browsing support. It works, but isn't that full-featured. And it's a shame it doesn't use the STL syntax for iteration. Thanks Bart Vanhauwaert
This commit is contained in:
parent
5e6b884d26
commit
527a49c150
6 changed files with 323 additions and 10 deletions
|
|
@ -22,7 +22,7 @@ must not be misrepresented as being the original software.
|
|||
distribution.
|
||||
*/
|
||||
|
||||
#include <tinyxml/tinyxml.h>
|
||||
#include "tinyxml.h"
|
||||
#include <ctype.h>
|
||||
#include <stddef.h>
|
||||
|
||||
|
|
@ -496,7 +496,11 @@ const char* TiXmlBase::GetEntity( const char* p, char* value, int* length, TiXml
|
|||
// Now try to match it.
|
||||
for( i=0; i<NUM_ENTITY; ++i )
|
||||
{
|
||||
#ifdef __WIN32__
|
||||
if ( strnicmp( entity[i].str, p, entity[i].strLength ) == 0 )
|
||||
#else
|
||||
if ( strncasecmp( entity[i].str, p, entity[i].strLength ) == 0 )
|
||||
#endif
|
||||
{
|
||||
assert( strlen( entity[i].str ) == entity[i].strLength );
|
||||
*value = entity[i].chr;
|
||||
|
|
@ -931,7 +935,7 @@ void TiXmlElement::StreamIn (TIXML_ISTREAM * in, TIXML_STRING * tag)
|
|||
// We should be at a "<", regardless.
|
||||
if ( !in->good() ) return;
|
||||
assert( in->peek() == '<' );
|
||||
int tagIndex = tag->length();
|
||||
size_t tagIndex = tag->length();
|
||||
|
||||
bool closingTag = false;
|
||||
bool firstCharFound = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue