]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r6978@Kushana: nickm | 2006-07-31 13:16:14 -0400
authorNick Mathewson <nickm@torproject.org>
Mon, 31 Jul 2006 18:01:22 +0000 (18:01 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 31 Jul 2006 18:01:22 +0000 (18:01 +0000)
 Add isupper and islower wrappers to compat.h

svn:r6957

src/common/compat.h

index 9a1cd1b66feb59d0f6ad110a4a1baea55d99de0a..5b76cfe02a9c77a8612e92c26fe6661b3cf1de0a 100644 (file)
@@ -130,6 +130,8 @@ const void *tor_memmem(const void *haystack, size_t hlen, const void *needle,
 #define TOR_ISXDIGIT(c) isxdigit((int)(unsigned char)(c))
 #define TOR_ISDIGIT(c)   isdigit((int)(unsigned char)(c))
 #define TOR_ISPRINT(c)   isprint((int)(unsigned char)(c))
+#define TOR_ISLOWER(c)   islower((int)(unsigned char)(c))
+#define TOR_ISUPPER(c)   isupper((int)(unsigned char)(c))
 
 #ifdef MS_WINDOWS
 #define _SHORT_FILE_ (tor_fix_source_file(__FILE__))