1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 18:56:39 +02:00

(toarith): Change single use of isdigit to ISDIGIT.

This commit is contained in:
Jim Meyering
1992-12-07 05:28:23 +00:00
parent 7c4931fcee
commit 6afc161556

View File

@@ -34,6 +34,12 @@
#include <regex.h>
#include "system.h"
#ifndef isascii
#define isascii(c) 1
#endif
#define ISDIGIT(c) (isascii (c) && isdigit (c))
#if !__STDC__
#define const
#endif
@@ -236,7 +242,7 @@ toarith (v)
cp++;
for (; *cp; cp++)
{
if (isdigit (*cp))
if (ISDIGIT (*cp))
i = i * 10 + *cp - '0';
else
return 0;