mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-11 20:55:32 +00:00
handle private virtual methods
svn path=/trunk/gtk-sharp/; revision=73648
This commit is contained in:
parent
d90a1ff3f5
commit
eab29b501e
|
@ -238,7 +238,8 @@ foreach $cname (sort(keys(%edefs))) {
|
||||||
$def =~ /\{(.*\S)\s*\}/;
|
$def =~ /\{(.*\S)\s*\}/;
|
||||||
@vals = split(/,\s*/, $1);
|
@vals = split(/,\s*/, $1);
|
||||||
$vals[0] =~ s/^\s+//;
|
$vals[0] =~ s/^\s+//;
|
||||||
@v0 = split(/_/, $vals[0]);
|
@nameandval = split(/=/, $vals[0]);
|
||||||
|
@v0 = split(/_/, $nameandval[0]);
|
||||||
if (@vals > 1) {
|
if (@vals > 1) {
|
||||||
$done = 0;
|
$done = 0;
|
||||||
for ($idx = 0, $regex = ""; $idx < @v0; $idx++) {
|
for ($idx = 0, $regex = ""; $idx < @v0; $idx++) {
|
||||||
|
@ -970,13 +971,13 @@ sub addSignalElem
|
||||||
return $class;
|
return $class;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($class =~ /;\s*(\/\*< (public|protected) >\s*\*\/)?(G_CONST_RETURN\s+)?(\w+\s*\**)\s*\(\s*\*\s*$method\)\s*\((.*?)\);/) {
|
if ($class =~ /;\s*(\/\*< (public|protected|private) >\s*\*\/)?(G_CONST_RETURN\s+)?(\w+\s*\**)\s*\(\s*\*\s*$method\)\s*\((.*?)\);/) {
|
||||||
$ret = $4; $parms = $5;
|
$ret = $4; $parms = $5;
|
||||||
addReturnElem($sig_elem, $ret);
|
addReturnElem($sig_elem, $ret);
|
||||||
if ($parms && ($parms ne "void")) {
|
if ($parms && ($parms ne "void")) {
|
||||||
addParamsElem($sig_elem, split(/,/, $parms));
|
addParamsElem($sig_elem, split(/,/, $parms));
|
||||||
}
|
}
|
||||||
$class =~ s/;\s*(\/\*< (public|protected) >\s*\*\/)?(G_CONST_RETURN\s+)?\w+\s*\**\s*\(\s*\*\s*$method\)\s*\(.*?\);/;/;
|
$class =~ s/;\s*(\/\*< (public|protected|private) >\s*\*\/)?(G_CONST_RETURN\s+)?\w+\s*\**\s*\(\s*\*\s*$method\)\s*\(.*?\);/;/;
|
||||||
} else {
|
} else {
|
||||||
die "$method $class";
|
die "$method $class";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue