summaryrefslogtreecommitdiff
path: root/function.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-08-25 21:39:28 +0000
committerPaul Smith <psmith@gnu.org>1999-08-25 21:39:28 +0000
commitb134da55059775759b6e2d1ab8d6425033c3834a (patch)
tree84397021e8aee4f343da2b08c22ac3d6043789e4 /function.c
parentd0b03e9355d18a6e035c3ee2e7f0ba895739ab28 (diff)
downloadgunmake-b134da55059775759b6e2d1ab8d6425033c3834a.tar.gz
* A few cleanups, and 3.77.94 release.3.77.94
Diffstat (limited to 'function.c')
-rw-r--r--function.c9
1 files changed, 3 insertions, 6 deletions
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);
}