diff dlib/dlib.h @ 1221:f34b803b8639

Handle signed chars. Aadded dIsspace() and dIsalnum() to dlib
author Jorge Arellano Cid <jcid@dillo.org>
date Sun, 12 Jul 2009 16:53:16 -0400
parents 5bab6f4dc3cc
children 2af950507af5
line wrap: on
line diff
--- a/dlib/dlib.h	Sat Jul 11 17:19:05 2009 +0200
+++ b/dlib/dlib.h	Sun Jul 12 16:53:16 2009 -0400
@@ -30,6 +30,10 @@
 #undef  MIN
 #define MIN(a, b)  (((a) < (b)) ? (a) : (b))
 
+/* Handle signed char */
+#define dIsspace(c) isspace((uchar_t)(c))
+#define dIsalnum(c) isalnum((uchar_t)(c))
+
 /*
  *-- Casts -------------------------------------------------------------------
  */