From bfff2c60b2c860c2bc466bdab94daf770d86aec5 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 13:44:24 +0000 Subject: [PATCH 01/16] error.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 6 ------ mts/smtp/smtp.c | 1 + sbr/addrsbr.c | 1 + sbr/ambigsw.c | 1 + sbr/arglist.c | 1 + sbr/base64.c | 1 + sbr/context_del.c | 1 + sbr/context_foil.c | 1 + sbr/context_read.c | 1 + sbr/context_replace.c | 1 + sbr/context_save.c | 1 + sbr/cpydata.c | 1 + sbr/cpydgst.c | 1 + sbr/crawl_folders.c | 1 + sbr/credentials.c | 1 + sbr/datetime.c | 1 + sbr/done.c | 1 + sbr/encode_rfc2047.c | 1 + sbr/error.c | 1 + sbr/error.h | 12 ++++++++++++ sbr/ext_hook.c | 1 + sbr/fmt_compile.c | 1 + sbr/fmt_new.c | 1 + sbr/fmt_scan.c | 1 + sbr/folder_addmsg.c | 1 + sbr/folder_delmsgs.c | 1 + sbr/folder_pack.c | 1 + sbr/folder_read.c | 1 + sbr/folder_realloc.c | 1 + sbr/icalparse.y | 1 + sbr/lock_file.c | 1 + sbr/m_convert.c | 1 + sbr/m_draft.c | 1 + sbr/m_getfld.c | 1 + sbr/m_popen.c | 1 + sbr/makedir.c | 1 + sbr/mime_type.c | 1 + sbr/mts.c | 1 + sbr/oauth.c | 1 + sbr/push.c | 1 + sbr/readconfig.c | 1 + sbr/refile.c | 1 + sbr/remdir.c | 1 + sbr/ruserpass.c | 1 + sbr/seq_add.c | 1 + sbr/seq_del.c | 1 + sbr/seq_nameok.c | 1 + sbr/seq_read.c | 1 + sbr/seq_save.c | 1 + sbr/showfile.c | 1 + sbr/utils.c | 1 + sbr/vfgets.c | 1 + uip/ali.c | 1 + uip/anno.c | 1 + uip/annosbr.c | 1 + uip/ap.c | 1 + uip/burst.c | 1 + uip/comp.c | 1 + uip/dist.c | 1 + uip/distsbr.c | 1 + uip/dp.c | 1 + uip/dropsbr.c | 1 + uip/flist.c | 1 + uip/fmtdump.c | 1 + uip/fmttest.c | 1 + uip/folder.c | 1 + uip/forw.c | 1 + uip/forwsbr.c | 1 + uip/imaptest.c | 1 + uip/inc.c | 1 + uip/install-mh.c | 1 + uip/mark.c | 1 + uip/mhbuild.c | 1 + uip/mhbuildsbr.c | 1 + uip/mhcachesbr.c | 1 + uip/mhfixmsg.c | 1 + uip/mhical.c | 1 + uip/mhlist.c | 1 + uip/mhlogin.c | 1 + uip/mhlsbr.c | 1 + uip/mhmisc.c | 1 + uip/mhn.c | 1 + uip/mhoutsbr.c | 1 + uip/mhparam.c | 1 + uip/mhparse.c | 1 + uip/mhpath.c | 1 + uip/mhshow.c | 1 + uip/mhshowsbr.c | 1 + uip/mhstore.c | 1 + uip/mhstoresbr.c | 1 + uip/mkstemp.c | 1 + uip/msgchk.c | 1 + uip/new.c | 1 + uip/packf.c | 1 + uip/pick.c | 1 + uip/picksbr.c | 1 + uip/popsbr.c | 1 + uip/post.c | 1 + uip/prompter.c | 1 + uip/rcvdist.c | 1 + uip/rcvpack.c | 1 + uip/rcvstore.c | 1 + uip/rcvtty.c | 1 + uip/refile.c | 1 + uip/repl.c | 1 + uip/replsbr.c | 1 + uip/rmf.c | 1 + uip/rmm.c | 1 + uip/scan.c | 1 + uip/scansbr.c | 1 + uip/send.c | 1 + uip/sendsbr.c | 1 + uip/show.c | 1 + uip/slocal.c | 1 + uip/sortm.c | 1 + uip/viamail.c | 1 + uip/whatnowproc.c | 1 + uip/whatnowsbr.c | 1 + uip/whom.c | 1 + 120 files changed, 130 insertions(+), 6 deletions(-) create mode 100644 sbr/error.h diff --git a/Makefile.am b/Makefile.am index 2b0c7094..bce4eb2c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -364,6 +364,7 @@ noinst_HEADERS = \ mts/smtp/smtp.h \ sbr/base64.h \ sbr/ctype-checked.h \ + sbr/error.h \ sbr/lock_file.h \ sbr/m_maildir.h \ sbr/m_mktemp.h \ diff --git a/h/prototypes.h b/h/prototypes.h index f4fb375c..c1c54842 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -16,12 +16,6 @@ char *etcpath(char *) NONNULL(1); struct msgs_array; void add_profile_entry (const char *, const char *); -void inform(char *fmt, ...) CHECK_PRINTF(1, 2); -void adios (const char *, const char *, ...) CHECK_PRINTF(2, 3) NORETURN; -void die(const char *, ...) CHECK_PRINTF(1, 2) NORETURN; -void admonish (char *, char *, ...) CHECK_PRINTF(2, 3); -void advertise (const char *, char *, const char *, va_list) CHECK_PRINTF(3, 0); -void advise (const char *, const char *, ...) CHECK_PRINTF(2, 3); char **argsplit (char *, char **, int *) NONNULL(1, 2); void argsplit_msgarg (struct msgs_array *, char *, char **) NONNULL(1, 2, 3); void argsplit_insert (struct msgs_array *, char *, char **) NONNULL(1, 2, 3); diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index f22e738b..bdac1e9d 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include "smtp.h" #include #include diff --git a/sbr/addrsbr.c b/sbr/addrsbr.c index fe508ba9..5b93f705 100644 --- a/sbr/addrsbr.c +++ b/sbr/addrsbr.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include #include #include diff --git a/sbr/ambigsw.c b/sbr/ambigsw.c index 3f874f29..b4b2d2c7 100644 --- a/sbr/ambigsw.c +++ b/sbr/ambigsw.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" void diff --git a/sbr/arglist.c b/sbr/arglist.c index 716c8be6..ed8dfbc6 100644 --- a/sbr/arglist.c +++ b/sbr/arglist.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include /* diff --git a/sbr/base64.c b/sbr/base64.c index 75e82301..5e17a1f9 100644 --- a/sbr/base64.c +++ b/sbr/base64.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include #include #include diff --git a/sbr/context_del.c b/sbr/context_del.c index 592af0ca..04d92b31 100644 --- a/sbr/context_del.c +++ b/sbr/context_del.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include /* diff --git a/sbr/context_foil.c b/sbr/context_foil.c index 09bfe30c..c502dd23 100644 --- a/sbr/context_foil.c +++ b/sbr/context_foil.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include /* diff --git a/sbr/context_read.c b/sbr/context_read.c index def50969..1049123d 100644 --- a/sbr/context_read.c +++ b/sbr/context_read.c @@ -22,6 +22,7 @@ */ #include /* mh internals */ +#include "error.h" #include "lock_file.h" #include "m_maildir.h" #include "makedir.h" diff --git a/sbr/context_replace.c b/sbr/context_replace.c index 154f3f6b..9dba8d87 100644 --- a/sbr/context_replace.c +++ b/sbr/context_replace.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include diff --git a/sbr/context_save.c b/sbr/context_save.c index 61aa736f..393ebbf5 100644 --- a/sbr/context_save.c +++ b/sbr/context_save.c @@ -12,6 +12,7 @@ */ #include +#include "error.h" #include #include "lock_file.h" diff --git a/sbr/cpydata.c b/sbr/cpydata.c index 49b9927c..cc7f6e57 100644 --- a/sbr/cpydata.c +++ b/sbr/cpydata.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" void cpydata (int in, int out, const char *ifile, const char *ofile) diff --git a/sbr/cpydgst.c b/sbr/cpydgst.c index 7d33cf47..73617eb9 100644 --- a/sbr/cpydgst.c +++ b/sbr/cpydgst.c @@ -7,6 +7,7 @@ */ #include +#include "error.h" /* * We want to perform the substitution diff --git a/sbr/crawl_folders.c b/sbr/crawl_folders.c index ab90a4ca..b7901b23 100644 --- a/sbr/crawl_folders.c +++ b/sbr/crawl_folders.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include #include diff --git a/sbr/credentials.c b/sbr/credentials.c index c728c52f..8d2ed617 100644 --- a/sbr/credentials.c +++ b/sbr/credentials.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include #include #include "m_maildir.h" diff --git a/sbr/datetime.c b/sbr/datetime.c index f51ed2f4..f79c9424 100644 --- a/sbr/datetime.c +++ b/sbr/datetime.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "error.h" #include "h/icalendar.h" #include #include "h/tws.h" diff --git a/sbr/done.c b/sbr/done.c index 5f2bc8db..58e8c56d 100644 --- a/sbr/done.c +++ b/sbr/done.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" static void (*altexit)(int) NORETURN = exit; diff --git a/sbr/encode_rfc2047.c b/sbr/encode_rfc2047.c index be74c67c..709082fb 100644 --- a/sbr/encode_rfc2047.c +++ b/sbr/encode_rfc2047.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include #include #include diff --git a/sbr/error.c b/sbr/error.c index 54d6fac5..fd0d7833 100644 --- a/sbr/error.c +++ b/sbr/error.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include #include diff --git a/sbr/error.h b/sbr/error.h new file mode 100644 index 00000000..a6c7b887 --- /dev/null +++ b/sbr/error.h @@ -0,0 +1,12 @@ +/* error.h -- main error handling routines + * + * This code is Copyright (c) 2017, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ + +void inform(char *fmt, ...) CHECK_PRINTF(1, 2); +void advise(const char *, const char *, ...) CHECK_PRINTF(2, 3); +void adios(const char *, const char *, ...) CHECK_PRINTF(2, 3) NORETURN; +void die(const char *, ...) CHECK_PRINTF(1, 2) NORETURN; +void admonish(char *, char *, ...) CHECK_PRINTF(2, 3); +void advertise(const char *, char *, const char *, va_list) CHECK_PRINTF(3, 0); diff --git a/sbr/ext_hook.c b/sbr/ext_hook.c index b88be2db..1ee9c170 100644 --- a/sbr/ext_hook.c +++ b/sbr/ext_hook.c @@ -7,6 +7,7 @@ */ #include +#include "error.h" int ext_hook(char *hook_name, char *message_file_name_1, char *message_file_name_2) diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index 216b8e71..421876c6 100644 --- a/sbr/fmt_compile.c +++ b/sbr/fmt_compile.c @@ -40,6 +40,7 @@ */ #include +#include "error.h" #include #include #include diff --git a/sbr/fmt_new.c b/sbr/fmt_new.c index 05da19bc..cd7d26b6 100644 --- a/sbr/fmt_new.c +++ b/sbr/fmt_new.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include #define QUOTE '\\' diff --git a/sbr/fmt_scan.c b/sbr/fmt_scan.c index 207692fc..0a948179 100644 --- a/sbr/fmt_scan.c +++ b/sbr/fmt_scan.c @@ -9,6 +9,7 @@ */ #include +#include "error.h" #include #include #include diff --git a/sbr/folder_addmsg.c b/sbr/folder_addmsg.c index 5a78a124..ce25767c 100644 --- a/sbr/folder_addmsg.c +++ b/sbr/folder_addmsg.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include /* diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 43eb0ad3..ac5e9367 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include #include "m_mktemp.h" diff --git a/sbr/folder_pack.c b/sbr/folder_pack.c index 22c02079..9f00398a 100644 --- a/sbr/folder_pack.c +++ b/sbr/folder_pack.c @@ -7,6 +7,7 @@ */ #include +#include "error.h" /* * Pack the message in a folder. diff --git a/sbr/folder_read.c b/sbr/folder_read.c index 3b1c63bd..7171cb13 100644 --- a/sbr/folder_read.c +++ b/sbr/folder_read.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include #include "m_maildir.h" diff --git a/sbr/folder_realloc.c b/sbr/folder_realloc.c index 8eb2fcce..827d3b17 100644 --- a/sbr/folder_realloc.c +++ b/sbr/folder_realloc.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include /* diff --git a/sbr/icalparse.y b/sbr/icalparse.y index ef302001..0213fa90 100644 --- a/sbr/icalparse.y +++ b/sbr/icalparse.y @@ -34,6 +34,7 @@ */ #include "h/mh.h" +#include "sbr/error.h" #include "h/icalendar.h" #include "h/utils.h" diff --git a/sbr/lock_file.c b/sbr/lock_file.c index 8f1732b4..00f18331 100644 --- a/sbr/lock_file.c +++ b/sbr/lock_file.c @@ -14,6 +14,7 @@ */ #include +#include "error.h" #include #include #include diff --git a/sbr/m_convert.c b/sbr/m_convert.c index 8a86535f..3f67b2cc 100644 --- a/sbr/m_convert.c +++ b/sbr/m_convert.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include /* diff --git a/sbr/m_draft.c b/sbr/m_draft.c index 8bfb8397..7f24dd81 100644 --- a/sbr/m_draft.c +++ b/sbr/m_draft.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include #include "m_maildir.h" #include "h/done.h" diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c index d7ef292c..60b263f3 100644 --- a/sbr/m_getfld.c +++ b/sbr/m_getfld.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include #include #include diff --git a/sbr/m_popen.c b/sbr/m_popen.c index 9a1c1a5e..79e0c9b1 100644 --- a/sbr/m_popen.c +++ b/sbr/m_popen.c @@ -7,6 +7,7 @@ */ #include +#include "error.h" #include #include "m_popen.h" diff --git a/sbr/makedir.c b/sbr/makedir.c index 04e5d779..e7c3efa9 100644 --- a/sbr/makedir.c +++ b/sbr/makedir.c @@ -10,6 +10,7 @@ */ #include +#include "error.h" #include "makedir.h" #include diff --git a/sbr/mime_type.c b/sbr/mime_type.c index 4e3ebbb7..6b4f9725 100644 --- a/sbr/mime_type.c +++ b/sbr/mime_type.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include #include #include "mime_type.h" diff --git a/sbr/mts.c b/sbr/mts.c index d67153fe..f9923646 100644 --- a/sbr/mts.c +++ b/sbr/mts.c @@ -6,6 +6,7 @@ */ #include /* for snprintf() */ +#include "error.h" #include #define nmhetcdir(file) NMHETCDIR#file diff --git a/sbr/oauth.c b/sbr/oauth.c index d2abf2f2..4f2d84ff 100755 --- a/sbr/oauth.c +++ b/sbr/oauth.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #ifdef OAUTH_SUPPORT diff --git a/sbr/push.c b/sbr/push.c index 4576c8e9..a49b2755 100644 --- a/sbr/push.c +++ b/sbr/push.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include #include "h/done.h" #include "m_mktemp.h" diff --git a/sbr/readconfig.c b/sbr/readconfig.c index 0b823b93..ff57f851 100644 --- a/sbr/readconfig.c +++ b/sbr/readconfig.c @@ -7,6 +7,7 @@ */ #include +#include "error.h" #include struct procstr { diff --git a/sbr/refile.c b/sbr/refile.c index 3c4d4e25..fea72e21 100644 --- a/sbr/refile.c +++ b/sbr/refile.c @@ -7,6 +7,7 @@ */ #include +#include "error.h" #include diff --git a/sbr/remdir.c b/sbr/remdir.c index b15c9e15..c3589a3f 100644 --- a/sbr/remdir.c +++ b/sbr/remdir.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" int diff --git a/sbr/ruserpass.c b/sbr/ruserpass.c index b6fa6370..81fd13ea 100644 --- a/sbr/ruserpass.c +++ b/sbr/ruserpass.c @@ -22,6 +22,7 @@ */ #include +#include "error.h" #include #include diff --git a/sbr/seq_add.c b/sbr/seq_add.c index 2641ac4e..9688502e 100644 --- a/sbr/seq_add.c +++ b/sbr/seq_add.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" /* diff --git a/sbr/seq_del.c b/sbr/seq_del.c index 01335923..cb4560e6 100644 --- a/sbr/seq_del.c +++ b/sbr/seq_del.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" /* diff --git a/sbr/seq_nameok.c b/sbr/seq_nameok.c index 6d219c52..72b37fe1 100644 --- a/sbr/seq_nameok.c +++ b/sbr/seq_nameok.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" int diff --git a/sbr/seq_read.c b/sbr/seq_read.c index 9a4b9131..a4170111 100644 --- a/sbr/seq_read.c +++ b/sbr/seq_read.c @@ -7,6 +7,7 @@ */ #include +#include "error.h" #include #include "lock_file.h" diff --git a/sbr/seq_save.c b/sbr/seq_save.c index ac7b53e9..30dcbdd3 100644 --- a/sbr/seq_save.c +++ b/sbr/seq_save.c @@ -7,6 +7,7 @@ */ #include +#include "error.h" #include #include "lock_file.h" #include "m_mktemp.h" diff --git a/sbr/showfile.c b/sbr/showfile.c index 98b22df4..703132bd 100644 --- a/sbr/showfile.c +++ b/sbr/showfile.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" int diff --git a/sbr/utils.c b/sbr/utils.c index feb3e76b..514a7d7a 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include #include #include "m_mktemp.h" diff --git a/sbr/vfgets.c b/sbr/vfgets.c index d21c797a..37d1d90c 100644 --- a/sbr/vfgets.c +++ b/sbr/vfgets.c @@ -6,6 +6,7 @@ */ #include +#include "error.h" #include #define QUOTE '\\' diff --git a/uip/ali.c b/uip/ali.c index bcf8c79e..6a9078bd 100644 --- a/uip/ali.c +++ b/uip/ali.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/anno.c b/uip/anno.c index 21a5987d..bc5e14e7 100644 --- a/uip/anno.c +++ b/uip/anno.c @@ -42,6 +42,7 @@ */ #include +#include "sbr/error.h" #include #include "h/done.h" #include "sbr/m_maildir.h" diff --git a/uip/annosbr.c b/uip/annosbr.c index c5ca38bf..dd887fff 100644 --- a/uip/annosbr.c +++ b/uip/annosbr.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include "sbr/lock_file.h" diff --git a/uip/ap.c b/uip/ap.c index 140160c0..e320efc1 100644 --- a/uip/ap.c +++ b/uip/ap.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/burst.c b/uip/burst.c index 82822c6e..8ed571fb 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include "h/done.h" diff --git a/uip/comp.c b/uip/comp.c index fb1051e7..03f87a30 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include "h/done.h" diff --git a/uip/dist.c b/uip/dist.c index d2c48875..9bd8911c 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include "sbr/m_maildir.h" #include diff --git a/uip/distsbr.c b/uip/distsbr.c index 64b8ae19..baace547 100644 --- a/uip/distsbr.c +++ b/uip/distsbr.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include "sbr/m_mktemp.h" diff --git a/uip/dp.c b/uip/dp.c index 656440ff..e6cfa60c 100644 --- a/uip/dp.c +++ b/uip/dp.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include "h/done.h" #include #include diff --git a/uip/dropsbr.c b/uip/dropsbr.c index cc44c8d4..93263dee 100644 --- a/uip/dropsbr.c +++ b/uip/dropsbr.c @@ -7,6 +7,7 @@ #include #include +#include "sbr/error.h" #include #include #include diff --git a/uip/flist.c b/uip/flist.c index 2372ffc0..f1902a36 100644 --- a/uip/flist.c +++ b/uip/flist.c @@ -14,6 +14,7 @@ */ #include +#include "sbr/error.h" #include #include "h/done.h" #include "sbr/m_maildir.h" diff --git a/uip/fmtdump.c b/uip/fmtdump.c index 7293e134..808d97ba 100644 --- a/uip/fmtdump.c +++ b/uip/fmtdump.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/fmttest.c b/uip/fmttest.c index 568b5597..3e1d1a09 100644 --- a/uip/fmttest.c +++ b/uip/fmttest.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/folder.c b/uip/folder.c index 4b8c12fc..41eaa2d5 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -8,6 +8,7 @@ */ #include +#include "sbr/error.h" #include #include "h/done.h" #include diff --git a/uip/forw.c b/uip/forw.c index 9692ae40..84d10ade 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include "h/done.h" diff --git a/uip/forwsbr.c b/uip/forwsbr.c index 608e2555..4c997cb1 100644 --- a/uip/forwsbr.c +++ b/uip/forwsbr.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/imaptest.c b/uip/imaptest.c index e83c25e5..200af2b0 100644 --- a/uip/imaptest.c +++ b/uip/imaptest.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/inc.c b/uip/inc.c index 44d61935..a797088d 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -31,6 +31,7 @@ #endif #include +#include "sbr/error.h" #include #include #include diff --git a/uip/install-mh.c b/uip/install-mh.c index f059296a..31af64b8 100644 --- a/uip/install-mh.c +++ b/uip/install-mh.c @@ -6,6 +6,7 @@ */ #include /* mh internals */ +#include "sbr/error.h" #include "h/done.h" #include #include "sbr/m_maildir.h" diff --git a/uip/mark.c b/uip/mark.c index 3941e938..57d45868 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -8,6 +8,7 @@ */ #include +#include "sbr/error.h" #include "h/done.h" #include #include "sbr/m_maildir.h" diff --git a/uip/mhbuild.c b/uip/mhbuild.c index d9ad4423..4a042e93 100644 --- a/uip/mhbuild.c +++ b/uip/mhbuild.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/mhbuildsbr.c b/uip/mhbuildsbr.c index b563443a..21cd58bb 100644 --- a/uip/mhbuildsbr.c +++ b/uip/mhbuildsbr.c @@ -14,6 +14,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/mhcachesbr.c b/uip/mhcachesbr.c index 10f41d87..a7fdf90f 100644 --- a/uip/mhcachesbr.c +++ b/uip/mhcachesbr.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index 1067f01b..5d3a2ceb 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/mhical.c b/uip/mhical.c index 561935bf..70323eeb 100644 --- a/uip/mhical.c +++ b/uip/mhical.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/error.h" #include "h/icalendar.h" #include "sbr/icalparse.h" #include diff --git a/uip/mhlist.c b/uip/mhlist.c index dd9b6d00..cd3114af 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/mhlogin.c b/uip/mhlogin.c index 4a82c5c9..d41ec6d1 100644 --- a/uip/mhlogin.c +++ b/uip/mhlogin.c @@ -10,6 +10,7 @@ #include #include +#include "sbr/error.h" #include "h/done.h" #include #include diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index bafc7d92..2cc506bc 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/mhmisc.c b/uip/mhmisc.c index 559c3cda..c49a4f1d 100644 --- a/uip/mhmisc.c +++ b/uip/mhmisc.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/mhn.c b/uip/mhn.c index 9e506885..866cdf2c 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/mhoutsbr.c b/uip/mhoutsbr.c index 4a3166f3..00aa8df6 100644 --- a/uip/mhoutsbr.c +++ b/uip/mhoutsbr.c @@ -7,6 +7,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/mhparam.c b/uip/mhparam.c index 21804f4c..178520b7 100644 --- a/uip/mhparam.c +++ b/uip/mhparam.c @@ -9,6 +9,7 @@ */ #include +#include "sbr/error.h" #include #include "h/done.h" #include diff --git a/uip/mhparse.c b/uip/mhparse.c index 9c005bff..5091e97e 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/mhpath.c b/uip/mhpath.c index 3eefb112..884ae42d 100644 --- a/uip/mhpath.c +++ b/uip/mhpath.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include "h/done.h" #include #include "sbr/m_maildir.h" diff --git a/uip/mhshow.c b/uip/mhshow.c index e44dd115..85b158eb 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index 2a754a41..3ed6f8b9 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/mhstore.c b/uip/mhstore.c index 66ad91e9..e34bbee0 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/mhstoresbr.c b/uip/mhstoresbr.c index f73e68a9..e56ff915 100644 --- a/uip/mhstoresbr.c +++ b/uip/mhstoresbr.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/mkstemp.c b/uip/mkstemp.c index 906d21ea..226a948e 100644 --- a/uip/mkstemp.c +++ b/uip/mkstemp.c @@ -120,6 +120,7 @@ build_template(const char *directory, const char *prefix, const char *suffix) #if NMH #include +#include "sbr/error.h" #include "h/done.h" #include diff --git a/uip/msgchk.c b/uip/msgchk.c index bf95d907..65f0df91 100644 --- a/uip/msgchk.c +++ b/uip/msgchk.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include "h/done.h" diff --git a/uip/new.c b/uip/new.c index d6f524a2..b09e1aac 100644 --- a/uip/new.c +++ b/uip/new.c @@ -12,6 +12,7 @@ #include #include +#include "sbr/error.h" #include #include "h/done.h" #include diff --git a/uip/packf.c b/uip/packf.c index 8022e38a..38d4ac9d 100644 --- a/uip/packf.c +++ b/uip/packf.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include "h/done.h" diff --git a/uip/pick.c b/uip/pick.c index 967e1255..fde8ce60 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include "h/done.h" diff --git a/uip/picksbr.c b/uip/picksbr.c index 4d4d99a1..bd1efb98 100644 --- a/uip/picksbr.c +++ b/uip/picksbr.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/popsbr.c b/uip/popsbr.c index 1466a2e1..81f3db75 100644 --- a/uip/popsbr.c +++ b/uip/popsbr.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/post.c b/uip/post.c index c2af2948..e8b2587b 100644 --- a/uip/post.c +++ b/uip/post.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/prompter.c b/uip/prompter.c index 2c346607..3f049d14 100644 --- a/uip/prompter.c +++ b/uip/prompter.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include "h/done.h" diff --git a/uip/rcvdist.c b/uip/rcvdist.c index e9067403..a6742a1a 100644 --- a/uip/rcvdist.c +++ b/uip/rcvdist.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/rcvpack.c b/uip/rcvpack.c index 086d3535..6199e229 100644 --- a/uip/rcvpack.c +++ b/uip/rcvpack.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/rcvstore.c b/uip/rcvstore.c index e3277093..a01c57ff 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/rcvtty.c b/uip/rcvtty.c index 5f3dd430..55314073 100644 --- a/uip/rcvtty.c +++ b/uip/rcvtty.c @@ -11,6 +11,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/refile.c b/uip/refile.c index 2552ec66..d14d2778 100644 --- a/uip/refile.c +++ b/uip/refile.c @@ -7,6 +7,7 @@ */ #include +#include "sbr/error.h" #include "h/done.h" #include #include "sbr/m_maildir.h" diff --git a/uip/repl.c b/uip/repl.c index ffb54844..e4c14f7d 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include "h/done.h" #include diff --git a/uip/replsbr.c b/uip/replsbr.c index 2f26c373..76d027f8 100644 --- a/uip/replsbr.c +++ b/uip/replsbr.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include "h/done.h" diff --git a/uip/rmf.c b/uip/rmf.c index 38b07a14..7e8d7415 100644 --- a/uip/rmf.c +++ b/uip/rmf.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include "h/done.h" #include #include "sbr/m_maildir.h" diff --git a/uip/rmm.c b/uip/rmm.c index fc32a520..9f1d60e1 100644 --- a/uip/rmm.c +++ b/uip/rmm.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include "h/done.h" #include #include "sbr/m_maildir.h" diff --git a/uip/scan.c b/uip/scan.c index 60c5ebcc..7ad1f7b3 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/scansbr.c b/uip/scansbr.c index a4508c02..17e54cb7 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/send.c b/uip/send.c index dde2029b..1401ff1e 100644 --- a/uip/send.c +++ b/uip/send.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include "h/done.h" #include diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 974bf002..50ca8054 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/show.c b/uip/show.c index 3de3a836..c6429acc 100644 --- a/uip/show.c +++ b/uip/show.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include "h/done.h" #include diff --git a/uip/slocal.c b/uip/slocal.c index 8677b3f2..8694f44e 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -20,6 +20,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/sortm.c b/uip/sortm.c index 75c322a2..79543207 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include "h/done.h" #include diff --git a/uip/viamail.c b/uip/viamail.c index c2520542..3324d46b 100644 --- a/uip/viamail.c +++ b/uip/viamail.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/whatnowproc.c b/uip/whatnowproc.c index 8a4c372b..31f1e396 100644 --- a/uip/whatnowproc.c +++ b/uip/whatnowproc.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include "h/done.h" diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 2f00ba58..787e0152 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -38,6 +38,7 @@ */ #include +#include "sbr/error.h" #include #include #include diff --git a/uip/whom.c b/uip/whom.c index da34146f..d766da9d 100644 --- a/uip/whom.c +++ b/uip/whom.c @@ -6,6 +6,7 @@ */ #include +#include "sbr/error.h" #include "h/done.h" #include #include -- 2.48.1 From ff2b7b715934b346b6121a2a434db116d3203663 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 13:57:23 +0000 Subject: [PATCH 02/16] Use #include with `""' for including nmh's source. Compilers vary on how they handle #includes with `""' and `<>', but consistency on using `""' for nmh's files, and `<>' for the system's, means it's easy to tell which is which at a glance. --- config/config.c | 2 +- h/md5.h | 2 +- h/mf.h | 2 +- h/mh.h | 4 ++-- h/nmh.h | 4 ++-- h/rcvmail.h | 2 +- h/signals.h | 2 +- mts/smtp/smtp.c | 10 +++++----- sbr/addrsbr.c | 10 +++++----- sbr/ambigsw.c | 2 +- sbr/arglist.c | 4 ++-- sbr/atooi.c | 2 +- sbr/base64.c | 6 +++--- sbr/brkstring.c | 4 ++-- sbr/charstring.c | 4 ++-- sbr/check_charset.c | 2 +- sbr/client.c | 6 +++--- sbr/closefds.c | 2 +- sbr/concat.c | 4 ++-- sbr/context_del.c | 4 ++-- sbr/context_find.c | 2 +- sbr/context_foil.c | 4 ++-- sbr/context_read.c | 2 +- sbr/context_replace.c | 4 ++-- sbr/context_save.c | 4 ++-- sbr/copyip.c | 2 +- sbr/cpydata.c | 2 +- sbr/cpydgst.c | 2 +- sbr/crawl_folders.c | 6 +++--- sbr/credentials.c | 6 +++--- sbr/ctype-checked.c | 4 ++-- sbr/datetime.c | 2 +- sbr/discard.c | 2 +- sbr/done.c | 2 +- sbr/dtime.c | 8 ++++---- sbr/dtimep.l | 8 ++++---- sbr/encode_rfc2047.c | 8 ++++---- sbr/error.c | 2 +- sbr/escape_addresses.c | 4 ++-- sbr/ext_hook.c | 2 +- sbr/fdcompare.c | 2 +- sbr/fmt_addr.c | 8 ++++---- sbr/fmt_compile.c | 14 +++++++------- sbr/fmt_new.c | 4 ++-- sbr/fmt_rfc2047.c | 4 ++-- sbr/fmt_scan.c | 12 ++++++------ sbr/folder_addmsg.c | 2 +- sbr/folder_delmsgs.c | 4 ++-- sbr/folder_free.c | 4 ++-- sbr/folder_pack.c | 2 +- sbr/folder_read.c | 4 ++-- sbr/folder_realloc.c | 4 ++-- sbr/getarguments.c | 4 ++-- sbr/getcpy.c | 4 ++-- sbr/geteditor.c | 4 ++-- sbr/getfolder.c | 2 +- sbr/getline.c | 2 +- sbr/getpass.c | 2 +- sbr/lock_file.c | 8 ++++---- sbr/m_atoi.c | 2 +- sbr/m_backup.c | 2 +- sbr/m_convert.c | 4 ++-- sbr/m_draft.c | 4 ++-- sbr/m_getfld.c | 6 +++--- sbr/m_gmprot.c | 2 +- sbr/m_maildir.c | 4 ++-- sbr/m_mktemp.c | 6 +++--- sbr/m_name.c | 4 ++-- sbr/m_popen.c | 4 ++-- sbr/m_rand.c | 2 +- sbr/makedir.c | 2 +- sbr/md5.c | 2 +- sbr/message_id.c | 2 +- sbr/mf.c | 6 +++--- sbr/mime_type.c | 6 +++--- sbr/mts.c | 6 +++--- sbr/netsec.c | 8 ++++---- sbr/oauth.c | 8 ++++---- sbr/oauth_prof.c | 6 +++--- sbr/path.c | 4 ++-- sbr/pidstatus.c | 2 +- sbr/pidwait.c | 4 ++-- sbr/print_help.c | 2 +- sbr/print_sw.c | 2 +- sbr/print_version.c | 2 +- sbr/push.c | 4 ++-- sbr/r1bindex.c | 2 +- sbr/read_line.c | 4 ++-- sbr/read_switch.c | 2 +- sbr/read_switch_multiword.c | 4 ++-- sbr/read_switch_multiword_via_readline.c | 2 +- sbr/read_yes_or_no_if_tty.c | 2 +- sbr/readconfig.c | 4 ++-- sbr/refile.c | 4 ++-- sbr/remdir.c | 2 +- sbr/ruserpass.c | 4 ++-- sbr/seq_add.c | 2 +- sbr/seq_bits.c | 2 +- sbr/seq_del.c | 2 +- sbr/seq_getnum.c | 2 +- sbr/seq_list.c | 4 ++-- sbr/seq_nameok.c | 2 +- sbr/seq_print.c | 2 +- sbr/seq_read.c | 4 ++-- sbr/seq_save.c | 4 ++-- sbr/seq_setcur.c | 2 +- sbr/seq_setprev.c | 4 ++-- sbr/seq_setunseen.c | 4 ++-- sbr/showfile.c | 2 +- sbr/signals.c | 4 ++-- sbr/smatch.c | 2 +- sbr/snprintb.c | 2 +- sbr/ssequal.c | 2 +- sbr/strindex.c | 2 +- sbr/terminal.c | 4 ++-- sbr/trimcpy.c | 4 ++-- sbr/unquote.c | 2 +- sbr/uprf.c | 2 +- sbr/utils.c | 6 +++--- sbr/vector.c | 4 ++-- sbr/vfgets.c | 4 ++-- uip/ali.c | 10 +++++----- uip/aliasbr.c | 8 ++++---- uip/anno.c | 4 ++-- uip/annosbr.c | 6 +++--- uip/ap.c | 10 +++++----- uip/burst.c | 6 +++--- uip/comp.c | 6 +++--- uip/dist.c | 4 ++-- uip/distsbr.c | 4 ++-- uip/dp.c | 8 ++++---- uip/dropsbr.c | 12 ++++++------ uip/flist.c | 4 ++-- uip/fmtdump.c | 10 +++++----- uip/fmttest.c | 12 ++++++------ uip/folder.c | 6 +++--- uip/forw.c | 6 +++--- uip/forwsbr.c | 8 ++++---- uip/imaptest.c | 6 +++--- uip/inc.c | 18 +++++++++--------- uip/install-mh.c | 4 ++-- uip/mark.c | 4 ++-- uip/mhbuild.c | 16 ++++++++-------- uip/mhbuildsbr.c | 16 ++++++++-------- uip/mhcachesbr.c | 16 ++++++++-------- uip/mhfixmsg.c | 12 ++++++------ uip/mhfree.c | 8 ++++---- uip/mhical.c | 2 +- uip/mhl.c | 4 ++-- uip/mhlist.c | 18 +++++++++--------- uip/mhlistsbr.c | 12 ++++++------ uip/mhlogin.c | 6 +++--- uip/mhlsbr.c | 12 ++++++------ uip/mhmisc.c | 8 ++++---- uip/mhn.c | 20 ++++++++++---------- uip/mhoutsbr.c | 14 +++++++------- uip/mhparam.c | 6 +++--- uip/mhparse.c | 16 ++++++++-------- uip/mhpath.c | 4 ++-- uip/mhshow.c | 20 ++++++++++---------- uip/mhshowsbr.c | 18 +++++++++--------- uip/mhstore.c | 18 +++++++++--------- uip/mhstoresbr.c | 16 ++++++++-------- uip/mkstemp.c | 6 +++--- uip/msgchk.c | 10 +++++----- uip/new.c | 6 +++--- uip/packf.c | 6 +++--- uip/pick.c | 8 ++++---- uip/picksbr.c | 8 ++++---- uip/popsbr.c | 12 ++++++------ uip/post.c | 20 ++++++++++---------- uip/prompter.c | 6 +++--- uip/rcvdist.c | 12 ++++++------ uip/rcvpack.c | 12 ++++++------ uip/rcvstore.c | 8 ++++---- uip/rcvtty.c | 16 ++++++++-------- uip/refile.c | 4 ++-- uip/repl.c | 6 +++--- uip/replsbr.c | 8 ++++---- uip/rmf.c | 4 ++-- uip/rmm.c | 4 ++-- uip/scan.c | 12 ++++++------ uip/scansbr.c | 12 ++++++------ uip/send.c | 6 +++--- uip/sendsbr.c | 18 +++++++++--------- uip/show.c | 6 +++--- uip/slocal.c | 14 +++++++------- uip/sortm.c | 6 +++--- uip/viamail.c | 14 +++++++------- uip/whatnow.c | 4 ++-- uip/whatnowproc.c | 2 +- uip/whatnowsbr.c | 8 ++++---- uip/whom.c | 6 +++--- 193 files changed, 568 insertions(+), 568 deletions(-) diff --git a/config/config.c b/config/config.c index 2511472e..4d380557 100644 --- a/config/config.c +++ b/config/config.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/m_maildir.h" #include diff --git a/h/md5.h b/h/md5.h index 568874a4..cc053ef6 100644 --- a/h/md5.h +++ b/h/md5.h @@ -6,7 +6,7 @@ * RSAREF types and constants */ -#include +#include "h/nmh.h" #include /* UINT4 defines a four byte word */ diff --git a/h/mf.h b/h/mf.h index 6b17a4c0..8a5536d7 100644 --- a/h/mf.h +++ b/h/mf.h @@ -1,7 +1,7 @@ /* mf.h -- include file for mailbox filters */ -#include +#include "h/nmh.h" #ifndef NOTOK # define NOTOK (-1) diff --git a/h/mh.h b/h/mh.h index ebd124d1..83223a61 100644 --- a/h/mh.h +++ b/h/mh.h @@ -1,7 +1,7 @@ /* mh.h -- main header file for all of nmh */ -#include +#include "h/nmh.h" /* It's undefined behaviour in C99 to convert from a function pointer to * a data-object pointer, e.g. void pointer. gcc's -pedantic warns of @@ -574,4 +574,4 @@ extern char *version_str; extern char *whatnowproc; extern char *whomproc; -#include +#include "h/prototypes.h" diff --git a/h/nmh.h b/h/nmh.h index c2f8dfca..e3dd3c6c 100644 --- a/h/nmh.h +++ b/h/nmh.h @@ -2,7 +2,7 @@ */ #ifdef HAVE_CONFIG_H -#include +#include "config.h" #endif #include @@ -10,7 +10,7 @@ #include #ifndef NDEBUG /* See etc/gen-ctype-checked.c. */ -# include +#include "sbr/ctype-checked.h" #endif #include diff --git a/h/rcvmail.h b/h/rcvmail.h index b294b09d..1e133974 100644 --- a/h/rcvmail.h +++ b/h/rcvmail.h @@ -5,7 +5,7 @@ #include #include #include -#include +#include "mts/smtp/smtp.h" #define RCV_MOK 0 diff --git a/h/signals.h b/h/signals.h index babc4bf5..192c00f6 100644 --- a/h/signals.h +++ b/h/signals.h @@ -2,7 +2,7 @@ */ #ifdef HAVE_CONFIG_H -# include +# include "config.h" #endif #include diff --git a/mts/smtp/smtp.c b/mts/smtp/smtp.c index bdac1e9d..0887e1cd 100644 --- a/mts/smtp/smtp.c +++ b/mts/smtp/smtp.c @@ -5,13 +5,13 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include "smtp.h" -#include -#include -#include -#include +#include "h/mts.h" +#include "h/signals.h" +#include "h/utils.h" +#include "h/netsec.h" #include #include "sbr/base64.h" diff --git a/sbr/addrsbr.c b/sbr/addrsbr.c index 5b93f705..4cd68278 100644 --- a/sbr/addrsbr.c +++ b/sbr/addrsbr.c @@ -5,12 +5,12 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include -#include -#include -#include +#include "h/addrsbr.h" +#include "h/mf.h" +#include "h/mts.h" +#include "h/utils.h" /* High level parsing of addresses: diff --git a/sbr/ambigsw.c b/sbr/ambigsw.c index b4b2d2c7..d951af45 100644 --- a/sbr/ambigsw.c +++ b/sbr/ambigsw.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" diff --git a/sbr/arglist.c b/sbr/arglist.c index ed8dfbc6..75c48825 100644 --- a/sbr/arglist.c +++ b/sbr/arglist.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/utils.h" /* * Split up a command into an appropriate array to pass to execvp() diff --git a/sbr/atooi.c b/sbr/atooi.c index 128f917c..b8b064a9 100644 --- a/sbr/atooi.c +++ b/sbr/atooi.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" int diff --git a/sbr/base64.c b/sbr/base64.c index 5e17a1f9..ef3aa32a 100644 --- a/sbr/base64.c +++ b/sbr/base64.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include -#include +#include "h/mime.h" +#include "h/md5.h" #include static const char nib2b64[0x40+1] = diff --git a/sbr/brkstring.c b/sbr/brkstring.c index 0f7c17fc..599ac31a 100644 --- a/sbr/brkstring.c +++ b/sbr/brkstring.c @@ -6,8 +6,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" /* allocate this number of pointers at a time */ #define NUMBROKEN 256 diff --git a/sbr/charstring.c b/sbr/charstring.c index d6243717..8f8b5ea5 100644 --- a/sbr/charstring.c +++ b/sbr/charstring.c @@ -6,8 +6,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" #ifdef MULTIBYTE_SUPPORT # define NMH_MAX_CHARWIDTH MB_CUR_MAX diff --git a/sbr/check_charset.c b/sbr/check_charset.c index be7b92ee..fcd8cc1c 100644 --- a/sbr/check_charset.c +++ b/sbr/check_charset.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include #include diff --git a/sbr/client.c b/sbr/client.c index a64461bc..a90d4e01 100644 --- a/sbr/client.c +++ b/sbr/client.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include -#include -#include +#include "h/mh.h" +#include "h/mts.h" +#include "h/utils.h" #include #include #include diff --git a/sbr/closefds.c b/sbr/closefds.c index 6215d6f8..cb59d782 100644 --- a/sbr/closefds.c +++ b/sbr/closefds.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" void diff --git a/sbr/concat.c b/sbr/concat.c index b97c6e44..262b93f5 100644 --- a/sbr/concat.c +++ b/sbr/concat.c @@ -6,8 +6,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" /* concat returns a non-NULL malloc'd pointer to the catenation of the diff --git a/sbr/context_del.c b/sbr/context_del.c index 04d92b31..bd7ae70d 100644 --- a/sbr/context_del.c +++ b/sbr/context_del.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/utils.h" /* * Delete a key/value pair from the context/profile list. diff --git a/sbr/context_find.c b/sbr/context_find.c index e312bceb..e725adaa 100644 --- a/sbr/context_find.c +++ b/sbr/context_find.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" char * diff --git a/sbr/context_foil.c b/sbr/context_foil.c index c502dd23..f8ab9519 100644 --- a/sbr/context_foil.c +++ b/sbr/context_foil.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/utils.h" /* * Foil search of users .mh_profile diff --git a/sbr/context_read.c b/sbr/context_read.c index 1049123d..072e3df1 100644 --- a/sbr/context_read.c +++ b/sbr/context_read.c @@ -21,7 +21,7 @@ * environment variable or by the profile. */ -#include /* mh internals */ +#include "h/mh.h" /* mh internals */ #include "error.h" #include "lock_file.h" #include "m_maildir.h" diff --git a/sbr/context_replace.c b/sbr/context_replace.c index 9dba8d87..d5c25531 100644 --- a/sbr/context_replace.c +++ b/sbr/context_replace.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/utils.h" void diff --git a/sbr/context_save.c b/sbr/context_save.c index 393ebbf5..01afbd80 100644 --- a/sbr/context_save.c +++ b/sbr/context_save.c @@ -11,9 +11,9 @@ * because there no longer are setuid/setgid programs in nmh. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/signals.h" #include "lock_file.h" void diff --git a/sbr/copyip.c b/sbr/copyip.c index a9a05613..c6ba24d1 100644 --- a/sbr/copyip.c +++ b/sbr/copyip.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" char ** diff --git a/sbr/cpydata.c b/sbr/cpydata.c index cc7f6e57..0760bb42 100644 --- a/sbr/cpydata.c +++ b/sbr/cpydata.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" void diff --git a/sbr/cpydgst.c b/sbr/cpydgst.c index 73617eb9..60dc78a8 100644 --- a/sbr/cpydgst.c +++ b/sbr/cpydgst.c @@ -6,7 +6,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" /* diff --git a/sbr/crawl_folders.c b/sbr/crawl_folders.c index b7901b23..9f1327ce 100644 --- a/sbr/crawl_folders.c +++ b/sbr/crawl_folders.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include -#include +#include "h/crawl_folders.h" +#include "h/utils.h" struct crawl_context { int max; /* how many folders we currently can hold in diff --git a/sbr/credentials.c b/sbr/credentials.c index 8d2ed617..55e7a6b2 100644 --- a/sbr/credentials.c +++ b/sbr/credentials.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include -#include +#include "h/utils.h" +#include "h/mts.h" #include "m_maildir.h" struct nmh_creds { diff --git a/sbr/ctype-checked.c b/sbr/ctype-checked.c index 4f2a15d3..3c576642 100644 --- a/sbr/ctype-checked.c +++ b/sbr/ctype-checked.c @@ -6,7 +6,7 @@ * distribution for complete copyright information. */ -#include +#include "config.h" #ifndef NDEBUG @@ -15,7 +15,7 @@ #error "Please report this to nmh's authors." #endif -#include +#include "sbr/ctype-checked.h" /* ctype_identity returns its index less one allowing [EOF, 255] to be * used as indexes to ctype_identity + 1. */ diff --git a/sbr/datetime.c b/sbr/datetime.c index f79c9424..e4d2d148 100644 --- a/sbr/datetime.c +++ b/sbr/datetime.c @@ -8,7 +8,7 @@ #include "h/mh.h" #include "error.h" #include "h/icalendar.h" -#include +#include "h/fmt_scan.h" #include "h/tws.h" #include "h/utils.h" #include "unquote.h" diff --git a/sbr/discard.c b/sbr/discard.c index a77240b7..6591bc04 100644 --- a/sbr/discard.c +++ b/sbr/discard.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include diff --git a/sbr/done.c b/sbr/done.c index 58e8c56d..8b197b25 100644 --- a/sbr/done.c +++ b/sbr/done.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" static void (*altexit)(int) NORETURN = exit; diff --git a/sbr/dtime.c b/sbr/dtime.c index 26b451da..c2a5bf8d 100644 --- a/sbr/dtime.c +++ b/sbr/dtime.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include /* for snprintf() */ -#include -#include -#include +#include "h/mh.h" /* for snprintf() */ +#include "h/nmh.h" +#include "h/utils.h" +#include "h/tws.h" #include #if !defined(HAVE_STRUCT_TM_TM_GMTOFF) diff --git a/sbr/dtimep.l b/sbr/dtimep.l index 4db108dc..68f0ea7b 100644 --- a/sbr/dtimep.l +++ b/sbr/dtimep.l @@ -10,10 +10,10 @@ %n2500 %a5000 %{ -#include -#include -#include -#include +#include "h/nmh.h" +#include "h/mh.h" +#include "h/utils.h" +#include "h/tws.h" /* Since we're looking at a string at a time, don't worry about * wrapping to the next buffer. diff --git a/sbr/encode_rfc2047.c b/sbr/encode_rfc2047.c index 709082fb..f4689723 100644 --- a/sbr/encode_rfc2047.c +++ b/sbr/encode_rfc2047.c @@ -5,11 +5,11 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include -#include -#include +#include "h/mhparse.h" +#include "h/addrsbr.h" +#include "h/utils.h" #include "base64.h" #include "unquote.h" diff --git a/sbr/error.c b/sbr/error.c index fd0d7833..fc5c6afa 100644 --- a/sbr/error.c +++ b/sbr/error.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" #include diff --git a/sbr/escape_addresses.c b/sbr/escape_addresses.c index ac314a61..6463ec61 100644 --- a/sbr/escape_addresses.c +++ b/sbr/escape_addresses.c @@ -5,8 +5,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" static void escape_component (char *name, size_t namesize, char *chars); diff --git a/sbr/ext_hook.c b/sbr/ext_hook.c index 1ee9c170..8a4a91b3 100644 --- a/sbr/ext_hook.c +++ b/sbr/ext_hook.c @@ -6,7 +6,7 @@ * Only produce the error message once. */ -#include +#include "h/mh.h" #include "error.h" int diff --git a/sbr/fdcompare.c b/sbr/fdcompare.c index 925a026a..b1767439 100644 --- a/sbr/fdcompare.c +++ b/sbr/fdcompare.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" int diff --git a/sbr/fmt_addr.c b/sbr/fmt_addr.c index 37b286a2..fc9c4db0 100644 --- a/sbr/fmt_addr.c +++ b/sbr/fmt_addr.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include -#include -#include -#include +#include "h/mh.h" +#include "h/addrsbr.h" +#include "h/fmt_scan.h" +#include "h/utils.h" static char *buf; /* our current working buffer */ static char *bufend; /* end of working buffer */ diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index 421876c6..27af937e 100644 --- a/sbr/fmt_compile.c +++ b/sbr/fmt_compile.c @@ -39,14 +39,14 @@ * */ -#include +#include "h/mh.h" #include "error.h" -#include -#include -#include -#include -#include -#include +#include "h/addrsbr.h" +#include "h/tws.h" +#include "h/fmt_scan.h" +#include "h/fmt_compile.h" +#include "h/mts.h" +#include "h/utils.h" #include "terminal.h" #ifdef HAVE_SYS_TIME_H diff --git a/sbr/fmt_new.c b/sbr/fmt_new.c index cd7d26b6..97e2a7ad 100644 --- a/sbr/fmt_new.c +++ b/sbr/fmt_new.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/utils.h" #define QUOTE '\\' diff --git a/sbr/fmt_rfc2047.c b/sbr/fmt_rfc2047.c index d98b5008..45374765 100644 --- a/sbr/fmt_rfc2047.c +++ b/sbr/fmt_rfc2047.c @@ -5,8 +5,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" #ifdef HAVE_ICONV # include #endif diff --git a/sbr/fmt_scan.c b/sbr/fmt_scan.c index 0a948179..cd148ed7 100644 --- a/sbr/fmt_scan.c +++ b/sbr/fmt_scan.c @@ -8,13 +8,13 @@ * fmt_compile (found in fmt_compile.c). */ -#include +#include "h/mh.h" #include "error.h" -#include -#include -#include -#include -#include +#include "h/addrsbr.h" +#include "h/fmt_scan.h" +#include "h/tws.h" +#include "h/fmt_compile.h" +#include "h/utils.h" #include "unquote.h" #ifdef HAVE_SYS_TIME_H diff --git a/sbr/folder_addmsg.c b/sbr/folder_addmsg.c index ce25767c..4ea7cd6d 100644 --- a/sbr/folder_addmsg.c +++ b/sbr/folder_addmsg.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" #include diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index ac5e9367..2ef88590 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/utils.h" #include "m_mktemp.h" /* diff --git a/sbr/folder_free.c b/sbr/folder_free.c index 7c6267f6..66c07d0e 100644 --- a/sbr/folder_free.c +++ b/sbr/folder_free.c @@ -5,8 +5,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" #include "lock_file.h" diff --git a/sbr/folder_pack.c b/sbr/folder_pack.c index 9f00398a..ee2a2f90 100644 --- a/sbr/folder_pack.c +++ b/sbr/folder_pack.c @@ -6,7 +6,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" /* diff --git a/sbr/folder_read.c b/sbr/folder_read.c index 7171cb13..589fac0f 100644 --- a/sbr/folder_read.c +++ b/sbr/folder_read.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/utils.h" #include "m_maildir.h" /* We allocate the `mi' array 1024 elements at a time */ diff --git a/sbr/folder_realloc.c b/sbr/folder_realloc.c index 827d3b17..69461eda 100644 --- a/sbr/folder_realloc.c +++ b/sbr/folder_realloc.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/utils.h" /* * Reallocate some of the space in the folder diff --git a/sbr/getarguments.c b/sbr/getarguments.c index 28cbe465..829c9b30 100644 --- a/sbr/getarguments.c +++ b/sbr/getarguments.c @@ -5,8 +5,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" char ** getarguments (char *invo_name, int argc, char **argv, int check_context) diff --git a/sbr/getcpy.c b/sbr/getcpy.c index 003971b2..7182c7c7 100644 --- a/sbr/getcpy.c +++ b/sbr/getcpy.c @@ -9,8 +9,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" /* Return malloc'd copy of str, or of "" if NULL, exit on failure. */ char * diff --git a/sbr/geteditor.c b/sbr/geteditor.c index 2fbe1f56..e946e0a8 100644 --- a/sbr/geteditor.c +++ b/sbr/geteditor.c @@ -5,8 +5,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" static char *default_editor = NULL; diff --git a/sbr/getfolder.c b/sbr/getfolder.c index d1a298bf..d27854ed 100644 --- a/sbr/getfolder.c +++ b/sbr/getfolder.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" /* Does not return NULL. */ diff --git a/sbr/getline.c b/sbr/getline.c index d4da460d..9fae30fe 100644 --- a/sbr/getline.c +++ b/sbr/getline.c @@ -10,7 +10,7 @@ #include #include -#include +#include "h/mh.h" /* Largest possible size of buffer that allows SSIZE_MAX to be returned * to indicate SSIZE_MAX - 1 characters read before the '\n'. The diff --git a/sbr/getpass.c b/sbr/getpass.c index 12805f2f..99c03e00 100644 --- a/sbr/getpass.c +++ b/sbr/getpass.c @@ -32,7 +32,7 @@ * SUCH DAMAGE. */ -#include +#include "h/mh.h" #include /* We don't use MAX_PASS here because the maximum password length on a remote diff --git a/sbr/lock_file.c b/sbr/lock_file.c index 00f18331..edb0917e 100644 --- a/sbr/lock_file.c +++ b/sbr/lock_file.c @@ -13,11 +13,11 @@ * Ruud de Rooij Sun, 28 Mar 1999 15:34:03 +0200 */ -#include +#include "h/mh.h" #include "error.h" -#include -#include -#include +#include "h/signals.h" +#include "h/utils.h" +#include "h/mts.h" #include "lock_file.h" #include "m_mktemp.h" diff --git a/sbr/m_atoi.c b/sbr/m_atoi.c index 87a78283..45855caf 100644 --- a/sbr/m_atoi.c +++ b/sbr/m_atoi.c @@ -7,7 +7,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" int diff --git a/sbr/m_backup.c b/sbr/m_backup.c index 5a616f26..73971101 100644 --- a/sbr/m_backup.c +++ b/sbr/m_backup.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "m_mktemp.h" diff --git a/sbr/m_convert.c b/sbr/m_convert.c index 3f67b2cc..64346fb9 100644 --- a/sbr/m_convert.c +++ b/sbr/m_convert.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/utils.h" /* * error codes for sequence diff --git a/sbr/m_draft.c b/sbr/m_draft.c index 7f24dd81..7fdd1c16 100644 --- a/sbr/m_draft.c +++ b/sbr/m_draft.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/utils.h" #include "m_maildir.h" #include "h/done.h" diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c index 60b263f3..5647dd15 100644 --- a/sbr/m_getfld.c +++ b/sbr/m_getfld.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include -#include +#include "h/mts.h" +#include "h/utils.h" #include /* diff --git a/sbr/m_gmprot.c b/sbr/m_gmprot.c index 534ff02b..249a28ab 100644 --- a/sbr/m_gmprot.c +++ b/sbr/m_gmprot.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" int diff --git a/sbr/m_maildir.c b/sbr/m_maildir.c index 103d02c6..8be011d5 100644 --- a/sbr/m_maildir.c +++ b/sbr/m_maildir.c @@ -5,8 +5,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" #include "m_maildir.h" #define CWD "./" diff --git a/sbr/m_mktemp.c b/sbr/m_mktemp.c index 726ce823..61a32f68 100644 --- a/sbr/m_mktemp.c +++ b/sbr/m_mktemp.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include -#include -#include +#include "h/mh.h" +#include "h/utils.h" +#include "h/signals.h" #include "m_maildir.h" #include "m_mktemp.h" diff --git a/sbr/m_name.c b/sbr/m_name.c index 9bc8c0b5..835c1ba2 100644 --- a/sbr/m_name.c +++ b/sbr/m_name.c @@ -6,8 +6,8 @@ */ #include -#include -#include +#include "h/mh.h" +#include "h/utils.h" #define STR(s) #s #define SIZE(n) (sizeof STR(n)) /* Includes NUL. */ diff --git a/sbr/m_popen.c b/sbr/m_popen.c index 79e0c9b1..db51f4b7 100644 --- a/sbr/m_popen.c +++ b/sbr/m_popen.c @@ -6,9 +6,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/signals.h" #include "m_popen.h" static int m_pid = NOTOK; /* Process we're waiting for */ diff --git a/sbr/m_rand.c b/sbr/m_rand.c index bac97507..24e5998d 100644 --- a/sbr/m_rand.c +++ b/sbr/m_rand.c @@ -11,7 +11,7 @@ #include /* for getpid() */ #include /* for time() */ -#include +#include "config.h" #include "m_rand.h" #if !HAVE_ARC4RANDOM diff --git a/sbr/makedir.c b/sbr/makedir.c index e7c3efa9..10c46b1f 100644 --- a/sbr/makedir.c +++ b/sbr/makedir.c @@ -9,7 +9,7 @@ * Modified to try recursive create. */ -#include +#include "h/mh.h" #include "error.h" #include "makedir.h" #include diff --git a/sbr/md5.c b/sbr/md5.c index 34bd1424..8dbc0b71 100644 --- a/sbr/md5.c +++ b/sbr/md5.c @@ -29,7 +29,7 @@ * documentation and/or software. */ -#include +#include "h/md5.h" /* Constants for MD5Transform routine. */ #define S11 7 diff --git a/sbr/message_id.c b/sbr/message_id.c index 0075ca80..7130cd47 100644 --- a/sbr/message_id.c +++ b/sbr/message_id.c @@ -6,7 +6,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "h/mts.h" #include "m_rand.h" #include "message_id.h" diff --git a/sbr/mf.c b/sbr/mf.c index 6c4afec5..4f59e616 100644 --- a/sbr/mf.c +++ b/sbr/mf.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include -#include -#include +#include "h/mh.h" +#include "h/mf.h" +#include "h/utils.h" /* * static prototypes diff --git a/sbr/mime_type.c b/sbr/mime_type.c index 6b4f9725..36930216 100644 --- a/sbr/mime_type.c +++ b/sbr/mime_type.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include -#include +#include "h/utils.h" +#include "h/tws.h" #include "mime_type.h" #ifdef MIMETYPEPROC diff --git a/sbr/mts.c b/sbr/mts.c index f9923646..a167b09e 100644 --- a/sbr/mts.c +++ b/sbr/mts.c @@ -5,13 +5,13 @@ * complete copyright information. */ -#include /* for snprintf() */ +#include "h/mh.h" /* for snprintf() */ #include "error.h" -#include +#include "h/utils.h" #define nmhetcdir(file) NMHETCDIR#file -#include +#include "h/mts.h" #include #include #include diff --git a/sbr/netsec.c b/sbr/netsec.c index 0fb41262..0109288c 100644 --- a/sbr/netsec.c +++ b/sbr/netsec.c @@ -6,10 +6,10 @@ * complete copyright information. */ -#include -#include -#include -#include +#include "h/mh.h" +#include "h/utils.h" +#include "h/netsec.h" +#include "h/oauth.h" #include #include #include "base64.h" diff --git a/sbr/oauth.c b/sbr/oauth.c index 4f2d84ff..718a6884 100755 --- a/sbr/oauth.c +++ b/sbr/oauth.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" #ifdef OAUTH_SUPPORT @@ -21,10 +21,10 @@ #include #include -#include +#include "thirdparty/jsmn/jsmn.h" -#include -#include +#include "h/oauth.h" +#include "h/utils.h" #include "lock_file.h" #define JSON_TYPE "application/json" diff --git a/sbr/oauth_prof.c b/sbr/oauth_prof.c index 51a5f7ac..8b375a70 100644 --- a/sbr/oauth_prof.c +++ b/sbr/oauth_prof.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #ifdef OAUTH_SUPPORT @@ -18,8 +18,8 @@ #include #include -#include -#include +#include "h/oauth.h" +#include "h/utils.h" #include "m_maildir.h" static const struct mh_oauth_service_info SERVICES[] = { diff --git a/sbr/path.c b/sbr/path.c index 9f70bc16..278a101f 100644 --- a/sbr/path.c +++ b/sbr/path.c @@ -5,8 +5,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" #include "m_maildir.h" #define CWD "./" diff --git a/sbr/pidstatus.c b/sbr/pidstatus.c index 1800ccd9..ce596a51 100644 --- a/sbr/pidstatus.c +++ b/sbr/pidstatus.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" /* * Return 0 if the command exited with an exit code of zero, a nonzero code diff --git a/sbr/pidwait.c b/sbr/pidwait.c index bd6602cb..8ccc6891 100644 --- a/sbr/pidwait.c +++ b/sbr/pidwait.c @@ -5,8 +5,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/signals.h" int pidwait (pid_t id, int sigsok) diff --git a/sbr/print_help.c b/sbr/print_help.c index 66d27a02..81b1ab4b 100644 --- a/sbr/print_help.c +++ b/sbr/print_help.c @@ -6,7 +6,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" void diff --git a/sbr/print_sw.c b/sbr/print_sw.c index cf5cda74..42df6d22 100644 --- a/sbr/print_sw.c +++ b/sbr/print_sw.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" void diff --git a/sbr/print_version.c b/sbr/print_version.c index b88cef9f..0b6d9fc4 100644 --- a/sbr/print_version.c +++ b/sbr/print_version.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" void diff --git a/sbr/push.c b/sbr/push.c index a49b2755..d014f188 100644 --- a/sbr/push.c +++ b/sbr/push.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/signals.h" #include "h/done.h" #include "m_mktemp.h" diff --git a/sbr/r1bindex.c b/sbr/r1bindex.c index 0fd8d51d..70d650b9 100644 --- a/sbr/r1bindex.c +++ b/sbr/r1bindex.c @@ -8,7 +8,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" /* Does not return NULL. */ char * diff --git a/sbr/read_line.c b/sbr/read_line.c index a6367de4..5f33cac6 100644 --- a/sbr/read_line.c +++ b/sbr/read_line.c @@ -5,8 +5,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" #include "read_line.h" /* diff --git a/sbr/read_switch.c b/sbr/read_switch.c index 8ca0be33..6abce534 100644 --- a/sbr/read_switch.c +++ b/sbr/read_switch.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" int diff --git a/sbr/read_switch_multiword.c b/sbr/read_switch_multiword.c index a5aedae3..af44432c 100644 --- a/sbr/read_switch_multiword.c +++ b/sbr/read_switch_multiword.c @@ -5,8 +5,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/signals.h" #include static char ansbuf[BUFSIZ]; diff --git a/sbr/read_switch_multiword_via_readline.c b/sbr/read_switch_multiword_via_readline.c index 0c099c56..a2c36218 100644 --- a/sbr/read_switch_multiword_via_readline.c +++ b/sbr/read_switch_multiword_via_readline.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #ifdef READLINE_SUPPORT #include diff --git a/sbr/read_yes_or_no_if_tty.c b/sbr/read_yes_or_no_if_tty.c index 93484e4e..8d7dac6e 100644 --- a/sbr/read_yes_or_no_if_tty.c +++ b/sbr/read_yes_or_no_if_tty.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" int diff --git a/sbr/readconfig.c b/sbr/readconfig.c index ff57f851..5a850b04 100644 --- a/sbr/readconfig.c +++ b/sbr/readconfig.c @@ -6,9 +6,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/utils.h" struct procstr { char *procname; diff --git a/sbr/refile.c b/sbr/refile.c index fea72e21..4e375917 100644 --- a/sbr/refile.c +++ b/sbr/refile.c @@ -6,9 +6,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/utils.h" int diff --git a/sbr/remdir.c b/sbr/remdir.c index c3589a3f..18ea9244 100644 --- a/sbr/remdir.c +++ b/sbr/remdir.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" diff --git a/sbr/ruserpass.c b/sbr/ruserpass.c index 81fd13ea..3c0b7179 100644 --- a/sbr/ruserpass.c +++ b/sbr/ruserpass.c @@ -21,9 +21,9 @@ * distribution for complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/utils.h" #include static FILE *cfile; diff --git a/sbr/seq_add.c b/sbr/seq_add.c index 9688502e..8b51e31e 100644 --- a/sbr/seq_add.c +++ b/sbr/seq_add.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" diff --git a/sbr/seq_bits.c b/sbr/seq_bits.c index a31b0995..7fd1b0a5 100644 --- a/sbr/seq_bits.c +++ b/sbr/seq_bits.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" char * diff --git a/sbr/seq_del.c b/sbr/seq_del.c index cb4560e6..b4f5a527 100644 --- a/sbr/seq_del.c +++ b/sbr/seq_del.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" diff --git a/sbr/seq_getnum.c b/sbr/seq_getnum.c index f2f0c06e..8a9f8709 100644 --- a/sbr/seq_getnum.c +++ b/sbr/seq_getnum.c @@ -6,7 +6,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" int diff --git a/sbr/seq_list.c b/sbr/seq_list.c index b7ed5707..20617a54 100644 --- a/sbr/seq_list.c +++ b/sbr/seq_list.c @@ -6,8 +6,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" /* allocate this much buffer space at a time */ #define MAXBUFFER 1024 diff --git a/sbr/seq_nameok.c b/sbr/seq_nameok.c index 72b37fe1..f537a71f 100644 --- a/sbr/seq_nameok.c +++ b/sbr/seq_nameok.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" diff --git a/sbr/seq_print.c b/sbr/seq_print.c index fafad6d8..a373d925 100644 --- a/sbr/seq_print.c +++ b/sbr/seq_print.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" /* * Print all the sequences in a folder diff --git a/sbr/seq_read.c b/sbr/seq_read.c index a4170111..01f5475c 100644 --- a/sbr/seq_read.c +++ b/sbr/seq_read.c @@ -6,9 +6,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/utils.h" #include "lock_file.h" /* diff --git a/sbr/seq_save.c b/sbr/seq_save.c index 30dcbdd3..5978dd73 100644 --- a/sbr/seq_save.c +++ b/sbr/seq_save.c @@ -6,9 +6,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/signals.h" #include "lock_file.h" #include "m_mktemp.h" diff --git a/sbr/seq_setcur.c b/sbr/seq_setcur.c index 03362085..cb995fcd 100644 --- a/sbr/seq_setcur.c +++ b/sbr/seq_setcur.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" void diff --git a/sbr/seq_setprev.c b/sbr/seq_setprev.c index 5e5c43e9..a2dc3015 100644 --- a/sbr/seq_setprev.c +++ b/sbr/seq_setprev.c @@ -5,8 +5,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" /* * Add all the messages currently SELECTED to diff --git a/sbr/seq_setunseen.c b/sbr/seq_setunseen.c index acba9d96..c521f9c6 100644 --- a/sbr/seq_setunseen.c +++ b/sbr/seq_setunseen.c @@ -6,8 +6,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" /* * We scan through the folder and act upon all messages diff --git a/sbr/showfile.c b/sbr/showfile.c index 703132bd..da8df2fb 100644 --- a/sbr/showfile.c +++ b/sbr/showfile.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" diff --git a/sbr/signals.c b/sbr/signals.c index ba37ee5e..36ba9d02 100644 --- a/sbr/signals.c +++ b/sbr/signals.c @@ -5,8 +5,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/signals.h" #include "m_mktemp.h" diff --git a/sbr/smatch.c b/sbr/smatch.c index 802e4da0..cb23e8f9 100644 --- a/sbr/smatch.c +++ b/sbr/smatch.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" int diff --git a/sbr/snprintb.c b/sbr/snprintb.c index 47aea95f..bf99c9ba 100644 --- a/sbr/snprintb.c +++ b/sbr/snprintb.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" char * diff --git a/sbr/ssequal.c b/sbr/ssequal.c index 7bd30031..0704a0a1 100644 --- a/sbr/ssequal.c +++ b/sbr/ssequal.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" /* * THIS CODE DOES NOT WORK AS ADVERTISED. diff --git a/sbr/strindex.c b/sbr/strindex.c index b2bc9ff9..c92da6ee 100644 --- a/sbr/strindex.c +++ b/sbr/strindex.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" int stringdex (char *p1, char *p2) diff --git a/sbr/terminal.c b/sbr/terminal.c index 761ed245..51f97026 100644 --- a/sbr/terminal.c +++ b/sbr/terminal.c @@ -5,8 +5,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" #include diff --git a/sbr/trimcpy.c b/sbr/trimcpy.c index 3263231a..6ed00b99 100644 --- a/sbr/trimcpy.c +++ b/sbr/trimcpy.c @@ -7,8 +7,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" char * diff --git a/sbr/unquote.c b/sbr/unquote.c index b6411e11..f2e3fd07 100644 --- a/sbr/unquote.c +++ b/sbr/unquote.c @@ -6,7 +6,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "unquote.h" /* diff --git a/sbr/uprf.c b/sbr/uprf.c index c74af7bd..bcd4c135 100644 --- a/sbr/uprf.c +++ b/sbr/uprf.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" /* uprf returns true if s starts with prefix, ignoring case. diff --git a/sbr/utils.c b/sbr/utils.c index 514a7d7a..c385b45b 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include -#include +#include "h/utils.h" +#include "h/signals.h" #include "m_mktemp.h" #include "makedir.h" #include diff --git a/sbr/vector.c b/sbr/vector.c index 77908cb1..d0ebc336 100644 --- a/sbr/vector.c +++ b/sbr/vector.c @@ -16,8 +16,8 @@ * can be as large as needed, as long as it fits in (virtual) memory. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" /* The default size of a struct bvector's bits, measured in bits. * The struct's tiny member is used for storage. */ diff --git a/sbr/vfgets.c b/sbr/vfgets.c index 37d1d90c..1bc4bc3e 100644 --- a/sbr/vfgets.c +++ b/sbr/vfgets.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "error.h" -#include +#include "h/utils.h" #define QUOTE '\\' diff --git a/uip/ali.c b/uip/ali.c index 6a9078bd..40ad1b8c 100644 --- a/uip/ali.c +++ b/uip/ali.c @@ -5,13 +5,13 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include -#include +#include "h/addrsbr.h" +#include "h/aliasbr.h" +#include "h/mts.h" #include "h/done.h" -#include +#include "h/utils.h" #define ALI_SWITCHES \ X("alias aliasfile", 0, ALIASW) \ diff --git a/uip/aliasbr.c b/uip/aliasbr.c index 40687bbc..754a4d18 100644 --- a/uip/aliasbr.c +++ b/uip/aliasbr.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include -#include -#include -#include +#include "h/mh.h" +#include "h/aliasbr.h" +#include "h/addrsbr.h" +#include "h/utils.h" #include static int akvis; diff --git a/uip/anno.c b/uip/anno.c index bc5e14e7..3a874380 100644 --- a/uip/anno.c +++ b/uip/anno.c @@ -41,9 +41,9 @@ * value of 1 is assumed if this argument is absent. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include +#include "h/utils.h" #include "h/done.h" #include "sbr/m_maildir.h" diff --git a/uip/annosbr.c b/uip/annosbr.c index dd887fff..eafcbfc1 100644 --- a/uip/annosbr.c +++ b/uip/annosbr.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include +#include "h/tws.h" +#include "h/utils.h" #include "sbr/lock_file.h" #include "sbr/m_mktemp.h" #include diff --git a/uip/ap.c b/uip/ap.c index e320efc1..212a2d12 100644 --- a/uip/ap.c +++ b/uip/ap.c @@ -5,13 +5,13 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include -#include +#include "h/addrsbr.h" +#include "h/fmt_scan.h" +#include "h/mts.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/terminal.h" #define NADDRS 100 diff --git a/uip/burst.c b/uip/burst.c index 8ed571fb..84ab9392 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include +#include "h/utils.h" +#include "h/mhparse.h" #include "h/done.h" #include "sbr/m_maildir.h" #include "sbr/m_mktemp.h" diff --git a/uip/comp.c b/uip/comp.c index 03f87a30..0d597851 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include +#include "h/utils.h" +#include "h/fmt_scan.h" #include "h/done.h" #include "sbr/m_maildir.h" #include diff --git a/uip/dist.c b/uip/dist.c index 9bd8911c..4bfec7d1 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #include #include "h/done.h" diff --git a/uip/distsbr.c b/uip/distsbr.c index baace547..4a62cd88 100644 --- a/uip/distsbr.c +++ b/uip/distsbr.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include +#include "h/utils.h" #include "sbr/m_mktemp.h" static int hdrfd = NOTOK; diff --git a/uip/dp.c b/uip/dp.c index e6cfa60c..9339b279 100644 --- a/uip/dp.c +++ b/uip/dp.c @@ -5,12 +5,12 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include "h/done.h" -#include -#include -#include +#include "h/utils.h" +#include "h/fmt_scan.h" +#include "h/tws.h" #include "sbr/terminal.h" #define NDATES 100 diff --git a/uip/dropsbr.c b/uip/dropsbr.c index 93263dee..2d19f219 100644 --- a/uip/dropsbr.c +++ b/uip/dropsbr.c @@ -5,13 +5,13 @@ * complete copyright information. */ -#include -#include +#include "h/nmh.h" +#include "h/mh.h" #include "sbr/error.h" -#include -#include -#include -#include +#include "h/utils.h" +#include "h/dropsbr.h" +#include "h/mts.h" +#include "h/tws.h" #include "sbr/lock_file.h" #include "sbr/m_mktemp.h" #include diff --git a/uip/flist.c b/uip/flist.c index f1902a36..4435d2da 100644 --- a/uip/flist.c +++ b/uip/flist.c @@ -13,9 +13,9 @@ * any specification. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include +#include "h/utils.h" #include "h/done.h" #include "sbr/m_maildir.h" diff --git a/uip/fmtdump.c b/uip/fmtdump.c index 808d97ba..e8c3aa2a 100644 --- a/uip/fmtdump.c +++ b/uip/fmtdump.c @@ -5,13 +5,13 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include -#include +#include "h/fmt_scan.h" +#include "h/fmt_compile.h" +#include "h/scansbr.h" #include "h/done.h" -#include +#include "h/utils.h" #define FMTDUMP_SWITCHES \ X("form formatfile", 0, FORMSW) \ diff --git a/uip/fmttest.c b/uip/fmttest.c index 3e1d1a09..4214ab1b 100644 --- a/uip/fmttest.c +++ b/uip/fmttest.c @@ -5,13 +5,13 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include -#include -#include -#include +#include "h/fmt_scan.h" +#include "h/fmt_compile.h" +#include "h/utils.h" +#include "h/scansbr.h" +#include "h/addrsbr.h" #include "h/done.h" #include "sbr/m_maildir.h" #include "sbr/terminal.h" diff --git a/uip/folder.c b/uip/folder.c index 41eaa2d5..60e8c19a 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -7,11 +7,11 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include +#include "h/crawl_folders.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #define FOLDER_SWITCHES \ diff --git a/uip/forw.c b/uip/forw.c index 84d10ade..939832af 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -5,12 +5,12 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include +#include "h/tws.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #include "forwsbr.h" diff --git a/uip/forwsbr.c b/uip/forwsbr.c index 4c997cb1..6978d183 100644 --- a/uip/forwsbr.c +++ b/uip/forwsbr.c @@ -5,12 +5,12 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include -#include -#include +#include "h/fmt_scan.h" +#include "h/tws.h" +#include "h/utils.h" #include "sbr/m_mktemp.h" #include "forwsbr.h" diff --git a/uip/imaptest.c b/uip/imaptest.c index 200af2b0..e624bc4d 100644 --- a/uip/imaptest.c +++ b/uip/imaptest.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include +#include "h/utils.h" +#include "h/netsec.h" #include #include #include "h/done.h" diff --git a/uip/inc.c b/uip/inc.c index a797088d..90a93528 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -30,17 +30,17 @@ */ #endif -#include +#include "h/mh.h" #include "sbr/error.h" -#include +#include "h/utils.h" #include -#include -#include -#include -#include -#include -#include -#include +#include "h/dropsbr.h" +#include "h/popsbr.h" +#include "h/fmt_scan.h" +#include "h/scansbr.h" +#include "h/signals.h" +#include "h/tws.h" +#include "h/mts.h" #include "h/done.h" #include "sbr/lock_file.h" #include "sbr/m_maildir.h" diff --git a/uip/install-mh.c b/uip/install-mh.c index 31af64b8..59e88da0 100644 --- a/uip/install-mh.c +++ b/uip/install-mh.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include /* mh internals */ +#include "h/mh.h" /* mh internals */ #include "sbr/error.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #include "sbr/makedir.h" #include /* structure for getpwuid() results */ diff --git a/uip/mark.c b/uip/mark.c index 57d45868..9ec5c5ca 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -7,10 +7,10 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #define MARK_SWITCHES \ diff --git a/uip/mhbuild.c b/uip/mhbuild.c index 4a042e93..00156705 100644 --- a/uip/mhbuild.c +++ b/uip/mhbuild.c @@ -5,17 +5,17 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include -#include -#include -#include -#include -#include +#include "h/md5.h" +#include "h/mts.h" +#include "h/tws.h" +#include "h/mime.h" +#include "h/mhparse.h" +#include "h/mhcachesbr.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #include "sbr/m_mktemp.h" #include "mhfree.h" diff --git a/uip/mhbuildsbr.c b/uip/mhbuildsbr.c index 21cd58bb..2b3f9a0f 100644 --- a/uip/mhbuildsbr.c +++ b/uip/mhbuildsbr.c @@ -13,17 +13,17 @@ * streamlining and removal of unneeded code. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include -#include -#include -#include -#include -#include +#include "h/md5.h" +#include "h/mts.h" +#include "h/tws.h" +#include "h/fmt_scan.h" +#include "h/mime.h" +#include "h/mhparse.h" #include "h/done.h" -#include +#include "h/utils.h" #include "h/mhcachesbr.h" #include "mhmisc.h" #include "sbr/m_mktemp.h" diff --git a/uip/mhcachesbr.c b/uip/mhcachesbr.c index a7fdf90f..453c356f 100644 --- a/uip/mhcachesbr.c +++ b/uip/mhcachesbr.c @@ -5,16 +5,16 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include -#include -#include -#include -#include -#include -#include +#include "h/md5.h" +#include "h/mts.h" +#include "h/tws.h" +#include "h/mime.h" +#include "h/mhparse.h" +#include "h/mhcachesbr.h" +#include "h/utils.h" #include "mhmisc.h" #include "sbr/lock_file.h" #include "sbr/m_mktemp.h" diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index 5d3a2ceb..4cd9d05a 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -5,14 +5,14 @@ * distribution for complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include -#include +#include "h/fmt_scan.h" +#include "h/mime.h" +#include "h/mhparse.h" #include "h/done.h" -#include -#include +#include "h/utils.h" +#include "h/signals.h" #include "sbr/m_maildir.h" #include "sbr/m_mktemp.h" #include "sbr/mime_type.h" diff --git a/uip/mhfree.c b/uip/mhfree.c index 6a827e08..d9eaeef0 100644 --- a/uip/mhfree.c +++ b/uip/mhfree.c @@ -6,10 +6,10 @@ * complete copyright information. */ -#include -#include -#include -#include +#include "h/mh.h" +#include "h/utils.h" +#include "h/mime.h" +#include "h/mhparse.h" #include "sbr/m_mktemp.h" #include "mhfree.h" diff --git a/uip/mhical.c b/uip/mhical.c index 70323eeb..71201102 100644 --- a/uip/mhical.c +++ b/uip/mhical.c @@ -9,7 +9,7 @@ #include "sbr/error.h" #include "h/icalendar.h" #include "sbr/icalparse.h" -#include +#include "h/fmt_scan.h" #include "h/addrsbr.h" #include "h/mts.h" #include "h/done.h" diff --git a/uip/mhl.c b/uip/mhl.c index 35543815..c3b12e51 100644 --- a/uip/mhl.c +++ b/uip/mhl.c @@ -5,9 +5,9 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "h/done.h" -#include +#include "h/utils.h" int diff --git a/uip/mhlist.c b/uip/mhlist.c index cd3114af..974397d2 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -5,18 +5,18 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include -#include -#include -#include -#include -#include -#include +#include "h/signals.h" +#include "h/md5.h" +#include "h/mts.h" +#include "h/tws.h" +#include "h/mime.h" +#include "h/mhparse.h" +#include "h/mhcachesbr.h" #include "h/done.h" -#include +#include "h/utils.h" #include "mhmisc.h" #include "sbr/m_maildir.h" #include "mhfree.h" diff --git a/uip/mhlistsbr.c b/uip/mhlistsbr.c index d58d43f9..4b66a84b 100644 --- a/uip/mhlistsbr.c +++ b/uip/mhlistsbr.c @@ -6,13 +6,13 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include -#include -#include -#include -#include -#include +#include "h/mts.h" +#include "h/tws.h" +#include "h/mime.h" +#include "h/mhparse.h" +#include "h/utils.h" #include "mhmisc.h" /* diff --git a/uip/mhlogin.c b/uip/mhlogin.c index d41ec6d1..84b6205c 100644 --- a/uip/mhlogin.c +++ b/uip/mhlogin.c @@ -9,11 +9,11 @@ #include #include -#include +#include "h/mh.h" #include "sbr/error.h" #include "h/done.h" -#include -#include +#include "h/utils.h" +#include "h/oauth.h" #include "sbr/lock_file.h" #define MHLOGIN_SWITCHES \ diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index 2cc506bc..c4f452ba 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -5,14 +5,14 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include -#include -#include +#include "h/signals.h" +#include "h/addrsbr.h" +#include "h/fmt_scan.h" +#include "h/tws.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_popen.h" #include #include diff --git a/uip/mhmisc.c b/uip/mhmisc.c index c49a4f1d..24fb9b2c 100644 --- a/uip/mhmisc.c +++ b/uip/mhmisc.c @@ -5,11 +5,11 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include -#include +#include "h/mime.h" +#include "h/mhparse.h" +#include "h/utils.h" #include "sbr/makedir.h" #include "mhmisc.h" diff --git a/uip/mhn.c b/uip/mhn.c index 866cdf2c..454c4348 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -5,19 +5,19 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include -#include -#include -#include -#include -#include -#include -#include +#include "h/signals.h" +#include "h/md5.h" +#include "h/mts.h" +#include "h/tws.h" +#include "h/fmt_scan.h" +#include "h/mime.h" +#include "h/mhparse.h" +#include "h/mhcachesbr.h" #include "h/done.h" -#include +#include "h/utils.h" #include "mhmisc.h" #include "sbr/m_maildir.h" #include "mhfree.h" diff --git a/uip/mhoutsbr.c b/uip/mhoutsbr.c index 00aa8df6..0f2b9eb3 100644 --- a/uip/mhoutsbr.c +++ b/uip/mhoutsbr.c @@ -6,15 +6,15 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include -#include -#include -#include -#include -#include +#include "h/utils.h" +#include "h/md5.h" +#include "h/mts.h" +#include "h/tws.h" +#include "h/mime.h" +#include "h/mhparse.h" #include "mhoutsbr.h" #include "sbr/base64.h" diff --git a/uip/mhparam.c b/uip/mhparam.c index 178520b7..4ba2e4ed 100644 --- a/uip/mhparam.c +++ b/uip/mhparam.c @@ -8,11 +8,11 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include +#include "h/mts.h" #include "h/done.h" -#include +#include "h/utils.h" #define MHPARAM_SWITCHES \ X("components", 0, COMPSW) \ diff --git a/uip/mhparse.c b/uip/mhparse.c index 5091e97e..fc863c3a 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -5,17 +5,17 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include -#include -#include -#include -#include -#include +#include "h/md5.h" +#include "h/mts.h" +#include "h/tws.h" +#include "h/mime.h" +#include "h/mhparse.h" +#include "h/utils.h" #include "mhmisc.h" -#include +#include "h/mhcachesbr.h" #include "sbr/m_mktemp.h" #include "mhfree.h" #ifdef HAVE_ICONV diff --git a/uip/mhpath.c b/uip/mhpath.c index 884ae42d..2450089f 100644 --- a/uip/mhpath.c +++ b/uip/mhpath.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #define MHPATH_SWITCHES \ diff --git a/uip/mhshow.c b/uip/mhshow.c index 85b158eb..730ae95d 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -5,19 +5,19 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include -#include -#include -#include -#include -#include -#include -#include +#include "h/signals.h" +#include "h/md5.h" +#include "h/mts.h" +#include "h/tws.h" +#include "h/fmt_scan.h" +#include "h/mime.h" +#include "h/mhparse.h" +#include "h/mhcachesbr.h" #include "h/done.h" -#include +#include "h/utils.h" #include "mhmisc.h" #include "sbr/m_maildir.h" #include "sbr/m_popen.h" diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index 3ed6f8b9..071ff8aa 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -5,18 +5,18 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include -#include -#include -#include -#include -#include -#include +#include "h/signals.h" +#include "h/md5.h" +#include "h/mts.h" +#include "h/tws.h" +#include "h/mime.h" +#include "h/mhparse.h" +#include "h/fmt_scan.h" #include "h/done.h" -#include +#include "h/utils.h" #include "mhmisc.h" #include "mhshowsbr.h" #include "sbr/m_mktemp.h" diff --git a/uip/mhstore.c b/uip/mhstore.c index e34bbee0..e7ad1af9 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -5,18 +5,18 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include -#include -#include -#include -#include -#include -#include +#include "h/signals.h" +#include "h/md5.h" +#include "h/mts.h" +#include "h/tws.h" +#include "h/mime.h" +#include "h/mhparse.h" +#include "h/mhcachesbr.h" #include "h/done.h" -#include +#include "h/utils.h" #include "mhmisc.h" #include "sbr/m_maildir.h" #include "mhfree.h" diff --git a/uip/mhstoresbr.c b/uip/mhstoresbr.c index e56ff915..0644753c 100644 --- a/uip/mhstoresbr.c +++ b/uip/mhstoresbr.c @@ -5,16 +5,16 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include -#include -#include -#include -#include -#include -#include +#include "h/md5.h" +#include "h/mts.h" +#include "h/tws.h" +#include "h/fmt_scan.h" +#include "h/mime.h" +#include "h/mhparse.h" +#include "h/utils.h" #include "mhmisc.h" #include "mhshowsbr.h" #include "sbr/m_maildir.h" diff --git a/uip/mkstemp.c b/uip/mkstemp.c index 226a948e..e49f999d 100644 --- a/uip/mkstemp.c +++ b/uip/mkstemp.c @@ -11,7 +11,7 @@ #endif /* ! NMH */ #ifdef HAVE_CONFIG_H -# include +# include "config.h" #endif /* HAVE_CONFIG_H */ #include #include @@ -119,10 +119,10 @@ build_template(const char *directory, const char *prefix, const char *suffix) #if NMH -#include +#include "h/mh.h" #include "sbr/error.h" #include "h/done.h" -#include +#include "h/utils.h" #if HAVE_MKSTEMPS # define MHFIXMSG_SWITCHES \ diff --git a/uip/msgchk.c b/uip/msgchk.c index 65f0df91..10feb3cb 100644 --- a/uip/msgchk.c +++ b/uip/msgchk.c @@ -5,15 +5,15 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include +#include "h/mts.h" +#include "h/tws.h" #include "h/done.h" -#include +#include "h/utils.h" #include -#include +#include "h/popsbr.h" #ifndef CYRUS_SASL # define SASLminc(a) (a) diff --git a/uip/new.c b/uip/new.c index b09e1aac..68a7a16e 100644 --- a/uip/new.c +++ b/uip/new.c @@ -11,11 +11,11 @@ #include -#include +#include "h/mh.h" #include "sbr/error.h" -#include +#include "h/crawl_folders.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/lock_file.h" #include "sbr/m_maildir.h" diff --git a/uip/packf.c b/uip/packf.c index 38d4ac9d..8d71686e 100644 --- a/uip/packf.c +++ b/uip/packf.c @@ -5,12 +5,12 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include +#include "h/dropsbr.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #define PACKF_SWITCHES \ diff --git a/uip/pick.c b/uip/pick.c index fde8ce60..737814a8 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -5,12 +5,12 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include +#include "h/tws.h" +#include "h/picksbr.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #define PICK_SWITCHES \ diff --git a/uip/picksbr.c b/uip/picksbr.c index bd1efb98..9fe07cd2 100644 --- a/uip/picksbr.c +++ b/uip/picksbr.c @@ -5,11 +5,11 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include -#include +#include "h/tws.h" +#include "h/picksbr.h" +#include "h/utils.h" #ifdef HAVE_SYS_TIME_H # include diff --git a/uip/popsbr.c b/uip/popsbr.c index 81f3db75..b3c85d39 100644 --- a/uip/popsbr.c +++ b/uip/popsbr.c @@ -5,14 +5,14 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include -#include +#include "h/utils.h" +#include "h/oauth.h" +#include "h/netsec.h" -#include -#include +#include "h/popsbr.h" +#include "h/signals.h" #include "sbr/base64.h" #define TRM "." diff --git a/uip/post.c b/uip/post.c index e8b2587b..75a7749b 100644 --- a/uip/post.c +++ b/uip/post.c @@ -5,18 +5,18 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include -#include -#include -#include -#include +#include "h/signals.h" +#include "h/addrsbr.h" +#include "h/aliasbr.h" +#include "h/dropsbr.h" +#include "h/mime.h" #include "h/done.h" -#include -#include -#include +#include "h/utils.h" +#include "h/tws.h" +#include "h/mts.h" #include "sbr/m_mktemp.h" #include "sbr/message_id.h" @@ -25,7 +25,7 @@ #endif #include -#include +#include "mts/smtp/smtp.h" #ifndef CYRUS_SASL # define SASLminc(a) (a) diff --git a/uip/prompter.c b/uip/prompter.c index 3f049d14..c13a3b8f 100644 --- a/uip/prompter.c +++ b/uip/prompter.c @@ -5,12 +5,12 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include +#include "h/signals.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_mktemp.h" #include diff --git a/uip/rcvdist.c b/uip/rcvdist.c index a6742a1a..6436854f 100644 --- a/uip/rcvdist.c +++ b/uip/rcvdist.c @@ -5,14 +5,14 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include -#include -#include +#include "h/fmt_scan.h" +#include "h/rcvmail.h" +#include "h/tws.h" +#include "h/mts.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_mktemp.h" #define RCVDIST_SWITCHES \ diff --git a/uip/rcvpack.c b/uip/rcvpack.c index 6199e229..f63a89d0 100644 --- a/uip/rcvpack.c +++ b/uip/rcvpack.c @@ -5,14 +5,14 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include -#include -#include +#include "h/dropsbr.h" +#include "h/rcvmail.h" +#include "h/tws.h" +#include "h/mts.h" #include "h/done.h" -#include +#include "h/utils.h" #define RCVPACK_SWITCHES \ X("mbox", 0, MBOXSW) \ diff --git a/uip/rcvstore.c b/uip/rcvstore.c index a01c57ff..b5bdd2fd 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -5,13 +5,13 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include -#include +#include "h/signals.h" +#include "h/mts.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #include "sbr/m_mktemp.h" #include "sbr/makedir.h" diff --git a/uip/rcvtty.c b/uip/rcvtty.c index 55314073..6edcaf8f 100644 --- a/uip/rcvtty.c +++ b/uip/rcvtty.c @@ -10,17 +10,17 @@ * Ruud de Rooij Sun, 28 May 2000 17:28:55 +0200 */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include +#include "h/signals.h" #include -#include -#include -#include -#include -#include +#include "h/rcvmail.h" +#include "h/scansbr.h" +#include "h/fmt_scan.h" +#include "h/tws.h" +#include "h/mts.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_mktemp.h" #include diff --git a/uip/refile.c b/uip/refile.c index d14d2778..cebc5c90 100644 --- a/uip/refile.c +++ b/uip/refile.c @@ -6,10 +6,10 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #include "sbr/m_mktemp.h" #include diff --git a/uip/repl.c b/uip/repl.c index e4c14f7d..8fc058d8 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -5,11 +5,11 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include +#include "h/mime.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #include "replsbr.h" diff --git a/uip/replsbr.c b/uip/replsbr.c index 76d027f8..12d75cd9 100644 --- a/uip/replsbr.c +++ b/uip/replsbr.c @@ -5,12 +5,12 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include +#include "h/addrsbr.h" +#include "h/fmt_scan.h" #include "h/done.h" -#include +#include "h/utils.h" #include /* L_SET */ #include "replsbr.h" diff --git a/uip/rmf.c b/uip/rmf.c index 7e8d7415..585fa135 100644 --- a/uip/rmf.c +++ b/uip/rmf.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #include "sbr/m_mktemp.h" diff --git a/uip/rmm.c b/uip/rmm.c index 9f1d60e1..40bb97da 100644 --- a/uip/rmm.c +++ b/uip/rmm.c @@ -5,10 +5,10 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #define RMM_SWITCHES \ diff --git a/uip/scan.c b/uip/scan.c index 7ad1f7b3..8a8a59b1 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -5,14 +5,14 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include -#include -#include +#include "h/fmt_scan.h" +#include "h/scansbr.h" +#include "h/tws.h" +#include "h/mts.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #include "sbr/terminal.h" diff --git a/uip/scansbr.c b/uip/scansbr.c index 17e54cb7..b82c3c56 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -5,13 +5,13 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include -#include -#include -#include +#include "h/addrsbr.h" +#include "h/fmt_scan.h" +#include "h/scansbr.h" +#include "h/tws.h" +#include "h/utils.h" #include "sbr/terminal.h" static struct format *fmt; diff --git a/uip/send.c b/uip/send.c index 1401ff1e..02c5cb85 100644 --- a/uip/send.c +++ b/uip/send.c @@ -5,13 +5,13 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include #include "h/done.h" -#include +#include "h/utils.h" #ifdef OAUTH_SUPPORT -# include +#include "h/oauth.h" #endif #include "sbr/m_maildir.h" #include "sbr/m_mktemp.h" diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 50ca8054..57066165 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -5,17 +5,17 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include -#include +#include "h/fmt_scan.h" +#include "h/fmt_compile.h" +#include "h/signals.h" #include #include -#include -#include -#include -#include +#include "h/mime.h" +#include "h/tws.h" +#include "h/utils.h" +#include "h/mts.h" #ifdef HAVE_SYS_TIME_H # include @@ -23,7 +23,7 @@ #include #ifdef OAUTH_SUPPORT -#include +#include "h/oauth.h" #endif #include "h/done.h" #include "sbr/m_maildir.h" diff --git a/uip/show.c b/uip/show.c index c6429acc..51793fc6 100644 --- a/uip/show.c +++ b/uip/show.c @@ -5,11 +5,11 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include +#include "h/mime.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #define SHOW_SWITCHES \ diff --git a/uip/slocal.c b/uip/slocal.c index 8694f44e..6f7460d6 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -19,16 +19,16 @@ * Ruud de Rooij Sun, 28 May 2000 17:28:55 +0200 */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include -#include -#include +#include "h/dropsbr.h" +#include "h/rcvmail.h" +#include "h/signals.h" #include -#include -#include +#include "h/tws.h" +#include "h/mts.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/lock_file.h" #include "sbr/m_mktemp.h" diff --git a/uip/sortm.c b/uip/sortm.c index 79543207..62baa8ed 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -5,11 +5,11 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" -#include +#include "h/tws.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_maildir.h" #define SORTM_SWITCHES \ diff --git a/uip/viamail.c b/uip/viamail.c index 3324d46b..58772dc3 100644 --- a/uip/viamail.c +++ b/uip/viamail.c @@ -5,16 +5,16 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include -#include -#include -#include -#include +#include "h/md5.h" +#include "h/mts.h" +#include "h/tws.h" +#include "h/mime.h" +#include "h/mhparse.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/m_mktemp.h" #include "sbr/base64.h" diff --git a/uip/whatnow.c b/uip/whatnow.c index 450d9e3b..b571994a 100644 --- a/uip/whatnow.c +++ b/uip/whatnow.c @@ -5,8 +5,8 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "h/utils.h" int diff --git a/uip/whatnowproc.c b/uip/whatnowproc.c index 31f1e396..a4d22a79 100644 --- a/uip/whatnowproc.c +++ b/uip/whatnowproc.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include "h/done.h" diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 787e0152..01279147 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -37,13 +37,13 @@ * by attachment number. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include -#include -#include +#include "h/mime.h" +#include "h/utils.h" #ifdef OAUTH_SUPPORT -# include +#include "h/oauth.h" #endif #include "h/done.h" #include "sbr/m_maildir.h" diff --git a/uip/whom.c b/uip/whom.c index d766da9d..ee818581 100644 --- a/uip/whom.c +++ b/uip/whom.c @@ -5,11 +5,11 @@ * complete copyright information. */ -#include +#include "h/mh.h" #include "sbr/error.h" #include "h/done.h" -#include -#include +#include "h/utils.h" +#include "h/signals.h" #include "sbr/m_maildir.h" #include "sbr/m_mktemp.h" -- 2.48.1 From 9ce1458f83bfd6b7705cccc2343230971c6e54bb Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 14:09:26 +0000 Subject: [PATCH 03/16] Remove symbols-wanted comments after #include. They're unlikely to be up to date, and they are few. --- sbr/context_read.c | 4 ++-- sbr/dtime.c | 2 +- sbr/m_rand.c | 8 ++++---- sbr/message_id.c | 2 +- sbr/mts.c | 2 +- test/getcanon.c | 8 ++++---- uip/install-mh.c | 4 ++-- uip/replsbr.c | 2 +- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/sbr/context_read.c b/sbr/context_read.c index 072e3df1..97bf1404 100644 --- a/sbr/context_read.c +++ b/sbr/context_read.c @@ -21,12 +21,12 @@ * environment variable or by the profile. */ -#include "h/mh.h" /* mh internals */ +#include "h/mh.h" #include "error.h" #include "lock_file.h" #include "m_maildir.h" #include "makedir.h" -#include /* structure for getpwuid() results */ +#include #include "h/utils.h" void diff --git a/sbr/dtime.c b/sbr/dtime.c index c2a5bf8d..3f8f7631 100644 --- a/sbr/dtime.c +++ b/sbr/dtime.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include "h/mh.h" /* for snprintf() */ +#include "h/mh.h" #include "h/nmh.h" #include "h/utils.h" #include "h/tws.h" diff --git a/sbr/m_rand.c b/sbr/m_rand.c index 24e5998d..1accdc89 100644 --- a/sbr/m_rand.c +++ b/sbr/m_rand.c @@ -5,11 +5,11 @@ * complete copyright information. */ -#include /* for abs(), srand(), rand(), arc4random() */ +#include #include -#include /* for fopen(), fread(), fclose() */ -#include /* for getpid() */ -#include /* for time() */ +#include +#include +#include #include "config.h" #include "m_rand.h" diff --git a/sbr/message_id.c b/sbr/message_id.c index 7130cd47..1e29051d 100644 --- a/sbr/message_id.c +++ b/sbr/message_id.c @@ -10,7 +10,7 @@ #include "h/mts.h" #include "m_rand.h" #include "message_id.h" -#include /* for gettimeofday() */ +#include #include "base64.h" diff --git a/sbr/mts.c b/sbr/mts.c index a167b09e..151a4d0f 100644 --- a/sbr/mts.c +++ b/sbr/mts.c @@ -5,7 +5,7 @@ * complete copyright information. */ -#include "h/mh.h" /* for snprintf() */ +#include "h/mh.h" #include "error.h" #include "h/utils.h" diff --git a/test/getcanon.c b/test/getcanon.c index 3e6d5870..27077dc6 100644 --- a/test/getcanon.c +++ b/test/getcanon.c @@ -5,12 +5,12 @@ * complete copyright information. */ -#include /* for getaddrinfo */ +#include #include #include -#include /* for gethostname */ -#include /* for _POSIX_HOST_NAME_MAX */ -#include /* for memset */ +#include +#include +#include #include #include diff --git a/uip/install-mh.c b/uip/install-mh.c index 59e88da0..776c30d4 100644 --- a/uip/install-mh.c +++ b/uip/install-mh.c @@ -5,13 +5,13 @@ * complete copyright information. */ -#include "h/mh.h" /* mh internals */ +#include "h/mh.h" #include "sbr/error.h" #include "h/done.h" #include "h/utils.h" #include "sbr/m_maildir.h" #include "sbr/makedir.h" -#include /* structure for getpwuid() results */ +#include #include "sbr/read_line.h" #define INSTALLMH_SWITCHES \ diff --git a/uip/replsbr.c b/uip/replsbr.c index 12d75cd9..cca19c17 100644 --- a/uip/replsbr.c +++ b/uip/replsbr.c @@ -11,7 +11,7 @@ #include "h/fmt_scan.h" #include "h/done.h" #include "h/utils.h" -#include /* L_SET */ +#include #include "replsbr.h" short ccto = -1; -- 2.48.1 From e8aa81e7e03d66973e70baea9f28c72d56da581e Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 17:36:33 +0000 Subject: [PATCH 04/16] Strip directory from #include when it's not needed. --- h/md5.h | 2 +- h/mf.h | 2 +- h/mh.h | 4 ++-- sbr/ctype-checked.c | 2 +- sbr/icalendar.l | 4 ++-- sbr/icalparse.y | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/h/md5.h b/h/md5.h index cc053ef6..e1906046 100644 --- a/h/md5.h +++ b/h/md5.h @@ -6,7 +6,7 @@ * RSAREF types and constants */ -#include "h/nmh.h" +#include "nmh.h" #include /* UINT4 defines a four byte word */ diff --git a/h/mf.h b/h/mf.h index 8a5536d7..13dd0ab6 100644 --- a/h/mf.h +++ b/h/mf.h @@ -1,7 +1,7 @@ /* mf.h -- include file for mailbox filters */ -#include "h/nmh.h" +#include "nmh.h" #ifndef NOTOK # define NOTOK (-1) diff --git a/h/mh.h b/h/mh.h index 83223a61..bf746f18 100644 --- a/h/mh.h +++ b/h/mh.h @@ -1,7 +1,7 @@ /* mh.h -- main header file for all of nmh */ -#include "h/nmh.h" +#include "nmh.h" /* It's undefined behaviour in C99 to convert from a function pointer to * a data-object pointer, e.g. void pointer. gcc's -pedantic warns of @@ -574,4 +574,4 @@ extern char *version_str; extern char *whatnowproc; extern char *whomproc; -#include "h/prototypes.h" +#include "prototypes.h" diff --git a/sbr/ctype-checked.c b/sbr/ctype-checked.c index 3c576642..651d06cf 100644 --- a/sbr/ctype-checked.c +++ b/sbr/ctype-checked.c @@ -15,7 +15,7 @@ #error "Please report this to nmh's authors." #endif -#include "sbr/ctype-checked.h" +#include "ctype-checked.h" /* ctype_identity returns its index less one allowing [EOF, 255] to be * used as indexes to ctype_identity + 1. */ diff --git a/sbr/icalendar.l b/sbr/icalendar.l index 7e691381..0681f3ad 100644 --- a/sbr/icalendar.l +++ b/sbr/icalendar.l @@ -10,8 +10,8 @@ %{ #include "h/mh.h" #include "h/icalendar.h" -#include "sbr/icalparse.h" -#include "sbr/base64.h" +#include "icalparse.h" +#include "base64.h" static char *unfold (char *, size_t *); static void destroy_icallex(void); diff --git a/sbr/icalparse.y b/sbr/icalparse.y index 0213fa90..7549aa64 100644 --- a/sbr/icalparse.y +++ b/sbr/icalparse.y @@ -34,7 +34,7 @@ */ #include "h/mh.h" -#include "sbr/error.h" +#include "error.h" #include "h/icalendar.h" #include "h/utils.h" -- 2.48.1 From 0a82924f7e104db5281e56698b823b4d76caa6c1 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 17:59:04 +0000 Subject: [PATCH 05/16] arglist.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 4 ---- sbr/arglist.c | 1 + sbr/arglist.h | 10 ++++++++++ sbr/ext_hook.c | 1 + sbr/folder_delmsgs.c | 1 + sbr/m_popen.c | 1 + sbr/refile.c | 1 + sbr/showfile.c | 1 + uip/forw.c | 1 + uip/mhlsbr.c | 1 + uip/mhparse.c | 1 + uip/mhshowsbr.c | 1 + uip/post.c | 1 + uip/rcvdist.c | 1 + uip/refile.c | 1 + uip/replsbr.c | 1 + uip/send.c | 1 + uip/sendsbr.c | 1 + uip/show.c | 1 + uip/viamail.c | 1 + uip/whatnowsbr.c | 1 + 22 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 sbr/arglist.h diff --git a/Makefile.am b/Makefile.am index bce4eb2c..20a55273 100644 --- a/Makefile.am +++ b/Makefile.am @@ -362,6 +362,7 @@ noinst_HEADERS = \ h/tws.h \ h/utils.h \ mts/smtp/smtp.h \ + sbr/arglist.h \ sbr/base64.h \ sbr/ctype-checked.h \ sbr/error.h \ diff --git a/h/prototypes.h b/h/prototypes.h index c1c54842..9e82ddfd 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -16,10 +16,6 @@ char *etcpath(char *) NONNULL(1); struct msgs_array; void add_profile_entry (const char *, const char *); -char **argsplit (char *, char **, int *) NONNULL(1, 2); -void argsplit_msgarg (struct msgs_array *, char *, char **) NONNULL(1, 2, 3); -void argsplit_insert (struct msgs_array *, char *, char **) NONNULL(1, 2, 3); -void arglist_free (char *, char **); void ambigsw (const char *, const struct swit *) NONNULL(1, 2); int atooi(char *) NONNULL(1) PURE; char **brkstring (char *, char *, char *) NONNULL(1); diff --git a/sbr/arglist.c b/sbr/arglist.c index 75c48825..0dde2c86 100644 --- a/sbr/arglist.c +++ b/sbr/arglist.c @@ -7,6 +7,7 @@ #include "h/mh.h" #include "error.h" +#include "arglist.h" #include "h/utils.h" /* diff --git a/sbr/arglist.h b/sbr/arglist.h new file mode 100644 index 00000000..29f95546 --- /dev/null +++ b/sbr/arglist.h @@ -0,0 +1,10 @@ +/* arglist.h -- Routines for handling argument lists for execvp() and friends + * + * This code is Copyright (c) 2017, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ + +char **argsplit(char *, char **, int *) NONNULL(1, 2); +void arglist_free(char *, char **); +void argsplit_msgarg(struct msgs_array *, char *, char **) NONNULL(1, 2, 3); +void argsplit_insert(struct msgs_array *, char *, char **) NONNULL(1, 2, 3); diff --git a/sbr/ext_hook.c b/sbr/ext_hook.c index 8a4a91b3..b8892e99 100644 --- a/sbr/ext_hook.c +++ b/sbr/ext_hook.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "arglist.h" #include "error.h" int diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 2ef88590..f9d7f591 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "arglist.h" #include "error.h" #include "h/utils.h" #include "m_mktemp.h" diff --git a/sbr/m_popen.c b/sbr/m_popen.c index db51f4b7..ac36e6ba 100644 --- a/sbr/m_popen.c +++ b/sbr/m_popen.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "arglist.h" #include "error.h" #include "h/signals.h" #include "m_popen.h" diff --git a/sbr/refile.c b/sbr/refile.c index 4e375917..ce31273b 100644 --- a/sbr/refile.c +++ b/sbr/refile.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "arglist.h" #include "error.h" #include "h/utils.h" diff --git a/sbr/showfile.c b/sbr/showfile.c index da8df2fb..1ce63721 100644 --- a/sbr/showfile.c +++ b/sbr/showfile.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "arglist.h" #include "error.h" diff --git a/uip/forw.c b/uip/forw.c index 939832af..80fa7f49 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/arglist.h" #include "sbr/error.h" #include #include "h/tws.h" diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index c4f452ba..4a54f710 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/arglist.h" #include "sbr/error.h" #include "h/signals.h" #include "h/addrsbr.h" diff --git a/uip/mhparse.c b/uip/mhparse.c index fc863c3a..c3042420 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/arglist.h" #include "sbr/error.h" #include #include "h/md5.h" diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index 071ff8aa..fca44107 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/arglist.h" #include "sbr/error.h" #include #include "h/signals.h" diff --git a/uip/post.c b/uip/post.c index 75a7749b..6fbccdf9 100644 --- a/uip/post.c +++ b/uip/post.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/arglist.h" #include "sbr/error.h" #include #include "h/signals.h" diff --git a/uip/rcvdist.c b/uip/rcvdist.c index 6436854f..9f52a4b2 100644 --- a/uip/rcvdist.c +++ b/uip/rcvdist.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/arglist.h" #include "sbr/error.h" #include "h/fmt_scan.h" #include "h/rcvmail.h" diff --git a/uip/refile.c b/uip/refile.c index cebc5c90..58de202c 100644 --- a/uip/refile.c +++ b/uip/refile.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "sbr/arglist.h" #include "sbr/error.h" #include "h/done.h" #include "h/utils.h" diff --git a/uip/replsbr.c b/uip/replsbr.c index cca19c17..08991178 100644 --- a/uip/replsbr.c +++ b/uip/replsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/arglist.h" #include "sbr/error.h" #include "h/addrsbr.h" #include "h/fmt_scan.h" diff --git a/uip/send.c b/uip/send.c index 02c5cb85..3d559ff5 100644 --- a/uip/send.c +++ b/uip/send.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/arglist.h" #include "sbr/error.h" #include #include "h/done.h" diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 57066165..ca03877a 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/arglist.h" #include "sbr/error.h" #include "h/fmt_scan.h" #include "h/fmt_compile.h" diff --git a/uip/show.c b/uip/show.c index 51793fc6..7573432e 100644 --- a/uip/show.c +++ b/uip/show.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/arglist.h" #include "sbr/error.h" #include "h/mime.h" #include "h/done.h" diff --git a/uip/viamail.c b/uip/viamail.c index 58772dc3..37066a4f 100644 --- a/uip/viamail.c +++ b/uip/viamail.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/arglist.h" #include "sbr/error.h" #include #include "h/md5.h" diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 01279147..07bd22bc 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -38,6 +38,7 @@ */ #include "h/mh.h" +#include "sbr/arglist.h" #include "sbr/error.h" #include #include "h/mime.h" -- 2.48.1 From 69c535eeaa37eb89ce89a51e8577587ffc3c2195 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 18:09:43 +0000 Subject: [PATCH 06/16] seq_add.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 2 -- sbr/seq_add.c | 1 + sbr/seq_add.h | 8 ++++++++ sbr/seq_setcur.c | 1 + sbr/seq_setprev.c | 1 + sbr/seq_setunseen.c | 1 + uip/mark.c | 1 + uip/pick.c | 1 + uip/rcvstore.c | 1 + uip/refile.c | 1 + 11 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 sbr/seq_add.h diff --git a/Makefile.am b/Makefile.am index 20a55273..1bc9d76c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -375,6 +375,7 @@ noinst_HEADERS = \ sbr/message_id.h \ sbr/mime_type.h \ sbr/read_line.h \ + sbr/seq_add.h \ sbr/terminal.h \ sbr/unquote.h \ thirdparty/jsmn/jsmn.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 9e82ddfd..1507e206 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -203,8 +203,6 @@ void ruserpass (const char *host, char **aname, char **apass, int flags); int remdir (char *); void scan_detect_mbox_style (FILE *); void scan_finished(void); -int seq_addmsg (struct msgs *, char *, int, int, int); -int seq_addsel (struct msgs *, char *, int, int); char *seq_bits (struct msgs *); int seq_delmsg (struct msgs *, char *, int); int seq_delsel (struct msgs *, char *, int, int); diff --git a/sbr/seq_add.c b/sbr/seq_add.c index 8b51e31e..baeb305f 100644 --- a/sbr/seq_add.c +++ b/sbr/seq_add.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_add.h" #include "error.h" diff --git a/sbr/seq_add.h b/sbr/seq_add.h new file mode 100644 index 00000000..ab027b7e --- /dev/null +++ b/sbr/seq_add.h @@ -0,0 +1,8 @@ +/* seq_add.h -- add message(s) to a sequence + * + * This code is Copyright (c) 2017, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ + +int seq_addsel(struct msgs *, char *, int, int); +int seq_addmsg(struct msgs *, char *, int, int, int); diff --git a/sbr/seq_setcur.c b/sbr/seq_setcur.c index cb995fcd..aa83edaf 100644 --- a/sbr/seq_setcur.c +++ b/sbr/seq_setcur.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_add.h" void diff --git a/sbr/seq_setprev.c b/sbr/seq_setprev.c index a2dc3015..cfdfd610 100644 --- a/sbr/seq_setprev.c +++ b/sbr/seq_setprev.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_add.h" #include "h/utils.h" /* diff --git a/sbr/seq_setunseen.c b/sbr/seq_setunseen.c index c521f9c6..460f8cc9 100644 --- a/sbr/seq_setunseen.c +++ b/sbr/seq_setunseen.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "seq_add.h" #include "h/utils.h" /* diff --git a/uip/mark.c b/uip/mark.c index 9ec5c5ca..68ba9e30 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -8,6 +8,7 @@ */ #include "h/mh.h" +#include "sbr/seq_add.h" #include "sbr/error.h" #include "h/done.h" #include "h/utils.h" diff --git a/uip/pick.c b/uip/pick.c index 737814a8..b5a7cdd6 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/seq_add.h" #include "sbr/error.h" #include "h/tws.h" #include "h/picksbr.h" diff --git a/uip/rcvstore.c b/uip/rcvstore.c index b5bdd2fd..9c609c23 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/seq_add.h" #include "sbr/error.h" #include #include "h/signals.h" diff --git a/uip/refile.c b/uip/refile.c index 58de202c..98df16a8 100644 --- a/uip/refile.c +++ b/uip/refile.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "sbr/seq_add.h" #include "sbr/arglist.h" #include "sbr/error.h" #include "h/done.h" -- 2.48.1 From 33816ab133a3538f3f4f6e043e61327046c02b3e Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 18:19:59 +0000 Subject: [PATCH 07/16] seq_print.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 2 -- sbr/seq_print.c | 1 + sbr/seq_print.h | 8 ++++++++ uip/mark.c | 1 + 5 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 sbr/seq_print.h diff --git a/Makefile.am b/Makefile.am index 1bc9d76c..8d2393f5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -376,6 +376,7 @@ noinst_HEADERS = \ sbr/mime_type.h \ sbr/read_line.h \ sbr/seq_add.h \ + sbr/seq_print.h \ sbr/terminal.h \ sbr/unquote.h \ thirdparty/jsmn/jsmn.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 1507e206..1e0d60a0 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -209,8 +209,6 @@ int seq_delsel (struct msgs *, char *, int, int); int seq_getnum (struct msgs *, char *); char *seq_list (struct msgs *, char *); int seq_nameok (char *); -void seq_print (struct msgs *, char *); -void seq_printall (struct msgs *); /* * Read the sequence files for the folder referenced in the given diff --git a/sbr/seq_print.c b/sbr/seq_print.c index a373d925..6139bc14 100644 --- a/sbr/seq_print.c +++ b/sbr/seq_print.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_print.h" /* * Print all the sequences in a folder diff --git a/sbr/seq_print.h b/sbr/seq_print.h new file mode 100644 index 00000000..adf1cfc3 --- /dev/null +++ b/sbr/seq_print.h @@ -0,0 +1,8 @@ +/* seq_print.h -- Routines to print sequence information. + * + * This code is Copyright (c) 2017, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ + +void seq_printall(struct msgs *); +void seq_print(struct msgs *, char *); diff --git a/uip/mark.c b/uip/mark.c index 68ba9e30..0b21fd83 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -8,6 +8,7 @@ */ #include "h/mh.h" +#include "sbr/seq_print.h" #include "sbr/seq_add.h" #include "sbr/error.h" #include "h/done.h" -- 2.48.1 From 9f1e781a5c2beb9df943c832300a3f5bee1e4ed3 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 21:40:11 +0000 Subject: [PATCH 08/16] seq_del.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 2 -- sbr/seq_del.h | 8 ++++++++ sbr/seq_setunseen.c | 1 + uip/mark.c | 1 + 5 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 sbr/seq_del.h diff --git a/Makefile.am b/Makefile.am index 8d2393f5..314288cf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -376,6 +376,7 @@ noinst_HEADERS = \ sbr/mime_type.h \ sbr/read_line.h \ sbr/seq_add.h \ + sbr/seq_del.h \ sbr/seq_print.h \ sbr/terminal.h \ sbr/unquote.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 1e0d60a0..255f1758 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -204,8 +204,6 @@ int remdir (char *); void scan_detect_mbox_style (FILE *); void scan_finished(void); char *seq_bits (struct msgs *); -int seq_delmsg (struct msgs *, char *, int); -int seq_delsel (struct msgs *, char *, int, int); int seq_getnum (struct msgs *, char *); char *seq_list (struct msgs *, char *); int seq_nameok (char *); diff --git a/sbr/seq_del.h b/sbr/seq_del.h new file mode 100644 index 00000000..97367b8c --- /dev/null +++ b/sbr/seq_del.h @@ -0,0 +1,8 @@ +/* seq_del.h -- delete message(s) from a sequence + * + * This code is Copyright (c) 2017, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ + +int seq_delmsg(struct msgs *, char *, int); +int seq_delsel(struct msgs *, char *, int, int); diff --git a/sbr/seq_setunseen.c b/sbr/seq_setunseen.c index 460f8cc9..298f2637 100644 --- a/sbr/seq_setunseen.c +++ b/sbr/seq_setunseen.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "seq_del.h" #include "seq_add.h" #include "h/utils.h" diff --git a/uip/mark.c b/uip/mark.c index 0b21fd83..d2f90571 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -8,6 +8,7 @@ */ #include "h/mh.h" +#include "sbr/seq_del.h" #include "sbr/seq_print.h" #include "sbr/seq_add.h" #include "sbr/error.h" -- 2.48.1 From 932e06400b371192f5d872a72f93dbaf02592a8d Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 21:50:33 +0000 Subject: [PATCH 09/16] seq_getnum.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 1 - sbr/m_convert.c | 1 + sbr/seq_getnum.h | 8 ++++++++ sbr/seq_list.c | 1 + sbr/seq_print.c | 1 + sbr/seq_setunseen.c | 1 + uip/flist.c | 1 + uip/fmttest.c | 1 + uip/refile.c | 1 + uip/scan.c | 1 + 11 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 sbr/seq_getnum.h diff --git a/Makefile.am b/Makefile.am index 314288cf..13b6d662 100644 --- a/Makefile.am +++ b/Makefile.am @@ -377,6 +377,7 @@ noinst_HEADERS = \ sbr/read_line.h \ sbr/seq_add.h \ sbr/seq_del.h \ + sbr/seq_getnum.h \ sbr/seq_print.h \ sbr/terminal.h \ sbr/unquote.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 255f1758..3e7d8979 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -204,7 +204,6 @@ int remdir (char *); void scan_detect_mbox_style (FILE *); void scan_finished(void); char *seq_bits (struct msgs *); -int seq_getnum (struct msgs *, char *); char *seq_list (struct msgs *, char *); int seq_nameok (char *); diff --git a/sbr/m_convert.c b/sbr/m_convert.c index 64346fb9..d5d06905 100644 --- a/sbr/m_convert.c +++ b/sbr/m_convert.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_getnum.h" #include "error.h" #include "h/utils.h" diff --git a/sbr/seq_getnum.h b/sbr/seq_getnum.h new file mode 100644 index 00000000..a6668e49 --- /dev/null +++ b/sbr/seq_getnum.h @@ -0,0 +1,8 @@ +/* seq_getnum.h -- find the index for a sequence + * -- return -1 if sequence doesn't exist + * + * This code is Copyright (c) 2017, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ + +int seq_getnum(struct msgs *, char *); diff --git a/sbr/seq_list.c b/sbr/seq_list.c index 20617a54..5344510d 100644 --- a/sbr/seq_list.c +++ b/sbr/seq_list.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "seq_getnum.h" #include "h/utils.h" /* allocate this much buffer space at a time */ diff --git a/sbr/seq_print.c b/sbr/seq_print.c index 6139bc14..e37c0eae 100644 --- a/sbr/seq_print.c +++ b/sbr/seq_print.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_getnum.h" #include "seq_print.h" /* diff --git a/sbr/seq_setunseen.c b/sbr/seq_setunseen.c index 298f2637..4c92f156 100644 --- a/sbr/seq_setunseen.c +++ b/sbr/seq_setunseen.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "seq_getnum.h" #include "seq_del.h" #include "seq_add.h" #include "h/utils.h" diff --git a/uip/flist.c b/uip/flist.c index 4435d2da..47b6922b 100644 --- a/uip/flist.c +++ b/uip/flist.c @@ -14,6 +14,7 @@ */ #include "h/mh.h" +#include "sbr/seq_getnum.h" #include "sbr/error.h" #include "h/utils.h" #include "h/done.h" diff --git a/uip/fmttest.c b/uip/fmttest.c index 4214ab1b..719214a6 100644 --- a/uip/fmttest.c +++ b/uip/fmttest.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/seq_getnum.h" #include "sbr/error.h" #include "h/fmt_scan.h" #include "h/fmt_compile.h" diff --git a/uip/refile.c b/uip/refile.c index 98df16a8..2e9da1c6 100644 --- a/uip/refile.c +++ b/uip/refile.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "sbr/seq_getnum.h" #include "sbr/seq_add.h" #include "sbr/arglist.h" #include "sbr/error.h" diff --git a/uip/scan.c b/uip/scan.c index 8a8a59b1..f39ef096 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/seq_getnum.h" #include "sbr/error.h" #include "h/fmt_scan.h" #include "h/scansbr.h" -- 2.48.1 From 1d3b1bec14ae6bd849053c9746e7da552bf539fa Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 22:37:16 +0000 Subject: [PATCH 10/16] seq_bits.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 1 - sbr/seq_bits.c | 1 + sbr/seq_bits.h | 7 +++++++ uip/mark.c | 1 + 5 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 sbr/seq_bits.h diff --git a/Makefile.am b/Makefile.am index 13b6d662..e2e4f81d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -376,6 +376,7 @@ noinst_HEADERS = \ sbr/mime_type.h \ sbr/read_line.h \ sbr/seq_add.h \ + sbr/seq_bits.h \ sbr/seq_del.h \ sbr/seq_getnum.h \ sbr/seq_print.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 3e7d8979..910b62cc 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -203,7 +203,6 @@ void ruserpass (const char *host, char **aname, char **apass, int flags); int remdir (char *); void scan_detect_mbox_style (FILE *); void scan_finished(void); -char *seq_bits (struct msgs *); char *seq_list (struct msgs *, char *); int seq_nameok (char *); diff --git a/sbr/seq_bits.c b/sbr/seq_bits.c index 7fd1b0a5..10f2acd9 100644 --- a/sbr/seq_bits.c +++ b/sbr/seq_bits.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_bits.h" char * diff --git a/sbr/seq_bits.h b/sbr/seq_bits.h new file mode 100644 index 00000000..fbd1ce72 --- /dev/null +++ b/sbr/seq_bits.h @@ -0,0 +1,7 @@ +/* seq_bits.h -- return the snprintb() string for a sequence + * + * This code is Copyright (c) 2017, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ + +char *seq_bits(struct msgs *); diff --git a/uip/mark.c b/uip/mark.c index d2f90571..eef54156 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -8,6 +8,7 @@ */ #include "h/mh.h" +#include "sbr/seq_bits.h" #include "sbr/seq_del.h" #include "sbr/seq_print.h" #include "sbr/seq_add.h" -- 2.48.1 From 865cc1bd7e146d8a3fe44ede30d834f7ab0c195c Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 22:47:58 +0000 Subject: [PATCH 11/16] seq_list.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 1 - sbr/seq_list.c | 1 + sbr/seq_list.h | 8 ++++++++ sbr/seq_print.c | 1 + sbr/seq_save.c | 1 + 6 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 sbr/seq_list.h diff --git a/Makefile.am b/Makefile.am index e2e4f81d..0b03fac7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -379,6 +379,7 @@ noinst_HEADERS = \ sbr/seq_bits.h \ sbr/seq_del.h \ sbr/seq_getnum.h \ + sbr/seq_list.h \ sbr/seq_print.h \ sbr/terminal.h \ sbr/unquote.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 910b62cc..4dd63f5c 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -203,7 +203,6 @@ void ruserpass (const char *host, char **aname, char **apass, int flags); int remdir (char *); void scan_detect_mbox_style (FILE *); void scan_finished(void); -char *seq_list (struct msgs *, char *); int seq_nameok (char *); /* diff --git a/sbr/seq_list.c b/sbr/seq_list.c index 5344510d..2ebf6dd6 100644 --- a/sbr/seq_list.c +++ b/sbr/seq_list.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "seq_list.h" #include "seq_getnum.h" #include "h/utils.h" diff --git a/sbr/seq_list.h b/sbr/seq_list.h new file mode 100644 index 00000000..2c93901e --- /dev/null +++ b/sbr/seq_list.h @@ -0,0 +1,8 @@ +/* seq_list.h -- Get all messages in a sequence and return them + * -- as a space separated list of message ranges. + * + * This code is Copyright (c) 2017, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ + +char *seq_list(struct msgs *, char *); diff --git a/sbr/seq_print.c b/sbr/seq_print.c index e37c0eae..4e4b9462 100644 --- a/sbr/seq_print.c +++ b/sbr/seq_print.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_list.h" #include "seq_getnum.h" #include "seq_print.h" diff --git a/sbr/seq_save.c b/sbr/seq_save.c index 5978dd73..e829a75f 100644 --- a/sbr/seq_save.c +++ b/sbr/seq_save.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "seq_list.h" #include "error.h" #include "h/signals.h" #include "lock_file.h" -- 2.48.1 From f9af1bc563cd2ead96ac6b5e4a22ae095f3d63f3 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 22:56:32 +0000 Subject: [PATCH 12/16] seq_nameok.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 1 - sbr/seq_add.c | 1 + sbr/seq_del.c | 1 + sbr/seq_nameok.c | 1 + sbr/seq_nameok.h | 7 +++++++ uip/pick.c | 1 + 7 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 sbr/seq_nameok.h diff --git a/Makefile.am b/Makefile.am index 0b03fac7..ab0bcd9d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -380,6 +380,7 @@ noinst_HEADERS = \ sbr/seq_del.h \ sbr/seq_getnum.h \ sbr/seq_list.h \ + sbr/seq_nameok.h \ sbr/seq_print.h \ sbr/terminal.h \ sbr/unquote.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 4dd63f5c..6f79c6da 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -203,7 +203,6 @@ void ruserpass (const char *host, char **aname, char **apass, int flags); int remdir (char *); void scan_detect_mbox_style (FILE *); void scan_finished(void); -int seq_nameok (char *); /* * Read the sequence files for the folder referenced in the given diff --git a/sbr/seq_add.c b/sbr/seq_add.c index baeb305f..9c27f302 100644 --- a/sbr/seq_add.c +++ b/sbr/seq_add.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_nameok.h" #include "seq_add.h" #include "error.h" diff --git a/sbr/seq_del.c b/sbr/seq_del.c index b4f5a527..4abd745d 100644 --- a/sbr/seq_del.c +++ b/sbr/seq_del.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_nameok.h" #include "error.h" diff --git a/sbr/seq_nameok.c b/sbr/seq_nameok.c index f537a71f..9333294d 100644 --- a/sbr/seq_nameok.c +++ b/sbr/seq_nameok.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "seq_nameok.h" #include "error.h" diff --git a/sbr/seq_nameok.h b/sbr/seq_nameok.h new file mode 100644 index 00000000..eda6c695 --- /dev/null +++ b/sbr/seq_nameok.h @@ -0,0 +1,7 @@ +/* seq_nameok.h -- check if a sequence name is ok + * + * This code is Copyright (c) 2017, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ + +int seq_nameok(char *); diff --git a/uip/pick.c b/uip/pick.c index b5a7cdd6..21ae8b36 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/seq_nameok.h" #include "sbr/seq_add.h" #include "sbr/error.h" #include "h/tws.h" -- 2.48.1 From 85158b5904b245542dc475445a6a478509389f8c Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 23:08:38 +0000 Subject: [PATCH 13/16] print_help.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 2 -- sbr/print_help.c | 1 + sbr/print_help.h | 9 +++++++++ sbr/utils.c | 1 + uip/ali.c | 1 + uip/anno.c | 1 + uip/ap.c | 1 + uip/burst.c | 1 + uip/comp.c | 1 + uip/dist.c | 1 + uip/dp.c | 1 + uip/flist.c | 1 + uip/fmtdump.c | 1 + uip/fmttest.c | 1 + uip/folder.c | 1 + uip/forw.c | 1 + uip/imaptest.c | 1 + uip/inc.c | 1 + uip/install-mh.c | 1 + uip/mark.c | 1 + uip/mhbuild.c | 1 + uip/mhfixmsg.c | 1 + uip/mhical.c | 1 + uip/mhlist.c | 1 + uip/mhlogin.c | 1 + uip/mhlsbr.c | 1 + uip/mhn.c | 1 + uip/mhparam.c | 1 + uip/mhpath.c | 1 + uip/mhshow.c | 1 + uip/mhstore.c | 1 + uip/mkstemp.c | 1 + uip/msgchk.c | 1 + uip/new.c | 1 + uip/packf.c | 1 + uip/pick.c | 1 + uip/post.c | 1 + uip/prompter.c | 1 + uip/rcvdist.c | 1 + uip/rcvpack.c | 1 + uip/rcvstore.c | 1 + uip/rcvtty.c | 1 + uip/refile.c | 1 + uip/repl.c | 1 + uip/rmf.c | 1 + uip/rmm.c | 1 + uip/scan.c | 1 + uip/send.c | 1 + uip/show.c | 1 + uip/slocal.c | 1 + uip/sortm.c | 1 + uip/viamail.c | 1 + uip/whatnowsbr.c | 1 + uip/whom.c | 1 + 55 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 sbr/print_help.h diff --git a/Makefile.am b/Makefile.am index ab0bcd9d..52332b0d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -374,6 +374,7 @@ noinst_HEADERS = \ sbr/makedir.h \ sbr/message_id.h \ sbr/mime_type.h \ + sbr/print_help.h \ sbr/read_line.h \ sbr/seq_add.h \ sbr/seq_bits.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 6f79c6da..bd68e35a 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -175,8 +175,6 @@ char *path(char *, int); int pidwait (pid_t, int); int pidstatus (int, FILE *, char *); char *pluspath(char *); -void print_help (char *, struct swit *, int); -void print_intro (FILE *, bool); void print_sw (const char *, const struct swit *, char *, FILE *); void print_version (char *); void push (void); diff --git a/sbr/print_help.c b/sbr/print_help.c index 81b1ab4b..97d140ca 100644 --- a/sbr/print_help.c +++ b/sbr/print_help.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "print_help.h" void diff --git a/sbr/print_help.h b/sbr/print_help.h new file mode 100644 index 00000000..cf9ba9fe --- /dev/null +++ b/sbr/print_help.h @@ -0,0 +1,9 @@ +/* print_help.h -- print a help message, and possibly the + * -- profile/context entries for this command + * + * This code is Copyright (c) 2017, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ + +void print_help(char *, struct swit *, int); +void print_intro(FILE *, bool); diff --git a/sbr/utils.c b/sbr/utils.c index c385b45b..03d92044 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "print_help.h" #include "error.h" #include "h/utils.h" #include "h/signals.h" diff --git a/uip/ali.c b/uip/ali.c index 40ad1b8c..6e0f39c1 100644 --- a/uip/ali.c +++ b/uip/ali.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/addrsbr.h" #include "h/aliasbr.h" diff --git a/uip/anno.c b/uip/anno.c index 3a874380..97cba8a7 100644 --- a/uip/anno.c +++ b/uip/anno.c @@ -42,6 +42,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/utils.h" #include "h/done.h" diff --git a/uip/ap.c b/uip/ap.c index 212a2d12..e33a434f 100644 --- a/uip/ap.c +++ b/uip/ap.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/addrsbr.h" #include "h/fmt_scan.h" diff --git a/uip/burst.c b/uip/burst.c index 84ab9392..deee946a 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/utils.h" #include "h/mhparse.h" diff --git a/uip/comp.c b/uip/comp.c index 0d597851..aadc17ed 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/utils.h" #include "h/fmt_scan.h" diff --git a/uip/dist.c b/uip/dist.c index 4bfec7d1..db10b5d0 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/utils.h" #include "sbr/m_maildir.h" diff --git a/uip/dp.c b/uip/dp.c index 9339b279..0b3a2399 100644 --- a/uip/dp.c +++ b/uip/dp.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/done.h" #include "h/utils.h" diff --git a/uip/flist.c b/uip/flist.c index 47b6922b..0b258136 100644 --- a/uip/flist.c +++ b/uip/flist.c @@ -14,6 +14,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/seq_getnum.h" #include "sbr/error.h" #include "h/utils.h" diff --git a/uip/fmtdump.c b/uip/fmtdump.c index e8c3aa2a..c3302669 100644 --- a/uip/fmtdump.c +++ b/uip/fmtdump.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/fmt_scan.h" #include "h/fmt_compile.h" diff --git a/uip/fmttest.c b/uip/fmttest.c index 719214a6..5d19d09d 100644 --- a/uip/fmttest.c +++ b/uip/fmttest.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/seq_getnum.h" #include "sbr/error.h" #include "h/fmt_scan.h" diff --git a/uip/folder.c b/uip/folder.c index 60e8c19a..6eafff8d 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -8,6 +8,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/crawl_folders.h" #include "h/done.h" diff --git a/uip/forw.c b/uip/forw.c index 80fa7f49..a0dbf913 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/arglist.h" #include "sbr/error.h" #include diff --git a/uip/imaptest.c b/uip/imaptest.c index e624bc4d..db6336e8 100644 --- a/uip/imaptest.c +++ b/uip/imaptest.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/utils.h" #include "h/netsec.h" diff --git a/uip/inc.c b/uip/inc.c index 90a93528..0ce7d7c7 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -31,6 +31,7 @@ #endif #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/utils.h" #include diff --git a/uip/install-mh.c b/uip/install-mh.c index 776c30d4..8d70c0a0 100644 --- a/uip/install-mh.c +++ b/uip/install-mh.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/done.h" #include "h/utils.h" diff --git a/uip/mark.c b/uip/mark.c index eef54156..11ffc109 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -8,6 +8,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/seq_bits.h" #include "sbr/seq_del.h" #include "sbr/seq_print.h" diff --git a/uip/mhbuild.c b/uip/mhbuild.c index 00156705..0c17573d 100644 --- a/uip/mhbuild.c +++ b/uip/mhbuild.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include #include "h/md5.h" diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index 4cd9d05a..719e879a 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/fmt_scan.h" #include "h/mime.h" diff --git a/uip/mhical.c b/uip/mhical.c index 71201102..7aa580ab 100644 --- a/uip/mhical.c +++ b/uip/mhical.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/icalendar.h" #include "sbr/icalparse.h" diff --git a/uip/mhlist.c b/uip/mhlist.c index 974397d2..0751fedc 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include #include "h/signals.h" diff --git a/uip/mhlogin.c b/uip/mhlogin.c index 84b6205c..8179a21f 100644 --- a/uip/mhlogin.c +++ b/uip/mhlogin.c @@ -10,6 +10,7 @@ #include #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/done.h" #include "h/utils.h" diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index 4a54f710..cb907261 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/arglist.h" #include "sbr/error.h" #include "h/signals.h" diff --git a/uip/mhn.c b/uip/mhn.c index 454c4348..7afdd85a 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include #include "h/signals.h" diff --git a/uip/mhparam.c b/uip/mhparam.c index 4ba2e4ed..d31c825d 100644 --- a/uip/mhparam.c +++ b/uip/mhparam.c @@ -9,6 +9,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/mts.h" #include "h/done.h" diff --git a/uip/mhpath.c b/uip/mhpath.c index 2450089f..5904de83 100644 --- a/uip/mhpath.c +++ b/uip/mhpath.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/done.h" #include "h/utils.h" diff --git a/uip/mhshow.c b/uip/mhshow.c index 730ae95d..04f3efad 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include #include "h/signals.h" diff --git a/uip/mhstore.c b/uip/mhstore.c index e7ad1af9..a6adb878 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include #include "h/signals.h" diff --git a/uip/mkstemp.c b/uip/mkstemp.c index e49f999d..13ebcd27 100644 --- a/uip/mkstemp.c +++ b/uip/mkstemp.c @@ -120,6 +120,7 @@ build_template(const char *directory, const char *prefix, const char *suffix) #if NMH #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/done.h" #include "h/utils.h" diff --git a/uip/msgchk.c b/uip/msgchk.c index 10feb3cb..80772d2e 100644 --- a/uip/msgchk.c +++ b/uip/msgchk.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/mts.h" #include "h/tws.h" diff --git a/uip/new.c b/uip/new.c index 68a7a16e..2fa48378 100644 --- a/uip/new.c +++ b/uip/new.c @@ -12,6 +12,7 @@ #include #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/crawl_folders.h" #include "h/done.h" diff --git a/uip/packf.c b/uip/packf.c index 8d71686e..ed314c03 100644 --- a/uip/packf.c +++ b/uip/packf.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include #include "h/dropsbr.h" diff --git a/uip/pick.c b/uip/pick.c index 21ae8b36..0f2ce2a3 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/seq_nameok.h" #include "sbr/seq_add.h" #include "sbr/error.h" diff --git a/uip/post.c b/uip/post.c index 6fbccdf9..63e53028 100644 --- a/uip/post.c +++ b/uip/post.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/arglist.h" #include "sbr/error.h" #include diff --git a/uip/prompter.c b/uip/prompter.c index c13a3b8f..0cd6fc26 100644 --- a/uip/prompter.c +++ b/uip/prompter.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include #include "h/signals.h" diff --git a/uip/rcvdist.c b/uip/rcvdist.c index 9f52a4b2..2de2153e 100644 --- a/uip/rcvdist.c +++ b/uip/rcvdist.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/arglist.h" #include "sbr/error.h" #include "h/fmt_scan.h" diff --git a/uip/rcvpack.c b/uip/rcvpack.c index f63a89d0..58fe4040 100644 --- a/uip/rcvpack.c +++ b/uip/rcvpack.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/dropsbr.h" #include "h/rcvmail.h" diff --git a/uip/rcvstore.c b/uip/rcvstore.c index 9c609c23..df1c1e89 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/seq_add.h" #include "sbr/error.h" #include diff --git a/uip/rcvtty.c b/uip/rcvtty.c index 6edcaf8f..50a656ec 100644 --- a/uip/rcvtty.c +++ b/uip/rcvtty.c @@ -11,6 +11,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/signals.h" #include diff --git a/uip/refile.c b/uip/refile.c index 2e9da1c6..b0deb9ee 100644 --- a/uip/refile.c +++ b/uip/refile.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/seq_getnum.h" #include "sbr/seq_add.h" #include "sbr/arglist.h" diff --git a/uip/repl.c b/uip/repl.c index 8fc058d8..cfb81a6d 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/mime.h" #include "h/done.h" diff --git a/uip/rmf.c b/uip/rmf.c index 585fa135..f00a7bca 100644 --- a/uip/rmf.c +++ b/uip/rmf.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/done.h" #include "h/utils.h" diff --git a/uip/rmm.c b/uip/rmm.c index 40bb97da..6f52a08b 100644 --- a/uip/rmm.c +++ b/uip/rmm.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/done.h" #include "h/utils.h" diff --git a/uip/scan.c b/uip/scan.c index f39ef096..024c834b 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/seq_getnum.h" #include "sbr/error.h" #include "h/fmt_scan.h" diff --git a/uip/send.c b/uip/send.c index 3d559ff5..d4cfd2e9 100644 --- a/uip/send.c +++ b/uip/send.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/arglist.h" #include "sbr/error.h" #include diff --git a/uip/show.c b/uip/show.c index 7573432e..9229f51e 100644 --- a/uip/show.c +++ b/uip/show.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/arglist.h" #include "sbr/error.h" #include "h/mime.h" diff --git a/uip/slocal.c b/uip/slocal.c index 6f7460d6..f60e66fe 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -20,6 +20,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/dropsbr.h" #include "h/rcvmail.h" diff --git a/uip/sortm.c b/uip/sortm.c index 62baa8ed..f64e7a8e 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/tws.h" #include "h/done.h" diff --git a/uip/viamail.c b/uip/viamail.c index 37066a4f..045f43fe 100644 --- a/uip/viamail.c +++ b/uip/viamail.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/arglist.h" #include "sbr/error.h" #include diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 07bd22bc..67a5f3cf 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -38,6 +38,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/arglist.h" #include "sbr/error.h" #include diff --git a/uip/whom.c b/uip/whom.c index ee818581..f1f38fe1 100644 --- a/uip/whom.c +++ b/uip/whom.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_help.h" #include "sbr/error.h" #include "h/done.h" #include "h/utils.h" -- 2.48.1 From b3d4a4452c332fc3550db3fbdf9e02027b41e985 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 23:16:21 +0000 Subject: [PATCH 14/16] print_sw.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 1 - sbr/ambigsw.c | 1 + sbr/print_help.c | 1 + sbr/print_sw.c | 1 + sbr/print_sw.h | 7 +++++++ sbr/read_switch_multiword.c | 1 + sbr/read_switch_multiword_via_readline.c | 1 + 8 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 sbr/print_sw.h diff --git a/Makefile.am b/Makefile.am index 52332b0d..3f32273f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -375,6 +375,7 @@ noinst_HEADERS = \ sbr/message_id.h \ sbr/mime_type.h \ sbr/print_help.h \ + sbr/print_sw.h \ sbr/read_line.h \ sbr/seq_add.h \ sbr/seq_bits.h \ diff --git a/h/prototypes.h b/h/prototypes.h index bd68e35a..1cbc6ea1 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -175,7 +175,6 @@ char *path(char *, int); int pidwait (pid_t, int); int pidstatus (int, FILE *, char *); char *pluspath(char *); -void print_sw (const char *, const struct swit *, char *, FILE *); void print_version (char *); void push (void); char *r1bindex(char *, int) PURE; diff --git a/sbr/ambigsw.c b/sbr/ambigsw.c index d951af45..e36bb11a 100644 --- a/sbr/ambigsw.c +++ b/sbr/ambigsw.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "print_sw.h" #include "error.h" diff --git a/sbr/print_help.c b/sbr/print_help.c index 97d140ca..15d84eb2 100644 --- a/sbr/print_help.c +++ b/sbr/print_help.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "print_sw.h" #include "print_help.h" diff --git a/sbr/print_sw.c b/sbr/print_sw.c index 42df6d22..7e11a92d 100644 --- a/sbr/print_sw.c +++ b/sbr/print_sw.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "print_sw.h" void diff --git a/sbr/print_sw.h b/sbr/print_sw.h new file mode 100644 index 00000000..3a5ceb0a --- /dev/null +++ b/sbr/print_sw.h @@ -0,0 +1,7 @@ +/* print_sw.h -- print switches + * + * This code is Copyright (c) 2017, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ + +void print_sw(const char *, const struct swit *, char *, FILE *); diff --git a/sbr/read_switch_multiword.c b/sbr/read_switch_multiword.c index af44432c..d66bd254 100644 --- a/sbr/read_switch_multiword.c +++ b/sbr/read_switch_multiword.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "print_sw.h" #include "h/signals.h" #include diff --git a/sbr/read_switch_multiword_via_readline.c b/sbr/read_switch_multiword_via_readline.c index a2c36218..7fad5354 100644 --- a/sbr/read_switch_multiword_via_readline.c +++ b/sbr/read_switch_multiword_via_readline.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "print_sw.h" #ifdef READLINE_SUPPORT #include -- 2.48.1 From 4f7b47e6dc5ec7b998cf1fc1621c6f073deb56dd Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Thu, 2 Nov 2017 23:28:08 +0000 Subject: [PATCH 15/16] print_version.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 1 - sbr/print_version.c | 1 + sbr/print_version.h | 7 +++++++ uip/ali.c | 1 + uip/anno.c | 1 + uip/ap.c | 1 + uip/burst.c | 1 + uip/comp.c | 1 + uip/dist.c | 1 + uip/dp.c | 1 + uip/flist.c | 1 + uip/fmtdump.c | 1 + uip/fmttest.c | 1 + uip/folder.c | 1 + uip/forw.c | 1 + uip/imaptest.c | 1 + uip/inc.c | 1 + uip/install-mh.c | 1 + uip/mark.c | 1 + uip/mhbuild.c | 1 + uip/mhfixmsg.c | 1 + uip/mhical.c | 1 + uip/mhlist.c | 1 + uip/mhlogin.c | 1 + uip/mhlsbr.c | 1 + uip/mhn.c | 1 + uip/mhparam.c | 1 + uip/mhpath.c | 1 + uip/mhshow.c | 1 + uip/mhstore.c | 1 + uip/mkstemp.c | 1 + uip/msgchk.c | 1 + uip/new.c | 1 + uip/packf.c | 1 + uip/pick.c | 1 + uip/post.c | 1 + uip/prompter.c | 1 + uip/rcvdist.c | 1 + uip/rcvpack.c | 1 + uip/rcvstore.c | 1 + uip/rcvtty.c | 1 + uip/refile.c | 1 + uip/repl.c | 1 + uip/rmf.c | 1 + uip/rmm.c | 1 + uip/scan.c | 1 + uip/send.c | 1 + uip/show.c | 1 + uip/slocal.c | 1 + uip/sortm.c | 1 + uip/viamail.c | 1 + uip/whatnowsbr.c | 1 + uip/whom.c | 1 + 54 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 sbr/print_version.h diff --git a/Makefile.am b/Makefile.am index 3f32273f..6a850119 100644 --- a/Makefile.am +++ b/Makefile.am @@ -376,6 +376,7 @@ noinst_HEADERS = \ sbr/mime_type.h \ sbr/print_help.h \ sbr/print_sw.h \ + sbr/print_version.h \ sbr/read_line.h \ sbr/seq_add.h \ sbr/seq_bits.h \ diff --git a/h/prototypes.h b/h/prototypes.h index 1cbc6ea1..f0d1c555 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -175,7 +175,6 @@ char *path(char *, int); int pidwait (pid_t, int); int pidstatus (int, FILE *, char *); char *pluspath(char *); -void print_version (char *); void push (void); char *r1bindex(char *, int) PURE; void readconfig (struct node **, FILE *, const char *, int); diff --git a/sbr/print_version.c b/sbr/print_version.c index 0b6d9fc4..b8c9a29f 100644 --- a/sbr/print_version.c +++ b/sbr/print_version.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "print_version.h" void diff --git a/sbr/print_version.h b/sbr/print_version.h new file mode 100644 index 00000000..f2e3212f --- /dev/null +++ b/sbr/print_version.h @@ -0,0 +1,7 @@ +/* print_version.h -- print a version string + * + * This code is Copyright (c) 2017, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ + +void print_version(char *); diff --git a/uip/ali.c b/uip/ali.c index 6e0f39c1..9853d668 100644 --- a/uip/ali.c +++ b/uip/ali.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/addrsbr.h" diff --git a/uip/anno.c b/uip/anno.c index 97cba8a7..3b0302e1 100644 --- a/uip/anno.c +++ b/uip/anno.c @@ -42,6 +42,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/utils.h" diff --git a/uip/ap.c b/uip/ap.c index e33a434f..cb31fdbd 100644 --- a/uip/ap.c +++ b/uip/ap.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/addrsbr.h" diff --git a/uip/burst.c b/uip/burst.c index deee946a..b0346160 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/utils.h" diff --git a/uip/comp.c b/uip/comp.c index aadc17ed..00330e11 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/utils.h" diff --git a/uip/dist.c b/uip/dist.c index db10b5d0..552a9a46 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/utils.h" diff --git a/uip/dp.c b/uip/dp.c index 0b3a2399..ac6fb97b 100644 --- a/uip/dp.c +++ b/uip/dp.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/done.h" diff --git a/uip/flist.c b/uip/flist.c index 0b258136..f2486f51 100644 --- a/uip/flist.c +++ b/uip/flist.c @@ -14,6 +14,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/seq_getnum.h" #include "sbr/error.h" diff --git a/uip/fmtdump.c b/uip/fmtdump.c index c3302669..4898c702 100644 --- a/uip/fmtdump.c +++ b/uip/fmtdump.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/fmt_scan.h" diff --git a/uip/fmttest.c b/uip/fmttest.c index 5d19d09d..bf55a911 100644 --- a/uip/fmttest.c +++ b/uip/fmttest.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/seq_getnum.h" #include "sbr/error.h" diff --git a/uip/folder.c b/uip/folder.c index 6eafff8d..1c8ca2dd 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -8,6 +8,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/crawl_folders.h" diff --git a/uip/forw.c b/uip/forw.c index a0dbf913..1e875e82 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/arglist.h" #include "sbr/error.h" diff --git a/uip/imaptest.c b/uip/imaptest.c index db6336e8..be276fb1 100644 --- a/uip/imaptest.c +++ b/uip/imaptest.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/utils.h" diff --git a/uip/inc.c b/uip/inc.c index 0ce7d7c7..d54ae791 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -31,6 +31,7 @@ #endif #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/utils.h" diff --git a/uip/install-mh.c b/uip/install-mh.c index 8d70c0a0..fc104fa7 100644 --- a/uip/install-mh.c +++ b/uip/install-mh.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/done.h" diff --git a/uip/mark.c b/uip/mark.c index 11ffc109..4709d7e4 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -8,6 +8,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/seq_bits.h" #include "sbr/seq_del.h" diff --git a/uip/mhbuild.c b/uip/mhbuild.c index 0c17573d..24019018 100644 --- a/uip/mhbuild.c +++ b/uip/mhbuild.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index 719e879a..2ccfb286 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/fmt_scan.h" diff --git a/uip/mhical.c b/uip/mhical.c index 7aa580ab..8609ee57 100644 --- a/uip/mhical.c +++ b/uip/mhical.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/icalendar.h" diff --git a/uip/mhlist.c b/uip/mhlist.c index 0751fedc..09287395 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include diff --git a/uip/mhlogin.c b/uip/mhlogin.c index 8179a21f..1118c8bc 100644 --- a/uip/mhlogin.c +++ b/uip/mhlogin.c @@ -10,6 +10,7 @@ #include #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/done.h" diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index cb907261..7deb9819 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/arglist.h" #include "sbr/error.h" diff --git a/uip/mhn.c b/uip/mhn.c index 7afdd85a..c333e064 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include diff --git a/uip/mhparam.c b/uip/mhparam.c index d31c825d..6db9b3ad 100644 --- a/uip/mhparam.c +++ b/uip/mhparam.c @@ -9,6 +9,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/mts.h" diff --git a/uip/mhpath.c b/uip/mhpath.c index 5904de83..305b4521 100644 --- a/uip/mhpath.c +++ b/uip/mhpath.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/done.h" diff --git a/uip/mhshow.c b/uip/mhshow.c index 04f3efad..ca540e60 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include diff --git a/uip/mhstore.c b/uip/mhstore.c index a6adb878..92cff1b9 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include diff --git a/uip/mkstemp.c b/uip/mkstemp.c index 13ebcd27..e17ff1c3 100644 --- a/uip/mkstemp.c +++ b/uip/mkstemp.c @@ -120,6 +120,7 @@ build_template(const char *directory, const char *prefix, const char *suffix) #if NMH #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/done.h" diff --git a/uip/msgchk.c b/uip/msgchk.c index 80772d2e..12b5ee2d 100644 --- a/uip/msgchk.c +++ b/uip/msgchk.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/mts.h" diff --git a/uip/new.c b/uip/new.c index 2fa48378..af333a28 100644 --- a/uip/new.c +++ b/uip/new.c @@ -12,6 +12,7 @@ #include #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/crawl_folders.h" diff --git a/uip/packf.c b/uip/packf.c index ed314c03..376ed71d 100644 --- a/uip/packf.c +++ b/uip/packf.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include diff --git a/uip/pick.c b/uip/pick.c index 0f2ce2a3..942aa677 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/seq_nameok.h" #include "sbr/seq_add.h" diff --git a/uip/post.c b/uip/post.c index 63e53028..18e1a79e 100644 --- a/uip/post.c +++ b/uip/post.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/arglist.h" #include "sbr/error.h" diff --git a/uip/prompter.c b/uip/prompter.c index 0cd6fc26..5ffb10cc 100644 --- a/uip/prompter.c +++ b/uip/prompter.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include diff --git a/uip/rcvdist.c b/uip/rcvdist.c index 2de2153e..cbd2fdd5 100644 --- a/uip/rcvdist.c +++ b/uip/rcvdist.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/arglist.h" #include "sbr/error.h" diff --git a/uip/rcvpack.c b/uip/rcvpack.c index 58fe4040..0df80379 100644 --- a/uip/rcvpack.c +++ b/uip/rcvpack.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/dropsbr.h" diff --git a/uip/rcvstore.c b/uip/rcvstore.c index df1c1e89..0cae6014 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/seq_add.h" #include "sbr/error.h" diff --git a/uip/rcvtty.c b/uip/rcvtty.c index 50a656ec..530b5b5f 100644 --- a/uip/rcvtty.c +++ b/uip/rcvtty.c @@ -11,6 +11,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/signals.h" diff --git a/uip/refile.c b/uip/refile.c index b0deb9ee..6daa7f25 100644 --- a/uip/refile.c +++ b/uip/refile.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/seq_getnum.h" #include "sbr/seq_add.h" diff --git a/uip/repl.c b/uip/repl.c index cfb81a6d..72152bc8 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/mime.h" diff --git a/uip/rmf.c b/uip/rmf.c index f00a7bca..acf71e74 100644 --- a/uip/rmf.c +++ b/uip/rmf.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/done.h" diff --git a/uip/rmm.c b/uip/rmm.c index 6f52a08b..766fd722 100644 --- a/uip/rmm.c +++ b/uip/rmm.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/done.h" diff --git a/uip/scan.c b/uip/scan.c index 024c834b..e2cd81db 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/seq_getnum.h" #include "sbr/error.h" diff --git a/uip/send.c b/uip/send.c index d4cfd2e9..51286889 100644 --- a/uip/send.c +++ b/uip/send.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/arglist.h" #include "sbr/error.h" diff --git a/uip/show.c b/uip/show.c index 9229f51e..08ddcf14 100644 --- a/uip/show.c +++ b/uip/show.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/arglist.h" #include "sbr/error.h" diff --git a/uip/slocal.c b/uip/slocal.c index f60e66fe..e773b134 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -20,6 +20,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/dropsbr.h" diff --git a/uip/sortm.c b/uip/sortm.c index f64e7a8e..7380aa65 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/tws.h" diff --git a/uip/viamail.c b/uip/viamail.c index 045f43fe..abe5d166 100644 --- a/uip/viamail.c +++ b/uip/viamail.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/arglist.h" #include "sbr/error.h" diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 67a5f3cf..2d878ec4 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -38,6 +38,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/arglist.h" #include "sbr/error.h" diff --git a/uip/whom.c b/uip/whom.c index f1f38fe1..1a8c7ad8 100644 --- a/uip/whom.c +++ b/uip/whom.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" #include "h/done.h" -- 2.48.1 From 6345e60c392bbf92b3d7ca2bba473f9da5c073ff Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Fri, 3 Nov 2017 00:07:21 +0000 Subject: [PATCH 16/16] path.c: Move interface to own file. --- Makefile.am | 1 + h/prototypes.h | 2 -- sbr/context_read.c | 1 + sbr/m_draft.c | 1 + sbr/m_maildir.c | 1 + sbr/path.c | 1 + sbr/path.h | 8 ++++++++ uip/anno.c | 1 + uip/burst.c | 1 + uip/comp.c | 1 + uip/dist.c | 1 + uip/flist.c | 1 + uip/fmttest.c | 1 + uip/folder.c | 1 + uip/forw.c | 1 + uip/inc.c | 1 + uip/install-mh.c | 1 + uip/mark.c | 1 + uip/mhbuild.c | 1 + uip/mhbuildsbr.c | 1 + uip/mhfixmsg.c | 1 + uip/mhical.c | 1 + uip/mhlist.c | 1 + uip/mhn.c | 1 + uip/mhpath.c | 1 + uip/mhshow.c | 1 + uip/mhstore.c | 1 + uip/mhstoresbr.c | 1 + uip/packf.c | 1 + uip/pick.c | 1 + uip/rcvstore.c | 1 + uip/refile.c | 1 + uip/repl.c | 1 + uip/rmf.c | 1 + uip/rmm.c | 1 + uip/scan.c | 1 + uip/send.c | 1 + uip/show.c | 1 + uip/sortm.c | 1 + uip/whatnowsbr.c | 1 + uip/whom.c | 1 + 41 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 sbr/path.h diff --git a/Makefile.am b/Makefile.am index 6a850119..323abac5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -374,6 +374,7 @@ noinst_HEADERS = \ sbr/makedir.h \ sbr/message_id.h \ sbr/mime_type.h \ + sbr/path.h \ sbr/print_help.h \ sbr/print_sw.h \ sbr/print_version.h \ diff --git a/h/prototypes.h b/h/prototypes.h index f0d1c555..4cf3a44b 100644 --- a/h/prototypes.h +++ b/h/prototypes.h @@ -171,10 +171,8 @@ void m_unknown(m_getfld_state_t *, FILE *); void m_unknown2(m_getfld_state_t *); char *nmh_getpass(const char *); -char *path(char *, int); int pidwait (pid_t, int); int pidstatus (int, FILE *, char *); -char *pluspath(char *); void push (void); char *r1bindex(char *, int) PURE; void readconfig (struct node **, FILE *, const char *, int); diff --git a/sbr/context_read.c b/sbr/context_read.c index 97bf1404..acee3949 100644 --- a/sbr/context_read.c +++ b/sbr/context_read.c @@ -22,6 +22,7 @@ */ #include "h/mh.h" +#include "path.h" #include "error.h" #include "lock_file.h" #include "m_maildir.h" diff --git a/sbr/m_draft.c b/sbr/m_draft.c index 7fdd1c16..e9cffa18 100644 --- a/sbr/m_draft.c +++ b/sbr/m_draft.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "path.h" #include "error.h" #include "h/utils.h" #include "m_maildir.h" diff --git a/sbr/m_maildir.c b/sbr/m_maildir.c index 8be011d5..75c6baf2 100644 --- a/sbr/m_maildir.c +++ b/sbr/m_maildir.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "path.h" #include "h/utils.h" #include "m_maildir.h" diff --git a/sbr/path.c b/sbr/path.c index 278a101f..d425dc8b 100644 --- a/sbr/path.c +++ b/sbr/path.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "path.h" #include "h/utils.h" #include "m_maildir.h" diff --git a/sbr/path.h b/sbr/path.h new file mode 100644 index 00000000..d906cb84 --- /dev/null +++ b/sbr/path.h @@ -0,0 +1,8 @@ +/* path.h -- return a pathname + * + * This code is Copyright (c) 2017, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ + +char *pluspath(char *); +char *path(char *, int); diff --git a/uip/anno.c b/uip/anno.c index 3b0302e1..61d07dbd 100644 --- a/uip/anno.c +++ b/uip/anno.c @@ -42,6 +42,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/burst.c b/uip/burst.c index b0346160..aab18141 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/comp.c b/uip/comp.c index 00330e11..9c151cf9 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/dist.c b/uip/dist.c index 552a9a46..294e4f24 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/flist.c b/uip/flist.c index f2486f51..c430335c 100644 --- a/uip/flist.c +++ b/uip/flist.c @@ -14,6 +14,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/seq_getnum.h" diff --git a/uip/fmttest.c b/uip/fmttest.c index bf55a911..e2189645 100644 --- a/uip/fmttest.c +++ b/uip/fmttest.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/seq_getnum.h" diff --git a/uip/folder.c b/uip/folder.c index 1c8ca2dd..94648293 100644 --- a/uip/folder.c +++ b/uip/folder.c @@ -8,6 +8,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/forw.c b/uip/forw.c index 1e875e82..afca66a3 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/arglist.h" diff --git a/uip/inc.c b/uip/inc.c index d54ae791..da3eb96d 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -31,6 +31,7 @@ #endif #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/install-mh.c b/uip/install-mh.c index fc104fa7..9e7cd3db 100644 --- a/uip/install-mh.c +++ b/uip/install-mh.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/mark.c b/uip/mark.c index 4709d7e4..7bafbda8 100644 --- a/uip/mark.c +++ b/uip/mark.c @@ -8,6 +8,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/seq_bits.h" diff --git a/uip/mhbuild.c b/uip/mhbuild.c index 24019018..09c8efec 100644 --- a/uip/mhbuild.c +++ b/uip/mhbuild.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/mhbuildsbr.c b/uip/mhbuildsbr.c index 2b3f9a0f..d40d291a 100644 --- a/uip/mhbuildsbr.c +++ b/uip/mhbuildsbr.c @@ -14,6 +14,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/error.h" #include #include "h/md5.h" diff --git a/uip/mhfixmsg.c b/uip/mhfixmsg.c index 2ccfb286..d5f9ab0d 100644 --- a/uip/mhfixmsg.c +++ b/uip/mhfixmsg.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/mhical.c b/uip/mhical.c index 8609ee57..402d5ad9 100644 --- a/uip/mhical.c +++ b/uip/mhical.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/mhlist.c b/uip/mhlist.c index 09287395..80878234 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/mhn.c b/uip/mhn.c index c333e064..d2e7d9de 100644 --- a/uip/mhn.c +++ b/uip/mhn.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/mhpath.c b/uip/mhpath.c index 305b4521..95a9d755 100644 --- a/uip/mhpath.c +++ b/uip/mhpath.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/mhshow.c b/uip/mhshow.c index ca540e60..1f53a2b6 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/mhstore.c b/uip/mhstore.c index 92cff1b9..7285e5f8 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/mhstoresbr.c b/uip/mhstoresbr.c index 0644753c..5d995492 100644 --- a/uip/mhstoresbr.c +++ b/uip/mhstoresbr.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/error.h" #include #include "h/md5.h" diff --git a/uip/packf.c b/uip/packf.c index 376ed71d..6b092142 100644 --- a/uip/packf.c +++ b/uip/packf.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/pick.c b/uip/pick.c index 942aa677..5939da17 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/seq_nameok.h" diff --git a/uip/rcvstore.c b/uip/rcvstore.c index 0cae6014..1b14119a 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/seq_add.h" diff --git a/uip/refile.c b/uip/refile.c index 6daa7f25..8637ada3 100644 --- a/uip/refile.c +++ b/uip/refile.c @@ -7,6 +7,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/seq_getnum.h" diff --git a/uip/repl.c b/uip/repl.c index 72152bc8..0bd33b83 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/rmf.c b/uip/rmf.c index acf71e74..eaa01b71 100644 --- a/uip/rmf.c +++ b/uip/rmf.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/rmm.c b/uip/rmm.c index 766fd722..f000fb7c 100644 --- a/uip/rmm.c +++ b/uip/rmm.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/scan.c b/uip/scan.c index e2cd81db..30b8f9e8 100644 --- a/uip/scan.c +++ b/uip/scan.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/seq_getnum.h" diff --git a/uip/send.c b/uip/send.c index 51286889..1467be89 100644 --- a/uip/send.c +++ b/uip/send.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/arglist.h" diff --git a/uip/show.c b/uip/show.c index 08ddcf14..bc09bfad 100644 --- a/uip/show.c +++ b/uip/show.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/arglist.h" diff --git a/uip/sortm.c b/uip/sortm.c index 7380aa65..8013c055 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 2d878ec4..857d1792 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -38,6 +38,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/arglist.h" diff --git a/uip/whom.c b/uip/whom.c index 1a8c7ad8..d7bd2cac 100644 --- a/uip/whom.c +++ b/uip/whom.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "sbr/path.h" #include "sbr/print_version.h" #include "sbr/print_help.h" #include "sbr/error.h" -- 2.48.1