diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/checkAPIs.pl | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl index 09b01c16a3..a1fedb61da 100755 --- a/tools/checkAPIs.pl +++ b/tools/checkAPIs.pl @@ -59,6 +59,19 @@ my @prohibitedAPIs= 'strncasecmp', 'g_strcasecmp', 'g_strncasecmp', + # Use the eth_* version of these: + # (Necessary because on Windows we use UTF8 for throughout the code + # so we must tweak that to UTF16 before operating on the file. Code + # using these functions will work unless the file/path name contains + # non-ASCII chars.) + 'open', + 'rename', + 'mkdir', + 'stat', + 'unlink', + 'remove', + 'fopen', + 'freopen' ); # APIs that SHOULD NOT be used in Wireshark (any more) @@ -91,7 +104,7 @@ my @deprecatedAPIs= sub findAPIinList($$$) { my ($apiList, $fileContentsRef, $foundAPIsRef)=@_; - + for my $api (@{$apiList}) { if ($$fileContentsRef =~ m/\W$api\W*\(/) |