mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto merge of #13477 - Manishearth:regen, r=emilio
Regenerate bindings r? @emilio <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13477) <!-- Reviewable:end -->
This commit is contained in:
commit
c834e57f4d
5 changed files with 3488 additions and 3482 deletions
|
@ -438,7 +438,7 @@ def build(objdir, target_name, debug, debugger, kind_name=None,
|
||||||
flags.append("{}BorrowedOrNull".format(ty))
|
flags.append("{}BorrowedOrNull".format(ty))
|
||||||
flags.append("--raw-line")
|
flags.append("--raw-line")
|
||||||
flags.append("pub type {0}BorrowedOrNull<'a> = \
|
flags.append("pub type {0}BorrowedOrNull<'a> = \
|
||||||
::gecko_bindings::sugar::ownership::Borrowed<'a, {0}>;".format(ty))
|
::gecko_bindings::sugar::ownership::Borrowed<'a, {0}>;".format(ty))
|
||||||
flags.append("--blacklist-type")
|
flags.append("--blacklist-type")
|
||||||
flags.append("{}Borrowed".format(ty))
|
flags.append("{}Borrowed".format(ty))
|
||||||
flags.append("--raw-line")
|
flags.append("--raw-line")
|
||||||
|
@ -455,7 +455,7 @@ def build(objdir, target_name, debug, debugger, kind_name=None,
|
||||||
flags.append("{}BorrowedOrNull".format(ty))
|
flags.append("{}BorrowedOrNull".format(ty))
|
||||||
flags.append("--raw-line")
|
flags.append("--raw-line")
|
||||||
flags.append("pub type {0}BorrowedOrNull<'a> = \
|
flags.append("pub type {0}BorrowedOrNull<'a> = \
|
||||||
::gecko_bindings::sugar::ownership::Borrowed<'a, {0}>;".format(ty))
|
::gecko_bindings::sugar::ownership::Borrowed<'a, {0}>;".format(ty))
|
||||||
# Right now the only immutable borrow types are ones which we import
|
# Right now the only immutable borrow types are ones which we import
|
||||||
# from the |structs| module. As such, we don't need to create an opaque
|
# from the |structs| module. As such, we don't need to create an opaque
|
||||||
# type with zero_size_type. If we ever introduce immutable borrow types
|
# type with zero_size_type. If we ever introduce immutable borrow types
|
||||||
|
|
|
@ -117,8 +117,8 @@ def write_atom_macro(atoms, file_name):
|
||||||
|
|
||||||
with open(file_name, "wb") as f:
|
with open(file_name, "wb") as f:
|
||||||
f.write(PRELUDE)
|
f.write(PRELUDE)
|
||||||
f.write("use style::gecko_bindings::structs::nsIAtom;\n\n")
|
f.write("use gecko_bindings::structs::nsIAtom;\n\n")
|
||||||
f.write("use Atom;\n\n")
|
f.write("use string_cache::Atom;\n\n")
|
||||||
for source in SOURCES:
|
for source in SOURCES:
|
||||||
if source.TYPE != "nsIAtom":
|
if source.TYPE != "nsIAtom":
|
||||||
f.write("pub enum {} {{}}\n\n".format(source.TYPE))
|
f.write("pub enum {} {{}}\n\n".format(source.TYPE))
|
||||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue