/*
- * mhfree.c -- routines to free the data structures used to
- * -- represent MIME messages
- *
- * This code is Copyright (c) 2002, by the authors of nmh. See the
- * COPYRIGHT file in the root directory of the nmh distribution for
- * complete copyright information.
- */
+** mhfree.c -- routines to free the data structures used to
+** -- represent MIME messages
+**
+** This code is Copyright (c) 2002, by the authors of nmh. See the
+** COPYRIGHT file in the root directory of the nmh distribution for
+** complete copyright information.
+*/
#include <h/mh.h>
#include <errno.h>
CT *cts = NULL;
/*
- * prototypes
- */
+** prototypes
+*/
void free_content (CT);
void free_header (CT);
void free_ctinfo (CT);
void freects_done (int);
/*
- * static prototypes
- */
+** static prototypes
+*/
static void free_text (CT);
static void free_multi (CT);
static void free_partial (CT);
/*
- * Primary routine to free a MIME content structure
- */
+** Primary routine to free a MIME content structure
+*/
void
free_content (CT ct)
return;
/*
- * free all the header fields
- */
+ ** free all the header fields
+ */
free_header (ct);
if (ct->c_partno)
free_ctinfo (ct);
/*
- * some of the content types have extra
- * parts which need to be freed.
- */
+ ** some of the content types have extra
+ ** parts which need to be freed.
+ */
switch (ct->c_type) {
case CT_MULTIPART:
free_multi (ct);
/*
- * Free the linked list of header fields
- * for this content.
- */
+** Free the linked list of header fields
+** for this content.
+*/
void
free_header (CT ct)
/*
- * Free data structures related to encoding/decoding
- * Content-Transfer-Encodings.
- */
+** Free data structures related to encoding/decoding
+** Content-Transfer-Encodings.
+*/
void
free_encoding (CT ct, int toplevel)