aboutsummaryrefslogtreecommitdiffstats
path: root/tools/checkAPIs.pl
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2012-03-06 20:56:51 +0000
committerBill Meier <wmeier@newsguy.com>2012-03-06 20:56:51 +0000
commit7504e53a5e28106ff73abad3aa00a727214fba61 (patch)
treec8d2decf6193b46ca20c1d64e4af01393311f528 /tools/checkAPIs.pl
parentae54957153bdade57c5c9e68c2bd0538ff4f1a34 (diff)
Add test for correct usage of hf[] FT_BOOLEAN 'display' field;
(Commented out until all the incorrect usages in Wireshark have been fixed). svn path=/trunk/; revision=41380
Diffstat (limited to 'tools/checkAPIs.pl')
-rwxr-xr-xtools/checkAPIs.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl
index bf6bad2767..f43cc96645 100755
--- a/tools/checkAPIs.pl
+++ b/tools/checkAPIs.pl
@@ -1572,6 +1572,14 @@ sub check_hf_entries($$)
print STDERR "Error: $abbrev uses a value_string but is an FT_BOOLEAN in $filename\n";
$errorCount++;
}
+## if (($ft eq "FT_BOOLEAN") && ($bitmask =~ /^(0x)?0+$/) && ($display ne "BASE_NONE")) {
+## print STDERR "Error: $abbrev FT_BOOLEAN with no bitmask must use BASE_NONE for 'display' in $filename\n";
+## $errorCount++;
+## }
+## if (($ft eq "FT_BOOLEAN") && ($bitmask !~ /^(0x)?0+$/) && ($display !~ /^\d+$/)) {
+## print STDERR "Error: $abbrev FT_BOOLEAN with a bitmask must use a numeric vale for 'display' in $filename\n";
+## $errorCount++;
+## }
}
return $errorCount;