summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-13 15:56:50 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-13 15:56:50 +0200
commit8ba55bae99f5b65a681463d04b878ecf5db460bd (patch)
tree37b67b1149193eac55c081ec8c31215f76376007
parent01c1c0d9707d2ac859a77d0b95c66fbfac1c07bd (diff)
downloadmblaze-8ba55bae99f5b65a681463d04b878ecf5db460bd.tar.gz
mblaze-8ba55bae99f5b65a681463d04b878ecf5db460bd.tar.xz
mblaze-8ba55bae99f5b65a681463d04b878ecf5db460bd.zip
blaze822_priv.h: macro cleanup
-rw-r--r--blaze822.c6
-rw-r--r--blaze822_priv.h4
-rw-r--r--rfc2047.c6
3 files changed, 6 insertions, 10 deletions
diff --git a/blaze822.c b/blaze822.c
index 7bba970..cd402f1 100644
--- a/blaze822.c
+++ b/blaze822.c
@@ -16,12 +16,6 @@
 #include "blaze822.h"
 #include "blaze822_priv.h"
 
-//          WSP            =  SP / HTAB
-#define iswsp(c)  (((c) == ' ' || (c) == '\t'))
-
-// ASCII lowercase without alpha check (wrong for "@[\]^_")
-#define lc(c) ((c) | 0x20)
-
 #define bufsiz 4096
 
 static long
diff --git a/blaze822_priv.h b/blaze822_priv.h
index dfd8895..5276ff7 100644
--- a/blaze822_priv.h
+++ b/blaze822_priv.h
@@ -6,4 +6,8 @@ struct message {
 	char *bodychunk;
 };
 
+//          WSP            =  SP / HTAB
 #define iswsp(c)  (((c) == ' ' || (c) == '\t'))
+
+// ASCII lowercase without alpha check (wrong for "@[\]^_")
+#define lc(c) ((c) | 0x20)
diff --git a/rfc2047.c b/rfc2047.c
index 15c9cf7..9559608 100644
--- a/rfc2047.c
+++ b/rfc2047.c
@@ -5,10 +5,8 @@
 #include <string.h>
 #include <stdint.h>
 
-#define iswsp(c)  (((c) == ' ' || (c) == '\t'))
-
-// ASCII lowercase without alpha check (wrong for "@[\]^_")
-#define lc(c) ((c) | 0x20)
+#include "blaze822.h"
+#include "blaze822_priv.h"
 
 // XXX error detection on decode
 // XXX keep trying bytewise on invalid iconv