diff options
author | Andrey Ponomarenko <aponomarenko@rosalab.ru> | 2015-10-15 01:07:53 +0300 |
---|---|---|
committer | Andrey Ponomarenko <aponomarenko@rosalab.ru> | 2015-10-15 01:07:53 +0300 |
commit | 2c530f7b889fa43ba20e972c3ef5b7ccf0d5d2a8 (patch) | |
tree | 1ec825c202265c9265a200604e2b15109a8cd91b | |
parent | 1fbbce64f39fad73a23b246b94e958108cb0ae36 (diff) | |
download | abi-compliance-checker-2c530f7b889fa43ba20e972c3ef5b7ccf0d5d2a8.tar.gz |
Check public symbols only when comparing public ABI dumps.
-rw-r--r-- | INSTALL | 2 | ||||
-rw-r--r-- | abi-compliance-checker.pl | 22 |
2 files changed, 19 insertions, 5 deletions
@@ -10,7 +10,7 @@ RELEASE INFORMATION Project: ABI Compliance Checker (ACC) Version: 1.99.13 -Date: 2015-10-12 +Date: 2015-10-15 This file explains how to install and setup environment diff --git a/abi-compliance-checker.pl b/abi-compliance-checker.pl index 2c96b85..abe87e0 100644 --- a/abi-compliance-checker.pl +++ b/abi-compliance-checker.pl @@ -9779,6 +9779,9 @@ sub isTargetType($$) return 0; } } + else { + return 0; + } if($SkipInternalTypes) { @@ -20043,16 +20046,22 @@ sub read_ABI_Dump($$) my ($CPath, $Type) = classifyPath($Path); $SkipHeaders{$LibVersion}{$Type}{$CPath} = $ABI->{"SkipHeaders"}{$Path}; } + read_Source_DumpInfo($ABI, $LibVersion); read_Libs_DumpInfo($ABI, $LibVersion); + if(not checkDump($LibVersion, "2.10.1") or not $TargetHeaders{$LibVersion}) { # support for old ABI dumps: added target headers foreach (keys(%{$Registered_Headers{$LibVersion}})) { $TargetHeaders{$LibVersion}{get_filename($_)} = 1; } - foreach (keys(%{$Registered_Sources{$LibVersion}})) { - $TargetHeaders{$LibVersion}{get_filename($_)} = 1; + + if(not $ABI->{"PublicABI"}) + { + foreach (keys(%{$Registered_Sources{$LibVersion}})) { + $TargetHeaders{$LibVersion}{get_filename($_)} = 1; + } } } $Constants{$LibVersion} = $ABI->{"Constants"}; @@ -21930,8 +21939,13 @@ sub compareInit() print STDERR "WARNING: version number #2 is not set (use --v2=NUM option)\n"; } - initLogging(1); - initLogging(2); + if(not $UsedDump{1}{"V"}) { + initLogging(1); + } + + if(not $UsedDump{2}{"V"}) { + initLogging(2); + } # check input data if(not $Descriptor{1}{"Headers"}) { |