summaryrefslogtreecommitdiffstats
path: root/mime.h
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-08-25 22:33:07 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-08-25 22:33:07 +0000
commit986ab5e943db7aaed2aed98f8b74e4c26666fdd8 (patch)
tree58cfec1114686823dbdbf22cf2ca52f77eb1075d /mime.h
parent9044dd4d58af4b4d64a6e68b7b76c42d317e7ce5 (diff)
CVS branch clean-up.
Diffstat (limited to 'mime.h')
-rw-r--r--mime.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/mime.h b/mime.h
index 662bae1c..5dd30701 100644
--- a/mime.h
+++ b/mime.h
@@ -24,6 +24,7 @@ enum
TYPEAPPLICATION,
TYPEIMAGE,
TYPEMESSAGE,
+ TYPEMODEL,
TYPEMULTIPART,
TYPETEXT,
TYPEVIDEO
@@ -53,8 +54,8 @@ extern int Index_hex[];
extern int Index_64[];
extern char Base64_chars[];
-#define hexval(c) Index_hex[(int)(c)]
-#define base64val(c) Index_64[(int)(c)]
+#define hexval(c) Index_hex[(unsigned int)(c)]
+#define base64val(c) Index_64[(unsigned int)(c)]
#define is_multipart(x) \
((x)->type == TYPEMULTIPART \
@@ -64,5 +65,5 @@ extern char Base64_chars[];
extern const char *BodyTypes[];
extern const char *BodyEncodings[];
-#define TYPE(X) BodyTypes[(X)]
+#define TYPE(X) ((X->type == TYPEOTHER) && (X->xtype != NULL) ? X->xtype : BodyTypes[(X->type)])
#define ENCODING(X) BodyEncodings[(X)]