]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - progs/progs.priv.h
ncurses 5.3
[ncurses.git] / progs / progs.priv.h
index d704c0989b33ebae90e6ab14211ceae4447d14f6..9d13b3c7acb869ee3d54701f9bf880db2df48697 100644 (file)
@@ -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.27 2001/06/18 18:43:52 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) (UChar(c) <= 127)
 # else
 #  define isascii(c) 1 /* not really ascii anyway */
 # endif
 #endif
 
+#define UChar(c)    ((unsigned char)(c))
+
 #define SIZEOF(v) (sizeof(v)/sizeof(v[0]))