aboutsummaryrefslogtreecommitdiffstats
path: root/tools/checkAPIs.pl
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2009-04-21 22:26:34 +0000
committerBill Meier <wmeier@newsguy.com>2009-04-21 22:26:34 +0000
commit866eb54ad4736e32e8d0e0dab80fe35667c15255 (patch)
tree891efb047fd5c692cb90faaf7e22c2a0433aface /tools/checkAPIs.pl
parente7a2df6290d8c039c7709d47cb23ff24cd288b05 (diff)
checkAPIs: check for 'const' in value_string definition.
svn path=/trunk/; revision=28114
Diffstat (limited to 'tools/checkAPIs.pl')
-rwxr-xr-xtools/checkAPIs.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl
index 586051a3f5..59669753a5 100755
--- a/tools/checkAPIs.pl
+++ b/tools/checkAPIs.pl
@@ -1012,6 +1012,11 @@ while ($_ = $ARGV[0])
printf STDERR "Error: %-35.35s: Not terminated: %s\n", $filename, $1;
$errorCount++;
}
+ if ($vs !~ / (static)? const value_string /xo) {
+ $vsx =~ /( value_string [^=]+ ) = /xo;
+ printf STDERR "Error: %-35.35s: Missing 'const': %s\n", $filename, $1;
+ $errorCount++;
+ }
}
}