diff options
author | Alexey Yerin <yyp@disroot.org> | 2025-03-21 13:31:16 +0300 |
---|---|---|
committer | Alexey Yerin <yyp@disroot.org> | 2025-03-21 13:31:16 +0300 |
commit | edc1dacbbad9bbd4f0cbea105dfe3f6448c7e782 (patch) | |
tree | a6438c1d2df836c6cca88b00f128899b8bcb6e4e | |
parent | 62d0add1ec396dffae114545fc0427efc6c7153a (diff) |
gir: Discard inline functions and methods
They are not useful for generating bindings.
-rw-r--r-- | gir/parse.ha | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gir/parse.ha b/gir/parse.ha index 9b7d911..e967f76 100644 --- a/gir/parse.ha +++ b/gir/parse.ha @@ -74,6 +74,7 @@ fn parse_namespace(parser: *xml::parser, namespaces: *opaque) (void | error) = { ("record", &parse_record, &new.records), ("enumeration", &parse_enumeration, &new.enums), ("function", &parse_function, &new.functions), + ("function-inline", null, null), ("union", &parse_union, &new.unions), ("bitfield", &parse_bitfield, &new.bitfields), ("callback", &parse_callback, &new.callbacks), @@ -123,7 +124,9 @@ fn parse_class(parser: *xml::parser, classes: *opaque) (void | error) = { ("implements", &parse_implements, &new.implements), ("constructor", &parse_constructor, &new.constructors), ("method", &parse_method, &new.methods), + ("method-inline", null, null), ("function", &parse_function, &new.functions), + ("function-inline", null, null), ("virtual-method", &parse_virtual_method, &new.virtual_methods), ("field", &parse_field, &new.entries), ("property", &parse_property, &new.properties), @@ -158,8 +161,10 @@ fn parse_interface(parser: *xml::parser, interfaces: *opaque) (void | error) = { ("prerequisite", &parse_prerequisite, &new.prerequisites), ("implements", &parse_implements, &new.implements), ("function", &parse_function, &new.functions), + ("function-inline", null, null), ("constructor", &parse_constructor, &new.constructors), ("method", &parse_method, &new.methods), + ("method-inline", null, null), ("virtual-method", &parse_virtual_method, &new.virtual_methods), ("field", &parse_field, &new.entries), ("property", &parse_property, &new.properties), @@ -198,8 +203,10 @@ fn parse_record(parser: *xml::parser, records: *opaque) (void | error) = { ("field", &parse_field, &new.entries), ("function", &parse_function, &new.functions), + ("function-inline", null, null), ("union", &parse_union_entry, &new.entries), ("method", &parse_method, &new.methods), + ("method-inline", null, null), ("constructor", &parse_constructor, &new.constructors), )?; append(records, new)!; @@ -304,6 +311,7 @@ fn parse_enumeration(parser: *xml::parser, enums: *opaque) (void | error) = { ("member", &parse_member, &new.members), ("function", &parse_function, &new.functions), + ("function-inline", null, null), )?; append(enums, new)!; }; @@ -335,7 +343,9 @@ fn parse_union(parser: *xml::parser, unions: *opaque) (void | error) = { ("field", &parse_field, &new.entries), ("constructor", &parse_constructor, &new.constructors), ("method", &parse_method, &new.methods), + ("method-inline", null, null), ("function", &parse_function, &new.functions), + ("function-inline", null, null), ("record", &parse_record_entry, &new.entries), )?; append(unions, new)!; @@ -361,6 +371,7 @@ fn parse_bitfield(parser: *xml::parser, bitfields: *opaque) (void | error) = { ("member", &parse_member, &new.members), ("function", &parse_function, &new.functions), + ("function-inline", null, null), )?; append(bitfields, new)!; }; |