don't allow duplicate module names
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/project.cpp

Modified: branches/xmlbuildsystem/reactos/tools/rbuild/project.cpp
--- branches/xmlbuildsystem/reactos/tools/rbuild/project.cpp	2005-01-08 04:33:01 UTC (rev 12880)
+++ branches/xmlbuildsystem/reactos/tools/rbuild/project.cpp	2005-01-08 05:22:02 UTC (rev 12881)
@@ -77,7 +77,14 @@
 	string subpath(path);
 	if ( e.name == "module" )
 	{
-		modules.push_back ( new Module ( *this, e, path ) );
+		Module* module = new Module ( *this, e, path );
+		if ( LocateModule ( module->name ) )
+			throw InvalidBuildFileException (
+				node->location,
+				"module name conflict: '%s' (originally defined at %s)",
+				module->name.c_str(),
+				module->node.location.c_str() );
+		modules.push_back ( module );
 		return; // defer processing until later
 	}
 	else if ( e.name == "directory" )