diff --git a/lang/compile.py b/lang/compile.py index d729d66..fdf61e2 100755 --- a/lang/compile.py +++ b/lang/compile.py @@ -910,14 +910,14 @@ return None fixed_bytecode = bytecode_fixup(bytecode) output = "static const unsigned char " - output += "bytecode_%s [] = {" % (node.name) + output += "bytecode_%s_%s [] = {" % (node.class_, node.name) output += generate_bytecode_c(fixed_bytecode) output += "};\n\n" return output def generate_call(node): call = '{.name = "%s", .handler = module_call, ' % (node.name) - call += '\n\t\t.priv = (void *)bytecode_%s},' % (node.name) + call += '\n\t\t.priv = (void *)bytecode_%s_%s},' % (node.class_, node.name) return call def generate_metadata(node):