diff options
author | ache <ache@FreeBSD.org> | 1996-08-12 22:14:50 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-08-12 22:14:50 +0000 |
commit | 17b8d9508aa37261f23a89a66636c84df7ab3394 (patch) | |
tree | 281b47bdd28ad7cfd57f21e93b690706c7c9ec21 /bin/sh/mksyntax.c | |
parent | 58f9b78e5e6f13c4cd4e966b8455326a751e326f (diff) | |
download | FreeBSD-src-17b8d9508aa37261f23a89a66636c84df7ab3394.zip FreeBSD-src-17b8d9508aa37261f23a89a66636c84df7ab3394.tar.gz |
Take out 0201-0207 range - those characters abused by sh
Diffstat (limited to 'bin/sh/mksyntax.c')
-rw-r--r-- | bin/sh/mksyntax.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/sh/mksyntax.c b/bin/sh/mksyntax.c index 9ad405a..a4948c0 100644 --- a/bin/sh/mksyntax.c +++ b/bin/sh/mksyntax.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: mksyntax.c,v 1.3 1996/08/11 22:50:59 ache Exp $ + * $Id: mksyntax.c,v 1.4 1996/08/12 12:31:28 ache Exp $ */ #ifndef lint @@ -328,9 +328,9 @@ print(name) char *macro[] = { "#define is_digit(c)\t((is_type+SYNBASE)[c] & ISDIGIT)", - "#define is_alpha(c)\t((c) != PEOF && isalpha((unsigned char) (c)))", - "#define is_name(c)\t((c) != PEOF && ((c) == '_' || isalpha((unsigned char) (c))))", - "#define is_in_name(c)\t((c) != PEOF && ((c) == '_' || isalnum((unsigned char) (c))))", + "#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))))", "#define is_special(c)\t((is_type+SYNBASE)[c] & (ISSPECL|ISDIGIT))", NULL }; |