aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2012-03-06 02:27:29 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2012-03-06 02:27:29 +0000
commit4cd18234d6d4bcec3721e3f60998f36722d99f1a (patch)
treeaf9eeba72f3c535be81a75c73b4fcf0d09b14b66 /tools
parent5ca357f245810f264965551524d6498662e7541d (diff)
Prohibit using anything other than FT_BOOLEANs with true_false_strings.
Prohibit using FT_BOOLEANS with value_strings. svn path=/trunk/; revision=41364
Diffstat (limited to 'tools')
-rwxr-xr-xtools/checkAPIs.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl
index 60a6d3ef9c..bf6bad2767 100755
--- a/tools/checkAPIs.pl
+++ b/tools/checkAPIs.pl
@@ -1564,6 +1564,14 @@ sub check_hf_entries($$)
print STDERR "Error: abbreviation is the hf_variable_name in field $name ($abbrev) in $filename\n";
$errorCount++;
}
+ if ($ft ne "FT_BOOLEAN" && $convert =~ m/^TFS\(.*\)/) {
+ print STDERR "Error: $abbrev uses a true/false string but is an $ft instead of FT_BOOLEAN in $filename\n";
+ $errorCount++;
+ }
+ if ($ft eq "FT_BOOLEAN" && $convert =~ m/^VALS\(.*\)/) {
+ print STDERR "Error: $abbrev uses a value_string but is an FT_BOOLEAN in $filename\n";
+ $errorCount++;
+ }
}
return $errorCount;