Commit f885af7b authored by Vitja Makarov's avatar Vitja Makarov

Order scope.buffer_vars by name

parent 4a009f36
...@@ -50,6 +50,7 @@ class IntroduceBufferAuxiliaryVars(CythonTransform): ...@@ -50,6 +50,7 @@ class IntroduceBufferAuxiliaryVars(CythonTransform):
in scope.entries.iteritems() in scope.entries.iteritems()
if entry.type.is_buffer] if entry.type.is_buffer]
if len(bufvars) > 0: if len(bufvars) > 0:
bufvars.sort(key=lambda entry: entry.name)
self.buffers_exists = True self.buffers_exists = True
memviewslicevars = [entry for name, entry memviewslicevars = [entry for name, entry
...@@ -745,4 +746,4 @@ acquire_utility_code = load_buffer_utility("BufferFormatCheck", ...@@ -745,4 +746,4 @@ acquire_utility_code = load_buffer_utility("BufferFormatCheck",
_typeinfo_to_format_code = load_buffer_utility("TypeInfoToFormat", context={}, _typeinfo_to_format_code = load_buffer_utility("TypeInfoToFormat", context={},
requires=[buffer_structs_code]) requires=[buffer_structs_code])
typeinfo_compare_code = load_buffer_utility("TypeInfoCompare", context={}, typeinfo_compare_code = load_buffer_utility("TypeInfoCompare", context={},
requires=[buffer_structs_code]) requires=[buffer_structs_code])
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment