aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2010-10-06 21:54:01 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2010-10-06 21:54:01 +0000
commit8947fc6a89fae93d1c79d0b606791abee997f3b7 (patch)
treef9c08151fd15460cfba31eee0755c876d8076107 /tools
parentb1519524747cde4f97001eeedf4164895452c772 (diff)
Enable hf checks by default. Add a check to see if the abbreviation is equal to the hf_variable_name.
svn path=/trunk/; revision=34398
Diffstat (limited to 'tools')
-rwxr-xr-xtools/checkAPIs.pl9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl
index a723de0b71..07c2d32192 100755
--- a/tools/checkAPIs.pl
+++ b/tools/checkAPIs.pl
@@ -1002,7 +1002,10 @@ sub check_hf_entries($$)
print STDERR "Warning: trailing space in field $name ($abbrev) in $filename\n";
}
if ("\"".$hf ."\"" eq $name) {
- print STDERR "Warning: name is hf variable name in field $name ($abbrev) in $filename\n";
+ print STDERR "Warning: name is the hf_variable_name in field $name ($abbrev) in $filename\n";
+ }
+ if ("\"".$hf ."\"" eq $abbrev) {
+ print STDERR "Warning: abbreviation is the hf_variable_name in field $name ($abbrev) in $filename\n";
}
}
@@ -1053,7 +1056,7 @@ my @apiGroups = qw(prohibited deprecated);
my @apiSummaryGroups = ();
my $check_value_string_array_null_termination = 1; # default: enabled
my $machine_readable_output = 0; # default: disabled
-my $check_hf = 0; # default: disabled
+my $check_hf = 1; # default: enabled
my $debug_flag = 0;
my $result = GetOptions(
@@ -1061,7 +1064,7 @@ my $result = GetOptions(
'summary-group=s' => \@apiSummaryGroups,
'check-value-string-array-null-termination!' => \$check_value_string_array_null_termination,
'Machine-readable' => \$machine_readable_output,
- 'hf' => \$check_hf,
+ 'nohf' => \$check_hf,
'debug' => \$debug_flag
);
if (!$result) {