Generate MinGW makefile in the backend.

svn path=/branches/xmlbuildsystem/; revision=12837
This commit is contained in:
Casper Hornstrup 2005-01-05 20:59:10 +00:00
parent 222bde955c
commit 1568981925
12 changed files with 127 additions and 75 deletions

View file

@ -7,6 +7,7 @@
#include <assert.h>
#include "XML.h"
#include "rbuild.h"
using std::string;
using std::vector;
@ -397,8 +398,8 @@ XMLElement::GetAttribute ( const string& attribute,
}
if ( required )
{
printf ( "syntax error: attribute '%s' required for <%s>\n",
attribute.c_str(), name.c_str() );
throw RequiredAttributeNotFoundException ( attribute,
name );
}
return NULL;
}
@ -416,8 +417,8 @@ XMLElement::GetAttribute ( const string& attribute,
}
if ( required )
{
printf ( "syntax error: attribute '%s' required for <%s>\n",
attribute.c_str(), name.c_str() );
throw RequiredAttributeNotFoundException ( attribute,
name );
}
return NULL;
}
@ -462,7 +463,7 @@ XMLParse(XMLFile& f,
e->attributes.push_back ( new XMLAttribute ( "top_href", top_file ) );
XMLFile fInc;
if ( !fInc.open ( file ) )
printf ( "xi:include error, couldn't find file '%s'\n", file.c_str() );
throw FileNotFoundException ( file );
else
{
Path path2 ( path, att->value );