diff options
author | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-10-06 21:54:01 +0000 |
---|---|---|
committer | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-10-06 21:54:01 +0000 |
commit | 2ac2d265ae74dec498d428d2f2285241b473589b (patch) | |
tree | f9c08151fd15460cfba31eee0755c876d8076107 /tools | |
parent | 3a7eab2eb645a781e9a0500b659f00ebb0402c53 (diff) |
Enable hf checks by default. Add a check to see if the abbreviation is equal to the hf_variable_name.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34398 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/checkAPIs.pl | 9 |
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) { |