aboutsummaryrefslogtreecommitdiff
path: root/contrib/ncurses/progs/progs.priv.h
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-05-17 08:21:06 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-05-17 08:21:06 +0000
commit7a69bbfb278952228c9aa1eca241e65fcdef425e (patch)
treee83b2ef47811e687a6c54035c9af6d4a2b7f14e1 /contrib/ncurses/progs/progs.priv.h
parent18259542b2f8fa7e3f76f4bb0dd37995dfd424aa (diff)
downloadsrc-7a69bbfb278952228c9aa1eca241e65fcdef425e.tar.gz
src-7a69bbfb278952228c9aa1eca241e65fcdef425e.zip
Import ncurses-5.2-20010512 onto the vendor branch
Obtained from: ftp://dickey.his.com/ncurses/
Notes
Notes: svn path=/vendor/ncurses/dist/; revision=76726
Diffstat (limited to 'contrib/ncurses/progs/progs.priv.h')
-rw-r--r--contrib/ncurses/progs/progs.priv.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/ncurses/progs/progs.priv.h b/contrib/ncurses/progs/progs.priv.h
index d704c0989b33..18262759f3c3 100644
--- a/contrib/ncurses/progs/progs.priv.h
+++ b/contrib/ncurses/progs/progs.priv.h
@@ -30,7 +30,7 @@
* Author: Thomas E. Dickey <dickey@clark.net> 1997,1998 *
****************************************************************************/
/*
- * $Id: progs.priv.h,v 1.24 2000/10/01 01:33:34 tom Exp $
+ * $Id: progs.priv.h,v 1.26 2000/11/05 00:22:05 tom Exp $
*
* progs.priv.h
*
@@ -165,10 +165,12 @@ extern int optind;
#if !HAVE_ISASCII
# undef isascii
# if ('z'-'a' == 25) && ('z' < 127) && ('Z'-'A' == 25) && ('Z' < 127) && ('9' < 127)
-# define isascii(c) (((c) & 0xff) <= 127)
+# define isascii(c) (CharOf(c) <= 127)
# else
# define isascii(c) 1 /* not really ascii anyway */
# endif
#endif
+#define CharOf(c) ((unsigned char)(c))
+
#define SIZEOF(v) (sizeof(v)/sizeof(v[0]))