Move output signatures to /signatures/add, in order to unify handling of signatures and overrides.

This commit is contained in:
the_fiddler 2010-12-03 09:47:48 +00:00
parent 94cd438166
commit a09e6aa510

View file

@ -139,11 +139,12 @@ namespace CHeaderToXML
using (var writer = XmlWriter.Create(out_stream, settings))
{
new XElement("signatures",
entries.Values.OrderBy(s => s.Attribute("name").Value), // only enums
sigs.SelectMany(s => s).Where(s => s.Name.LocalName == "function") // only functions
.OrderBy(s => s.Attribute("extension").Value)
.ThenBy(s => s.Attribute("name").Value)
).WriteTo(writer);
new XElement("add",
entries.Values.OrderBy(s => s.Attribute("name").Value), // only enums
sigs.SelectMany(s => s).Where(s => s.Name.LocalName == "function") // only functions
.OrderBy(s => s.Attribute("extension").Value)
.ThenBy(s => s.Attribute("name").Value)
)).WriteTo(writer);
writer.Flush();
writer.Close();
}