mirror of
https://github.com/mirror/make.git
synced 2026-08-31 03:38:03 +08:00
* A few cleanups, and 3.77.94 release.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user