diff options
author | Bill Meier <wmeier@newsguy.com> | 2012-03-07 16:19:24 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2012-03-07 16:19:24 +0000 |
commit | 3b9d2fcb93a7cb32518956e7bda4b0929681d764 (patch) | |
tree | 4d292aa7c1da8af73205763c0bd7fd3bea3344df /tools/checkAPIs.pl | |
parent | 66bb2deb3fc28a858c8ee8befdea0c7b856f3ffd (diff) |
Revise and enable test for hf[] FT_BOOLEAN fields with a non-zero bit mask and with BASE_... in the 'display' field.
svn path=/trunk/; revision=41399
Diffstat (limited to 'tools/checkAPIs.pl')
-rwxr-xr-x | tools/checkAPIs.pl | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl index f43cc96645..a31f3d5be6 100755 --- a/tools/checkAPIs.pl +++ b/tools/checkAPIs.pl @@ -1572,15 +1572,16 @@ 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 =~ /^BASE_/)) { + print STDERR "Error: $abbrev: FT_BOOLEAN with a bitmask must specify a 'parent field width' for 'display' in $filename\n"; + $errorCount++; + } +## Benign... ## 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++; -## } - } +## print STDERR "Error: $abbrev: FT_BOOLEAN with no bitmask must use BASE_NONE for 'display' in $filename\n"; +## $errorCount++; +## } + } return $errorCount; } |