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)) using (var writer = XmlWriter.Create(out_stream, settings))
{ {
new XElement("signatures", new XElement("signatures",
entries.Values.OrderBy(s => s.Attribute("name").Value), // only enums new XElement("add",
sigs.SelectMany(s => s).Where(s => s.Name.LocalName == "function") // only functions entries.Values.OrderBy(s => s.Attribute("name").Value), // only enums
.OrderBy(s => s.Attribute("extension").Value) sigs.SelectMany(s => s).Where(s => s.Name.LocalName == "function") // only functions
.ThenBy(s => s.Attribute("name").Value) .OrderBy(s => s.Attribute("extension").Value)
).WriteTo(writer); .ThenBy(s => s.Attribute("name").Value)
)).WriteTo(writer);
writer.Flush(); writer.Flush();
writer.Close(); writer.Close();
} }