diff options
author | jilles <jilles@FreeBSD.org> | 2010-11-20 14:30:28 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-11-20 14:30:28 +0000 |
commit | 2bd9940d99668bc6b771faa4d11850cf9ce056b3 (patch) | |
tree | e5d752439fee785e6b8cf2ec03645d16cc24d949 /bin/sh | |
parent | 6915411ab291af6eba93647d13c0aa6714621fa2 (diff) | |
download | FreeBSD-src-2bd9940d99668bc6b771faa4d11850cf9ce056b3.zip FreeBSD-src-2bd9940d99668bc6b771faa4d11850cf9ce056b3.tar.gz |
sh: Remove the check that alpha/name/in_name chars are not CTL* bytes.
Since is_alpha/is_name/is_in_name were made ASCII-only, this can no longer
happen.
Additionally, the check was wrong because it did not include the new
CTLQUOTEEND.
Diffstat (limited to 'bin/sh')
-rw-r--r-- | bin/sh/mksyntax.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sh/mksyntax.c b/bin/sh/mksyntax.c index 07e8eb7..6bd1390 100644 --- a/bin/sh/mksyntax.c +++ b/bin/sh/mksyntax.c @@ -342,9 +342,9 @@ print(const char *name) static const char *macro[] = { "#define is_digit(c)\t((is_type+SYNBASE)[(int)c] & ISDIGIT)", "#define is_eof(c)\t((c) == PEOF)", - "#define is_alpha(c)\t(((c) < CTLESC || (c) > CTLQUOTEMARK) && (is_type+SYNBASE)[(int)c] & (ISUPPER|ISLOWER))", - "#define is_name(c)\t(((c) < CTLESC || (c) > CTLQUOTEMARK) && (is_type+SYNBASE)[(int)c] & (ISUPPER|ISLOWER|ISUNDER))", - "#define is_in_name(c)\t(((c) < CTLESC || (c) > CTLQUOTEMARK) && (is_type+SYNBASE)[(int)c] & (ISUPPER|ISLOWER|ISUNDER|ISDIGIT))", + "#define is_alpha(c)\t((is_type+SYNBASE)[(int)c] & (ISUPPER|ISLOWER))", + "#define is_name(c)\t((is_type+SYNBASE)[(int)c] & (ISUPPER|ISLOWER|ISUNDER))", + "#define is_in_name(c)\t((is_type+SYNBASE)[(int)c] & (ISUPPER|ISLOWER|ISUNDER|ISDIGIT))", "#define is_special(c)\t((is_type+SYNBASE)[(int)c] & (ISSPECL|ISDIGIT))", NULL }; |