about summary refs log tree commit diff
path: root/blaze822_priv.h
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-03-08 17:11:36 +0100
committerLeah Neukirchen <leah@vuxu.org>2020-03-08 17:11:36 +0100
commit582256618a102cb3b6597ed63124c48ae16f8efb (patch)
tree14589fdf3642a8c11ffab5fe7ee0bfb3c489a4e7 /blaze822_priv.h
parent83f9794bb0a79218836d05a58a58c330e32ba36d (diff)
downloadmblaze-582256618a102cb3b6597ed63124c48ae16f8efb.tar.gz
mblaze-582256618a102cb3b6597ed63124c48ae16f8efb.tar.xz
mblaze-582256618a102cb3b6597ed63124c48ae16f8efb.zip
move uc macro to blaze822_priv.h
Diffstat (limited to 'blaze822_priv.h')
-rw-r--r--blaze822_priv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/blaze822_priv.h b/blaze822_priv.h
index c871ca7..f1fe880 100644
--- a/blaze822_priv.h
+++ b/blaze822_priv.h
@@ -12,7 +12,8 @@ struct message {
 
 #define isfws(c)  (((unsigned char)(c) == ' ' || (unsigned char)(c) == '\t' || (unsigned char)(c) == '\n' || (unsigned char)(c) == '\r'))
 
-// ASCII lowercase without alpha check (wrong for "@[\]^_")
+// ASCII lowercase/uppercase without alpha check (wrong for "@[\]^_")
 #define lc(c) ((c) | 0x20)
+#define uc(c) ((c) & 0xdf)
 
 void *mymemmem(const void *h0, size_t k, const void *n0, size_t l);