Reformated comments and long lines
[mmh] / h / mhparse.h
index e3abf31..bef3f4f 100644 (file)
@@ -1,40 +1,40 @@
 /*
- * mhparse.h -- definitions for parsing/building of MIME content
- *           -- (mhparse.c/mhbuildsbr.c)
- */
+** mhparse.h -- definitions for parsing/building of MIME content
+**           -- (mhparse.c/mhbuildsbr.c)
+*/
 
 #define NPARTS  50
 #define NTYPES  20
 #define NPARMS  10
 
 /*
- * Abstract type for header fields
- */
+** Abstract type for header fields
+*/
 typedef struct hfield *HF;
 
 /*
- * Abstract types for MIME parsing/building
- */
+** Abstract types for MIME parsing/building
+*/
 typedef struct cefile  *CE;
 typedef struct CTinfo  *CI;
 typedef struct Content *CT;
 
 /*
- * type for Init function (both type and transfer encoding)
- */
+** type for Init function (both type and transfer encoding)
+*/
 typedef int (*InitFunc) (CT);
 
 /*
- * types for various transfer encoding access functions
- */
+** types for various transfer encoding access functions
+*/
 typedef int (*OpenCEFunc) (CT, char **);
 typedef void (*CloseCEFunc) (CT);
 typedef unsigned long (*SizeCEFunc) (CT);
 
 /*
- * Structure for storing/encoding/decoding
- * a header field and its value.
- */
+** Structure for storing/encoding/decoding
+** a header field and its value.
+*/
 struct hfield {
        char *name;       /* field name */
        char *value;      /* field body */
@@ -43,9 +43,9 @@ struct hfield {
 };
 
 /*
- * Structure for storing parsed elements
- * of the Content-Type component.
- */
+** Structure for storing parsed elements
+** of the Content-Type component.
+*/
 struct CTinfo {
        char *ci_type;               /* content type     */
        char *ci_subtype;            /* content subtype  */
@@ -56,9 +56,9 @@ struct CTinfo {
 };
 
 /*
- * Structure for storing decoded contents after
- * removing Content-Transfer-Encoding.
- */
+** Structure for storing decoded contents after
+** removing Content-Transfer-Encoding.
+*/
 struct cefile {
        char *ce_file;   /* decoded content (file)   */
        FILE *ce_fp;     /* decoded content (stream) */
@@ -66,8 +66,8 @@ struct cefile {
 };
 
 /*
- * Primary structure for handling Content (Entity)
- */
+** Primary structure for handling Content (Entity)
+*/
 struct Content {
        /* source (read) file */
        char *c_file;                /* read contents (file)              */
@@ -126,8 +126,8 @@ struct Content {
 };
 
 /*
- * Flags for Content-Type (Content->c_type)
- */
+** Flags for Content-Type (Content->c_type)
+*/
 #define CT_UNKNOWN      0x00
 #define CT_APPLICATION  0x01
 #define CT_AUDIO        0x02
@@ -139,8 +139,8 @@ struct Content {
 #define CT_EXTENSION    0x08
 
 /*
- * Flags for Content-Transfer-Encoding (Content->c_encoding)
- */
+** Flags for Content-Transfer-Encoding (Content->c_encoding)
+*/
 #define CE_UNKNOWN      0x00
 #define CE_BASE64       0x01
 #define CE_QUOTED       0x02
@@ -151,8 +151,8 @@ struct Content {
 #define CE_EXTERNAL     0x07    /* for external-body */
 
 /*
- * TEXT content
- */
+** TEXT content
+*/
 
 /* Flags for subtypes of TEXT */
 #define TEXT_UNKNOWN    0x00
@@ -172,8 +172,8 @@ struct text {
 };
 
 /*
- * MULTIPART content
- */
+** MULTIPART content
+*/
 
 /* Flags for subtypes of MULTIPART */
 #define MULTI_UNKNOWN    0x00
@@ -196,8 +196,8 @@ struct multipart {
 };
 
 /*
- * MESSAGE content
- */
+** MESSAGE content
+*/
 
 /* Flags for subtypes of MESSAGE */
 #define MESSAGE_UNKNOWN   0x00
@@ -233,8 +233,8 @@ struct exbody {
 };
 
 /*
- * APPLICATION content
- */
+** APPLICATION content
+*/
 
 /* Flags for subtype of APPLICATION */
 #define APPLICATION_UNKNOWN     0x00
@@ -243,8 +243,8 @@ struct exbody {
 
 
 /*
- * Structures for mapping types to their internal flags
- */
+** Structures for mapping types to their internal flags
+*/
 struct k2v {
        char *kv_key;
        int kv_value;
@@ -256,9 +256,9 @@ extern struct k2v SubMessage[];
 extern struct k2v SubApplication[];
 
 /*
- * Structures for mapping (content) types to
- * the functions to handle them.
- */
+** Structures for mapping (content) types to
+** the functions to handle them.
+*/
 struct str2init {
        char *si_key;
        int si_val;
@@ -269,8 +269,8 @@ extern struct str2init str2ces[];
 extern struct str2init str2methods[];
 
 /*
- * prototypes
- */
+** prototypes
+*/
 int pidcheck (int);
 CT parse_mime (char *);
 int add_header (CT, char *, char *);