From 2d217a9c813e5b397c2564f92c6885488318a4a2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 31 Mar 2004 17:32:11 +0000 Subject: [PATCH] also check for atoll --- Makefile.maint | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, -- 2.7.4