From: Jim Meyering Date: Wed, 31 Mar 2004 17:32:11 +0000 (+0000) Subject: also check for atoll X-Git-Tag: COREUTILS-5_3_0~1891 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d217a9c813e5b397c2564f92c6885488318a4a2;p=platform%2Fupstream%2Fcoreutils.git also check for atoll --- diff --git a/Makefile.maint b/Makefile.maint index 08f9cb8..e8abd6d 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -126,14 +126,14 @@ sc_space_tab: { echo '$(ME): found SPACE-TAB sequence; remove the SPACE' \ 1>&2; exit 1; } || : -# Don't use atoi, atof, or atol in `real' code. +# Don't use atoi, atof, atol, atoll, or atoq in `real' code. # They provide no error checking mechanism. # Instead, use strto* functions. sc_prohibit_atoi_atof: @( cvsu --list ) > /dev/null 2>&1 || : && \ - grep '\' \ + grep -E '\<(ato[filq]|atoll)\>' \ $$(cvsu --list | grep -vEf .x-$@ ) && \ - { echo '$(ME): do not use atof, atoi, or atol' \ + { echo '$(ME): do not use atof, atoi, atol, atoll, or atoq' \ 1>&2; exit 1; } || : # Using EXIT_SUCCESS as the first argument to error is misleading,