Commit 298cc6cb authored by Stefan Behnel's avatar Stefan Behnel

make C code order in 'from-import *' table deterministic

parent 44600f77
...@@ -1936,7 +1936,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -1936,7 +1936,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
env.use_utility_code(streq_utility_code) env.use_utility_code(streq_utility_code)
code.putln() code.putln()
code.putln("static char* %s_type_names[] = {" % Naming.import_star) code.putln("static char* %s_type_names[] = {" % Naming.import_star)
for name, entry in env.entries.items(): for name, entry in sorted(env.entries.items()):
if entry.is_type: if entry.is_type:
code.putln('"%s",' % name) code.putln('"%s",' % name)
code.putln("0") code.putln("0")
......
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