From 7c3412ba58d21592838b61f53653b507551ea52b Mon Sep 17 00:00:00 2001 From: tegge Date: Sun, 14 Oct 2001 21:11:33 +0000 Subject: [PATCH] Repair normally unused is_digit() macro. --- bin/sh/mksyntax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sh/mksyntax.c b/bin/sh/mksyntax.c index d4a1cd89d9d7..437c435ecbc8 100644 --- a/bin/sh/mksyntax.c +++ b/bin/sh/mksyntax.c @@ -351,7 +351,7 @@ print(name) */ static char *macro[] = { - "#define is_digit(c)\t((c >= 0 && is_type+SYNBASE)[c] & ISDIGIT)", + "#define is_digit(c)\t((is_type+SYNBASE)[c] & ISDIGIT)", "#define is_alpha(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLQUOTEMARK) && isalpha((unsigned char) (c)))", "#define is_name(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLQUOTEMARK) && ((c) == '_' || isalpha((unsigned char) (c))))", "#define is_in_name(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLQUOTEMARK) && ((c) == '_' || isalnum((unsigned char) (c))))",