#include <h/mhcachesbr.h>
#include <h/utils.h>
-#ifdef HAVE_SYS_WAIT_H
-# include <sys/wait.h>
-#endif
-
static struct swit switches[] = {
#define CHECKSW 0
{ "check", 0 },
{ "version", 0 },
#define HELPSW 13
{ "help", 0 },
-
-/*
-** switches for moreproc/mhlproc
-*/
-#define PROGSW 16
- { "moreproc program", -4 },
-#define NPROGSW 17
- { "nomoreproc", -3 },
-#define LENSW 18
- { "length lines", -4 },
-#define WIDTHSW 19
- { "width columns", -4 },
-
/*
** switches for debugging
*/
-#define DEBUGSW 20
+#define DEBUGSW 14
{ "debug", -5 },
{ NULL, 0 }
};
/* mhshowsbr.c */
extern int serialsw;
-extern char *progsw;
extern int nolist;
-extern int nomore; /* flags for moreproc/header display */
extern char *formsw;
/* mhmisc.c */
/*
** static prototypes
*/
-static RETSIGTYPE pipeser(int);
+static void pipeser(int);
int
formsw = getcpy(etcpath(cp));
continue;
- /*
- ** Switches for moreproc/mhlproc
- */
- case PROGSW:
- if (!(progsw = *argp++) || *progsw == '-')
- adios(NULL, "missing argument to %s",
- argp[-2]);
- continue;
- case NPROGSW:
- nomore++;
- continue;
-
- case LENSW:
- case WIDTHSW:
- if (!(cp = *argp++) || *cp == '-')
- adios(NULL, "missing argument to %s",
- argp[-2]);
- continue;
-
case VERBSW:
verbosw = 1;
continue;
adios(NULL, "out of memory");
ctp = cts;
- if ((ct = parse_mime(file)));
+ if ((ct = parse_mime(file)))
*ctp++ = ct;
} else {
/*
}
-static RETSIGTYPE
+static void
pipeser(int i)
{
if (i == SIGQUIT) {