mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 17:35:27 +00:00
Move output signatures to /signatures/add, in order to unify handling of signatures and overrides.
This commit is contained in:
parent
94cd438166
commit
a09e6aa510
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue