projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed strange bug that prevented a lock from ever being obtained if getting
[mmh]
/
uip
/
repl.c
diff --git
a/uip/repl.c
b/uip/repl.c
index
d7c09ac
..
b1c0782
100644
(file)
--- a/
uip/repl.c
+++ b/
uip/repl.c
@@
-3,6
+3,10
@@
* 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>
@@
-62,13
+66,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
+112,9
@@
static struct swit aqrl[] = {
{ NULL, 0 }
};
{ NULL, 0 }
};
-short ccto = 0; /* global for replsbr */
-short cccc = 0;
-short ccme = 0;
+short ccto = -1; /* global for replsbr */
+short cccc = -1;
+short ccme = -1;
short querysw = 0;
short outputlinelen = OUTPUTLINELEN;
short querysw = 0;
short outputlinelen = OUTPUTLINELEN;
@@
-177,11
+181,9
@@
main (int argc, char **argv)
case GROUPSW:
groupreply++;
case GROUPSW:
groupreply++;
- ccto = cccc = ccme = 1;
continue;
case NGROUPSW:
groupreply = 0;
continue;
case NGROUPSW:
groupreply = 0;
- ccto = cccc = ccme = 0;
continue;
case ANNOSW:
continue;
case ANNOSW:
@@
-325,6
+327,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"))