Process .idl files before source files

svn path=/trunk/; revision=26435
This commit is contained in:
Hervé Poussineau 2007-04-20 12:18:10 +00:00
parent 0186ef646d
commit c3111bb5ce

View file

@ -583,7 +583,13 @@ Module::ProcessXMLSubElement ( const XMLElement& e,
if ( parseContext.ifData )
parseContext.ifData->data.compilationUnits.push_back ( pCompilationUnit );
else
non_if_data.compilationUnits.push_back ( pCompilationUnit );
{
string ext = GetExtension ( e.value );
if ( !stricmp ( ext.c_str(), ".idl" ) )
non_if_data.compilationUnits.insert ( non_if_data.compilationUnits.begin(), pCompilationUnit );
else
non_if_data.compilationUnits.push_back ( pCompilationUnit );
}
}
if ( parseContext.ifData )
parseContext.ifData->data.files.push_back ( pFile );