checkAPI: move atoi from soft-deprecated to prohibited.

The atoi function has been completely removed from the tree.
It's still present in the GTK code, but, since GTK compilation
has been removed in the default, checkAPI target doesn't complain,
as well as the buildbot.

Change-Id: I436d6f333b99b9188734155c1f92273420354947
Reviewed-on: https://code.wireshark.org/review/18432
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Tested-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
This commit is contained in:
Dario Lombardo 2016-10-24 16:15:22 +02:00
parent f347af277c
commit 7dfaab3cf7
1 changed files with 2 additions and 7 deletions

View File

@ -56,6 +56,7 @@ my %APIs = (
# and "Deprecated CRT Functions"
# https://msdn.microsoft.com/en-us/library/ms235384.aspx
#
'atoi', # use wsutil/strtoi.h functions
'gets',
'sprintf',
'g_sprintf',
@ -159,13 +160,7 @@ my %APIs = (
# "I" isn't always the upper-case form of "i", and "i" isn't
# always the lower-case form of "I"). Use the g_ascii_* version
# instead.
'toupper',
# use wsutil/ws_strtoi.h function
# because of the wide use of atoi, we keep it in soft-deprecation status
# until we approach its complete removal, otherwise windows buildbot
# will keep to stuck with error.
'atoi',
'toupper'
] },
# APIs that SHOULD NOT be used in Wireshark (any more)