From e03319a3df9df06ff11fd0cc70acdbded209b2db Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 17 Jun 2016 23:31:34 +0100 Subject: [PATCH] ed: use standard isfoo names --- Applications/util/ed.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Applications/util/ed.c b/Applications/util/ed.c index e286bc0d..301e304e 100644 --- a/Applications/util/ed.c +++ b/Applications/util/ed.c @@ -21,12 +21,6 @@ typedef unsigned char BOOL; #define STDIN 0 #define STDOUT 1 -/* -#define isblank(ch) (((ch) == ' ') || ((ch) == '\t')) -#define isdecimal(ch) (((ch) >= '0') && ((ch) <= '9')) -*/ -#define isblank(ch) isspace(ch) - typedef int NUM; typedef int LEN; @@ -655,14 +649,14 @@ static BOOL getnum(char **retcp, BOOL *rethavenum, NUM *retnum) break; default: - if (!isdecimal(*cp)) { + if (!isdigit(*cp)) { *retcp = cp; *rethavenum = havenum; *retnum = value; return TRUE; } num = 0; - while (isdecimal(*cp)) + while (isdigit(*cp)) num = num * 10 + *cp++ - '0'; havenum = TRUE; break; -- 2.34.1