diff options
author | cracauer <cracauer@FreeBSD.org> | 1999-12-15 11:46:32 +0000 |
---|---|---|
committer | cracauer <cracauer@FreeBSD.org> | 1999-12-15 11:46:32 +0000 |
commit | ea70a76b310978e21752eda8780f2e5c3a284bca (patch) | |
tree | a4dc1e787d43553feffe5698a260b38045127e69 /bin/sh/mksyntax.c | |
parent | fc793cf05b0b81793cfba6c8e586da1b80267149 (diff) | |
download | FreeBSD-src-ea70a76b310978e21752eda8780f2e5c3a284bca.zip FreeBSD-src-ea70a76b310978e21752eda8780f2e5c3a284bca.tar.gz |
First round of 8-bit fixes.
Diffstat (limited to 'bin/sh/mksyntax.c')
-rw-r--r-- | bin/sh/mksyntax.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/mksyntax.c b/bin/sh/mksyntax.c index 8e4ab08..3f7f8cb 100644 --- a/bin/sh/mksyntax.c +++ b/bin/sh/mksyntax.c @@ -350,7 +350,7 @@ print(name) */ static char *macro[] = { - "#define is_digit(c)\t((is_type+SYNBASE)[c] & ISDIGIT)", + "#define is_digit(c)\t((c >= 0 && is_type+SYNBASE)[c] & ISDIGIT)", "#define is_alpha(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLENDARI) && isalpha((unsigned char) (c)))", "#define is_name(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLENDARI) && ((c) == '_' || isalpha((unsigned char) (c))))", "#define is_in_name(c)\t((c) != PEOF && ((c) < CTLESC || (c) > CTLENDARI) && ((c) == '_' || isalnum((unsigned char) (c))))", |