From a09e6aa5102fbc3bd2eb3601c29e333f542e569c Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 3 Dec 2010 09:47:48 +0000 Subject: [PATCH] Move output signatures to /signatures/add, in order to unify handling of signatures and overrides. --- Source/Converter/Main.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/Converter/Main.cs b/Source/Converter/Main.cs index 9bb97fd4..acad3991 100644 --- a/Source/Converter/Main.cs +++ b/Source/Converter/Main.cs @@ -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(); }