* complete copyright information.
*/
-#include <h/mh.h>
-#include <h/utils.h>
-#include <h/fmt_scan.h>
+#include "h/mh.h"
+#include "sbr/context_save.h"
+#include "sbr/context_find.h"
+#include "sbr/ambigsw.h"
+#include "sbr/path.h"
+#include "sbr/print_version.h"
+#include "sbr/print_help.h"
+#include "sbr/error.h"
+#include "h/utils.h"
+#include "h/fmt_scan.h"
#include "h/done.h"
#include "sbr/m_maildir.h"
#include <fcntl.h>
int
main (int argc, char **argv)
{
- int use = NOUSE, nedit = 0, nwhat = 0, build = 0;
+ int use = NOUSE;
+ bool nedit = false;
+ bool nwhat = false;
+ bool build = false;
int i, in = NOTOK, isdf = 0, out, dat[5], format_len = 0;
int outputlinelen = OUTPUTLINELEN;
char *cp, *cwd, *maildir, *dfolder = NULL;
case EDITRSW:
if (!(ed = *argp++) || *ed == '-')
die("missing argument to %s", argp[-2]);
- nedit = 0;
+ nedit = false;
continue;
case NEDITSW:
- nedit++;
+ nedit = true;
continue;
case WHATSW:
if (!(whatnowproc = *argp++) || *whatnowproc == '-')
die("missing argument to %s", argp[-2]);
- nwhat = 0;
+ nwhat = false;
continue;
case BILDSW:
- build++;
+ build = true;
/* FALLTHRU */
case NWHATSW:
- nwhat++;
+ nwhat = true;
continue;
case FORMSW: