projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed --with-{editor,pager} configure options.
[mmh]
/
uip
/
mhparam.c
diff --git
a/uip/mhparam.c
b/uip/mhparam.c
index
f6ebb65
..
80b52a1
100644
(file)
--- a/
uip/mhparam.c
+++ b/
uip/mhparam.c
@@
-5,7
+5,9
@@
* Originally contributed by
* Jeffrey C Honig <Jeffrey_C_Honig@cornell.edu>
*
* Originally contributed by
* Jeffrey C Honig <Jeffrey_C_Honig@cornell.edu>
*
- * $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.
*/
#include <h/mh.h>
*/
#include <h/mh.h>
@@
-13,7
+15,6
@@
extern char *mhlibdir;
extern char *mhetcdir;
extern char *mhlibdir;
extern char *mhetcdir;
-char *sbackup = BACKUP_PREFIX;
char *slink = LINK;
static struct swit switches[] = {
char *slink = LINK;
static struct swit switches[] = {
@@
-26,7
+27,7
@@
static struct swit switches[] = {
#define VERSIONSW 3
{ "version", 0 },
#define HELPSW 4
#define VERSIONSW 3
{ "version", 0 },
#define HELPSW 4
- { "help", 4 },
+ { "help", 0 },
#define DEBUGSW 5
{ "debug", -5 },
{ NULL, 0 }
#define DEBUGSW 5
{ "debug", -5 },
{ NULL, 0 }
@@
-41,6
+42,7
@@
static struct proc procs [] = {
{ "context", &context },
{ "mh-sequences", &mh_seq },
{ "buildmimeproc", &buildmimeproc },
{ "context", &context },
{ "mh-sequences", &mh_seq },
{ "buildmimeproc", &buildmimeproc },
+ { "editor", &defaulteditor },
{ "faceproc", &faceproc },
{ "fileproc", &fileproc },
{ "foldprot", &foldprot },
{ "faceproc", &faceproc },
{ "fileproc", &fileproc },
{ "foldprot", &foldprot },
@@
-56,6
+58,7
@@
static struct proc procs [] = {
{ "postproc", &postproc },
{ "rmfproc", &rmfproc },
{ "rmmproc", &rmmproc },
{ "postproc", &postproc },
{ "rmfproc", &rmfproc },
{ "rmmproc", &rmmproc },
+ { "sendmail", &sendmail },
{ "sendproc", &sendproc },
{ "showmimeproc", &showmimeproc },
{ "showproc", &showproc },
{ "sendproc", &sendproc },
{ "showmimeproc", &showmimeproc },
{ "showproc", &showproc },
@@
-65,7
+68,7
@@
static struct proc procs [] = {
{ "whomproc", &whomproc },
{ "etcdir", &mhetcdir },
{ "libdir", &mhlibdir },
{ "whomproc", &whomproc },
{ "etcdir", &mhetcdir },
{ "libdir", &mhlibdir },
- { "sbackup", &sbackup },
+ { "backup-prefix", &backup_prefix },
{ "link", &slink },
{ NULL, NULL },
};
{ "link", &slink },
{ NULL, NULL },
};
@@
-146,7
+149,7
@@
main(int argc, char **argv)
for (np = m_defs; np; np = np->n_next)
printf("%s: %s\n", np->n_name, np->n_field);
for (np = m_defs; np; np = np->n_next)
printf("%s: %s\n", np->n_name, np->n_field);
- } if (debug) {
+ } else if (debug) {
struct proc *ps;
/*
struct proc *ps;
/*
@@
-177,7
+180,8
@@
main(int argc, char **argv)
}
}
}
}
- return done (missed);
+ done (missed);
+ return 1;
}
}
@@
-187,7
+191,7
@@
p_find(char *str)
struct proc *ps;
for (ps = procs; ps->p_name; ps++)
struct proc *ps;
for (ps = procs; ps->p_name; ps++)
- if (!strcasecmp (ps->p_name, str))
+ if (!mh_strcasecmp (ps->p_name, str))
return (*ps->p_field);
return NULL;
return (*ps->p_field);
return NULL;