projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* sbr/fmt_scan.c: Add the missing wchar.h include
[mmh]
/
uip
/
repl.c
diff --git
a/uip/repl.c
b/uip/repl.c
index
67155fa
..
e5fa527
100644
(file)
--- a/
uip/repl.c
+++ b/
uip/repl.c
@@
-3,9
+3,14
@@
* repl.c -- reply to a message
*
* $Id$
* repl.c -- reply to a message
*
* $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>
+#include <h/utils.h>
static struct swit switches[] = {
static struct swit switches[] = {
@@
-62,13
+67,13
@@
static struct swit switches[] = {
#define VERSIONSW 25
{ "version", 0 },
#define HELPSW 26
#define VERSIONSW 25
{ "version", 0 },
#define HELPSW 26
- { "help", 4 },
+ { "help", 0 },
#define FILESW 27
#define FILESW 27
- { "file file", -4 }, /* interface from msh */
+ { "file file", 4 }, /* interface from msh */
#ifdef MHE
#define BILDSW 28
#ifdef MHE
#define BILDSW 28
- { "build", -5 }, /* interface from mhe */
+ { "build", 5 }, /* interface from mhe */
#endif
{ NULL, 0 }
#endif
{ NULL, 0 }
@@
-108,9
+113,9
@@
static struct swit aqrl[] = {
{ NULL, 0 }
};
{ NULL, 0 }
};
-short ccto = 1; /* global for replsbr */
-short cccc = 1;
-short ccme = 1;
+short ccto = -1; /* global for replsbr */
+short cccc = -1;
+short ccme = -1;
short querysw = 0;
short outputlinelen = OUTPUTLINELEN;
short querysw = 0;
short outputlinelen = OUTPUTLINELEN;
@@
-323,6
+328,13
@@
main (int argc, char **argv)
}
}
}
}
+ if (ccto == -1)
+ ccto = groupreply;
+ if (cccc == -1)
+ cccc = groupreply;
+ if (ccme == -1)
+ ccme = groupreply;
+
cwd = getcpy (pwd ());
if (!context_find ("path"))
cwd = getcpy (pwd ());
if (!context_find ("path"))