fix(nc): fix ordering of types parsed from xml

Running the generator under windows and linux produced a different types_generated.h (with a different ordering of the types).
Using and OrderedDict for snippets preserves the ordering and gives a more consistent result.
This commit is contained in:
Luca Olivetti 2021-11-04 16:48:06 +01:00 committed by Julius Pfrommer
parent 0881e25994
commit 0b3fde00c3

View File

@ -302,7 +302,7 @@ class TypeParser():
return True return True
return False return False
snippets = {} snippets = OrderedDict()
xmlDoc = etree.iterparse( xmlDoc = etree.iterparse(
xmlDescription, events=['start-ns'] xmlDescription, events=['start-ns']
) )