Merge CGThing.declare and CGThing.define.

This distincion is carried over from the C++ codegen, but it has no meaning
in Rust.
This commit is contained in:
Ms2ger 2014-03-11 13:34:05 +01:00
parent 8c1f6bc72d
commit dd160b6392
3 changed files with 62 additions and 138 deletions

View file

@ -19,8 +19,7 @@ def generate_binding_rs(config, outputprefix, webidlfile):
filename = outputprefix + ".rs"
root = CGBindingRoot(config, outputprefix, webidlfile)
root2 = CGBindingRoot(config, outputprefix, webidlfile)
if replaceFileIfChanged(filename, root.declare() + root2.define()):
if replaceFileIfChanged(filename, root.define()):
print "Generating binding implementation: %s" % (filename)
def main():