diff options
author | Andrey Ponomarenko <aponomarenko@rosalab.ru> | 2015-08-26 20:12:54 +0300 |
---|---|---|
committer | Andrey Ponomarenko <aponomarenko@rosalab.ru> | 2015-08-26 20:12:54 +0300 |
commit | a3cc47a09da1036edf2a82cfcf42053514dc4d0b (patch) | |
tree | 526e5b79262548c23219971e433b8d57d424f9dd | |
parent | 0f295ff85ace05a5b244c68f32d625bd21bfe04b (diff) | |
download | abi-dumper-a3cc47a09da1036edf2a82cfcf42053514dc4d0b.tar.gz |
Corrected names of double FuncPtr and MethodPtr types.
-rwxr-xr-x | abi-dumper.pl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/abi-dumper.pl b/abi-dumper.pl index 385278d..291a200 100755 --- a/abi-dumper.pl +++ b/abi-dumper.pl @@ -2991,6 +2991,19 @@ sub getTypeInfo($) $TInfo{"Size"} = $SYS_WORD; } } + elsif($TInfo{"Type"} eq "Pointer") + { + if(my $BType = $TInfo{"BaseType"}) + { + if($TypeInfo{$BType}{"Type"}=~/MethodPtr|FuncPtr/) + { # void(GTestSuite::**)() + # int(**)(...) + if($TInfo{"Name"}=~s/\*\Z//) { + $TInfo{"Name"}=~s/\*(\))/\*\*$1/; + } + } + } + } } if(my $Bid = $TInfo{"BaseType"}) |