summaryrefslogtreecommitdiffstats
path: root/kalyptus
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-04-02 13:11:08 +0900
committerMichele Calgaro <[email protected]>2024-04-02 13:11:08 +0900
commit2bffde85ad998c66016b9dd91fb238821b2f4642 (patch)
tree277db2af6e90a28a3ab9750ba5fffeee2d02cb86 /kalyptus
parentadd9d70b506d0ef90518a92aa133495cdfe01e21 (diff)
downloadtdebindings-2bffde85ad998c66016b9dd91fb238821b2f4642.tar.gz
tdebindings-2bffde85ad998c66016b9dd91fb238821b2f4642.zip
Fix FTBFS caused by TDE/tqt3#109
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kalyptus')
-rw-r--r--kalyptus/kalyptus7
1 files changed, 5 insertions, 2 deletions
diff --git a/kalyptus/kalyptus b/kalyptus/kalyptus
index a0357bbd..ad897365 100644
--- a/kalyptus/kalyptus
+++ b/kalyptus/kalyptus
@@ -952,7 +952,10 @@ sub identifyDecl
\( (.*?) \) # parameters
\s*((?:const)?)\s*
(?:throw\s*\(.*?\))?
- \s*((?:=\s*0(?:L?))?)\s* # Pureness. is "0L" allowed?
+ \s*((?:=\s*(?:
+ 0(?:L?)| # Pureness. is "0L" allowed?
+ default # Default method
+ ))?)
\s*[;{]+/xs ) { # rest
my $tpn = $1; # type + name
@@ -964,7 +967,7 @@ sub identifyDecl
}
my $const = $3 eq "" ? 0 : 1;
- my $pure = $4 eq "" ? 0 : 1;
+ my $pure = $4 eq "" ? 0 : ($4 =~ "default" ? 0 : 1);
$tpn =~ s/\s+/ /g;
$tpn =~ s/operator\s+([^\w])/operator$1/g;
$params =~ s/\s+/ /g;