From b134da55059775759b6e2d1ab8d6425033c3834a Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 25 Aug 1999 21:39:28 +0000 Subject: * A few cleanups, and 3.77.94 release. --- function.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'function.c') diff --git a/function.c b/function.c index 0e619fd..0acfd7e 100644 --- a/function.c +++ b/function.c @@ -702,13 +702,10 @@ is_numeric (p) char *end = p + strlen (p) - 1; char *beg = p; strip_whitespace (&p, &end); - while (p <= end) - { - if (!isdigit (*p)) - return 0; - p++; - } + while (p <= end) + if (!ISDIGIT (*(p++))) /* ISDIGIT only evals its arg once: see make.h. */ + return 0; return (end - beg >= 0); } -- cgit v1.2.3