summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-04-02 13:17:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-04-02 13:17:00 +0900
commited5ee2e39d0e03be8a8bffb4dfd5c624d1705b24 (patch)
tree553a2492d4fa7bc8a38f8cab806abf8c49717532
parent925922c751d1d3d9602943bb06b00d4594a2b9b4 (diff)
downloadlibtqt-perl-master.tar.gz
libtqt-perl-master.zip
Align kalyptus to changes made inx TDE/tdebindings#36HEADmaster
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--kalyptus/kalyptus7
1 files changed, 5 insertions, 2 deletions
diff --git a/kalyptus/kalyptus b/kalyptus/kalyptus
index 8b36f23..3cb797b 100644
--- a/kalyptus/kalyptus
+++ b/kalyptus/kalyptus
@@ -937,7 +937,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
@@ -949,7 +952,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;