extern char *version_str;
extern char *whatnowproc;
-extern void (*done) (int) NORETURN;
-
#include <h/prototypes.h>
context_find.c context_read.c \
context_replace.c context_save.c \
cpydata.c cpydgst.c crawl_folders.c \
- discard.c done.c dtime.c dtimep.c \
+ discard.c dtime.c dtimep.c \
error.c execprog.c ext_hook.c folder_addmsg.c folder_delmsgs.c \
folder_free.c folder_read.c \
folder_realloc.c gans.c getans.c getanswer.c \
+++ /dev/null
-/*
-** done.c -- terminate the program
-**
-** 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>
-
-void (*done) (int) NORETURN = exit;
va_start(ap, fmt);
advertise(what, NULL, fmt, ap);
va_end(ap);
- done(1);
+ exit(1);
}
char *folder;
folder = getcpy(toabsdir(draftfolder));
- create_folder(folder, 0, done);
+ create_folder(folder, 0, exit);
if (!(mp = folder_read(folder))) {
adios(NULL, "unable to read folder %s", folder);
}
** (to start a new draft).
*/
if (!m_convert(mp, which))
- done(1);
+ exit(1);
seq_setprev(mp);
snprintf(buffer, sizeof(buffer), "%s/%s", mp->foldpath,