mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
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:
parent
8c1f6bc72d
commit
dd160b6392
3 changed files with 62 additions and 138 deletions
|
@ -21,9 +21,7 @@ def generate_file(config, name):
|
|||
filename = name + '.rs'
|
||||
|
||||
root = getattr(GlobalGenRoots, name)(config)
|
||||
code = root.declare()
|
||||
root2 = getattr(GlobalGenRoots, name)(config)
|
||||
code += root2.define()
|
||||
code = root.define()
|
||||
|
||||
if replaceFileIfChanged(filename, code):
|
||||
print "Generating %s" % (filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue