Be sure to install Cygwin packages libncurses-devel and libncurses10,
in the Libs category.
-You may notice a few (three) compile warnings: they can be ignored.
+The few minor compile warnings can be ignored.
--------------------------------------
HPUX:
## them, but that might change in the future.
##
noinst_HEADERS = h/addrsbr.h h/aliasbr.h h/crawl_folders.h h/dropsbr.h \
- h/fmt_compile.h h/fmt_scan.h h/m_setjmp.h h/md5.h h/mf.h \
+ h/fmt_compile.h h/fmt_scan.h h/md5.h h/mf.h \
h/mh.h h/mhcachesbr.h h/mhparse.h h/mime.h h/msh.h \
h/mts.h h/nmh.h h/picksbr.h h/popsbr.h h/prototypes.h \
h/rcvmail.h h/scansbr.h h/signals.h h/tws.h h/utils.h \
sbr/fmt_rfc2047.c sbr/fmt_scan.c sbr/lock_file.c \
sbr/m_atoi.c sbr/m_backup.c sbr/m_convert.c \
sbr/m_draft.c sbr/m_getfld.c sbr/m_gmprot.c \
- sbr/m_maildir.c sbr/m_name.c sbr/m_setjmp.c \
+ sbr/m_maildir.c sbr/m_name.c \
sbr/makedir.c sbr/mts.c sbr/norm_charmap.c sbr/path.c \
sbr/peekc.c sbr/pidwait.c sbr/pidstatus.c \
sbr/print_help.c sbr/print_sw.c sbr/print_version.c \
+++ /dev/null
-
-/*
- * m_setjmp.h -- Wraps setjmp() and sigsetjmp(), to help prevent warnings
- * -- about arguments and variables that might be clobbered by
- * -- a setjmp call with gcc -Wclobbered.
- *
- * This code is Copyright (c) 2012, by the authors of nmh. See the
- * COPYRIGHT file in the root directory of the nmh distribution for
- * complete copyright information.
- */
-
-#include <setjmp.h>
-
-int m_setjmp(jmp_buf);
-
-int m_sigsetjmp(sigjmp_buf, int);
#include <h/mh.h>
#include <h/signals.h>
-#include <h/m_setjmp.h>
+#include <setjmp.h>
#include <signal.h>
#include <errno.h>
#include <h/mh.h>
#include <h/signals.h>
-#include <h/m_setjmp.h>
+#include <setjmp.h>
#include <signal.h>
#include <errno.h>
+++ /dev/null
-
-/*
- * m_setjmp.h -- Wraps setjmp() and sigsetjmp(), to help prevent warnings
- * -- about arguments and variables that might be clobbered by
- * -- a setjmp call with gcc -Wclobbered.
- *
- * This code is Copyright (c) 2012, by the authors of nmh. See the
- * COPYRIGHT file in the root directory of the nmh distribution for
- * complete copyright information.
- */
-
-#include <h/m_setjmp.h>
-
-
-int
-m_setjmp(jmp_buf env) {
- return setjmp(env);
-}
-
-
-int
-m_sigsetjmp(sigjmp_buf env, int savesigs) {
- return sigsetjmp(env, savesigs);
-}
-
#include <h/fmt_scan.h>
#include <h/tws.h>
#include <h/utils.h>
-#include <h/m_setjmp.h>
+#include <setjmp.h>
#include <signal.h>
#include <errno.h>
#include <sys/wait.h>
struct mcomp *c1;
struct stat st;
- switch (m_setjmp (env)) {
+ switch (setjmp (env)) {
case OK:
if (fname) {
fp = mhl_action ? (*mhl_action) (fname) : fopen (fname, "r");
char *cp = NULL;
struct mcomp *c1;
- switch (m_setjmp (mhlenv)) {
+ switch (setjmp (mhlenv)) {
case OK:
cp = invo_name;
sleepsw = 0; /* XXX */
#include <h/signals.h>
#include <h/md5.h>
#include <errno.h>
-#include <h/m_setjmp.h>
+#include <setjmp.h>
#include <signal.h>
#include <h/mts.h>
#include <h/tws.h>
SIGNAL_HANDLER istat;
istat = SIGNAL (SIGINT, intrser);
- if ((intr = m_sigsetjmp (intrenv, 1)) == OK) {
+ if ((intr = sigsetjmp (intrenv, 1)) == OK) {
fflush (stdout);
prompt[0] = 0;
read (fileno (stdout), prompt, sizeof(prompt));
#include <termios.h>
#include <pwd.h>
-#include <h/m_setjmp.h>
+#include <setjmp.h>
#include <signal.h>
#include <h/msh.h>
#include <h/vmhsbr.h>
{
int status;
- switch (m_setjmp (peerenv)) {
+ switch (setjmp (peerenv)) {
case OK:
SIGNAL (SIGALRM, alrmser);
alarm (ALARM);
#include <h/signals.h>
#include <errno.h>
#include <signal.h>
-#include <h/m_setjmp.h>
+#include <setjmp.h>
#include <termios.h>
cp = buffer;
*cp = 0;
- switch (m_setjmp (sigenv)) {
+ switch (setjmp (sigenv)) {
case OK:
wtuser = 1;
break;
#include <h/mh.h>
#include <h/signals.h>
-#include <h/m_setjmp.h>
+#include <setjmp.h>
#include <h/rcvmail.h>
#include <h/scansbr.h>
#include <h/tws.h>
return header_fd ();
} else if (child_id) {
/* parent process */
- if (!m_setjmp (myctx)) {
+ if (!setjmp (myctx)) {
SIGNAL (SIGALRM, alrmser);
bytes = fstat(fileno (stdin), &st) != NOTOK ? (int) st.st_size : 100;
if (stat (ttyspec, &st) == NOTOK || (st.st_mode & mask) == 0)
return;
- if (!m_setjmp (myctx)) {
+ if (!setjmp (myctx)) {
SIGNAL (SIGALRM, alrmser);
alarm (2);
td = open (ttyspec, O_WRONLY);
#include <h/mh.h>
#include <h/signals.h>
-#include <h/m_setjmp.h>
+#include <setjmp.h>
#include <signal.h>
#include <fcntl.h>
#include <h/mime.h>
}
done=armed_done;
- switch (m_setjmp (env)) {
+ switch (setjmp (env)) {
case OK:
/*
* If given -push and -unique (which is undocumented), then
#include <h/dropsbr.h>
#include <h/rcvmail.h>
#include <h/signals.h>
-#include <h/m_setjmp.h>
+#include <setjmp.h>
#include <h/tws.h>
#include <h/mts.h>
#include <h/utils.h>
default:
/* parent process */
- if (! m_setjmp (myctx)) {
+ if (! setjmp (myctx)) {
SIGNAL (SIGALRM, alrmser);
bytes = fstat (fd, &st) != -1 ? (int) st.st_size : 100;