FILE *fp = NULL;
struct mcomp *c1;
- switch (setjmp(env)) {
- case OK:
+ if (setjmp(env) == 0) {
if (fname) {
fp = mhl_action ? (*mhl_action) (fname) :
fopen(fname, "r");
}
SIGNAL(SIGINT, intrser);
mhlfile(fp, fname, ofilen, ofilec);
- /* FALL THROUGH! */
- default:
- SIGNAL(SIGINT, SIG_IGN);
- if (mhl_action == NULL && fp != stdin)
- fclose(fp);
- if (holder.c_text) {
- free(holder.c_text);
- holder.c_text = NULL;
- }
- free_queue(&msghd, &msgtl);
- for (c1 = fmthd; c1; c1 = c1->c_next)
- c1->c_flags &= ~HDROUTPUT;
- break;
}
+
+ SIGNAL(SIGINT, SIG_IGN);
+ if (mhl_action == NULL && fp != stdin)
+ fclose(fp);
+ if (holder.c_text) {
+ free(holder.c_text);
+ holder.c_text = NULL;
+ }
+ free_queue(&msghd, &msgtl);
+ for (c1 = fmthd; c1; c1 = c1->c_next)
+ c1->c_flags &= ~HDROUTPUT;
}
}
done=armed_done;
- switch (setjmp(env)) {
- case OK:
+ if (setjmp(env) == 0) {
status = sendaux(vec, vecp, drft, st) ? NOTOK : OK;
if (status == OK) {
/* move original draft to +trash folder */
dup2(dupfd, 0);
close(dupfd);
}
- break;
-
- default:
+ } else {
status = DONE;
- break;
}
done=exit;