]> code.citadel.org Git - citadel.git/blobdiff - webcit/mime_parser.h
* Brought over yet another new version of the MIME parser from Citadel
[citadel.git] / webcit / mime_parser.h
index 9518374bbc89416424925cb1f1dd68225f9cc7cc..9464f01fae32802f2c5839328204db87260f6f75 100644 (file)
@@ -3,8 +3,33 @@
  *
  */
 
-
+/*
+ * Here's a bunch of stupid magic to make the MIME parser portable between
+ * Citadel and WebCit.
+ */
+#ifndef SIZ
 #define SIZ    4096
+#endif
+
+#ifndef mallok
+#define mallok(x) malloc(x)
+#endif
+
+#ifndef phree
+#define phree(x) free(x)
+#endif
+
+#ifndef reallok
+#define reallok(x,y) realloc(x,y)
+#endif
+
+#ifndef strdoop
+#define strdoop(x) strdup(x)
+#endif
+
+/* 
+ * Declarations for functions in the parser
+ */
 
 void extract_key(char *target, char *source, char *key);