projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stringdex(): Clarified what it does
[mmh]
/
uip
/
comp.c
diff --git
a/uip/comp.c
b/uip/comp.c
index
cbe24d8
..
4768fc4
100644
(file)
--- a/
uip/comp.c
+++ b/
uip/comp.c
@@
-13,19
+13,17
@@
static struct swit switches[] = {
#define EDITRSW 0
{ "editor editor", 0 },
static struct swit switches[] = {
#define EDITRSW 0
{ "editor editor", 0 },
-#define NEDITSW 1
- { "noedit", 0 },
-#define FORMSW 2
+#define FORMSW 1
{ "form formfile", 0 },
{ "form formfile", 0 },
-#define USESW 3
+#define USESW 2
{ "use", 0 },
{ "use", 0 },
-#define NUSESW 4
- { "nouse", 0 },
-#define WHATSW 5
+#define NUSESW 3
+ { "nouse", 2 },
+#define WHATSW 4
{ "whatnowproc program", 0 },
{ "whatnowproc program", 0 },
-#define VERSIONSW 6
- { "version", 0 },
-#define HELPSW 7
+#define VERSIONSW 5
+ { "Version", 0 },
+#define HELPSW 6
{ "help", 0 },
{ NULL, 0 }
};
{ "help", 0 },
{ NULL, 0 }
};
@@
-34,7
+32,7
@@
static struct swit switches[] = {
int
main(int argc, char **argv)
{
int
main(int argc, char **argv)
{
- int use = NOUSE, nedit = 0;
+ int use = NOUSE;
int in, out;
char *cp, *cwd, *maildir;
char *ed = NULL, *form = NULL;
int in, out;
char *cp, *cwd, *maildir;
char *ed = NULL, *form = NULL;
@@
-43,10
+41,7
@@
main(int argc, char **argv)
struct msgs *mp = NULL;
char *fmtstr;
struct msgs *mp = NULL;
char *fmtstr;
-
-#ifdef LOCALE
setlocale(LC_ALL, "");
setlocale(LC_ALL, "");
-#endif
invo_name = mhbasename(argv[0]);
/* read user profile/context */
invo_name = mhbasename(argv[0]);
/* read user profile/context */
@@
-75,10
+70,6
@@
main(int argc, char **argv)
case EDITRSW:
if (!(ed = *argp++) || *ed == '-')
adios(NULL, "missing argument to %s", argp[-2]);
case EDITRSW:
if (!(ed = *argp++) || *ed == '-')
adios(NULL, "missing argument to %s", argp[-2]);
- nedit = 0;
- continue;
- case NEDITSW:
- nedit++;
continue;
case WHATSW:
continue;
case WHATSW:
@@
-170,7
+161,7
@@
main(int argc, char **argv)
}
context_save();
}
context_save();
- what_now(ed, nedit, use, drft, NULL, 0, NULLMP, NULL, cwd);
+ what_now(ed, use, drft, NULL, 0, NULLMP, NULL, cwd);
done(1);
return 1;
}
done(1);
return 1;
}