mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
Pass typedef struct _Foo Foo; through gapi_pp.
* parser/gapi_pp.pl: in source files, still pass simple struct typedefs through to support parsing gio 2.27.90. No idea why they are hiding signal vm declarations in gdbusauthobserver.
This commit is contained in:
parent
364b2fc08a
commit
2ffb49b6c3
@ -205,7 +205,7 @@ foreach $fname (@srcs, @privhdrs) {
|
||||
}
|
||||
|
||||
while ($line = <INFILE>) {
|
||||
next if ($line !~ /^(struct|\w+_class_init|\w+_base_init|\w+_get_type\b|G_DEFINE_TYPE_WITH_CODE)/);
|
||||
next if ($line !~ /^(struct|typedef struct.*;|\w+_class_init|\w+_base_init|\w+_get_type\b|G_DEFINE_TYPE_WITH_CODE)/);
|
||||
|
||||
if ($line =~ /^G_DEFINE_TYPE_WITH_CODE/) {
|
||||
my $macro;
|
||||
@ -235,6 +235,9 @@ foreach $fname (@srcs, @privhdrs) {
|
||||
print $line;
|
||||
next;
|
||||
}
|
||||
} elsif ($line =~ /^typedef.*;/) {
|
||||
print $line;
|
||||
next;
|
||||
}
|
||||
|
||||
$comment = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user