/*
* mhshow.c -- display the contents of MIME messages
*
- * $Id$
- *
* 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.
/* mhparse.c */
-extern int checksw;
extern char *tmp; /* directory to place temp files */
/* mhcachesbr.c */
int debugsw = 0;
int verbosw = 0;
-/* The list of top-level contents to display */
-CT *cts = NULL;
-
#define quitser pipeser
/* mhparse.c */
/* mhfree.c */
void free_content (CT);
+extern CT *cts;
+void freects_done (int) NORETURN;
/*
* static prototypes
CT ct, *ctp;
FILE *fp;
+ done=freects_done;
+
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
context_save (); /* save the context file */
}
- return done (0);
+ done (0);
+ return 1;
}
done (1);
/* NOTREACHED */
}
-
-
-int
-done (int status)
-{
- CT *ctp;
-
- if ((ctp = cts))
- for (; *ctp; ctp++)
- free_content (*ctp);
-
- exit (status);
- return 1; /* dead code to satisfy the compiler */
-}