Skip to content

Commit

Permalink
Add config.h to the top of every C file that could possibly want it.
Browse files Browse the repository at this point in the history
Remove it from mutt.h
  • Loading branch information
bcully committed Feb 3, 2005
1 parent 8f5e758 commit 4caffc1
Show file tree
Hide file tree
Showing 111 changed files with 395 additions and 26 deletions.
4 changes: 4 additions & 0 deletions account.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

/* remote host account manipulation (POP/IMAP) */

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "account.h"
#include "url.h"
Expand Down
4 changes: 4 additions & 0 deletions addrbook.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "mutt_menu.h"
#include "mapping.h"
Expand Down
4 changes: 4 additions & 0 deletions alias.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "mutt_regex.h"
#include "mutt_curses.h"
Expand Down
4 changes: 4 additions & 0 deletions ascii.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
* locale-insensitive.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include <stdio.h>
#include <stdlib.h>
#include "ascii.h"
Expand Down
4 changes: 4 additions & 0 deletions attach.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "mutt_menu.h"
#include "mutt_curses.h"
Expand Down
4 changes: 4 additions & 0 deletions base64.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
*
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "mime.h"

Expand Down
4 changes: 4 additions & 0 deletions browser.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
Expand Down
4 changes: 4 additions & 0 deletions buffy.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "buffy.h"
#include "mailbox.h"
Expand Down
3 changes: 3 additions & 0 deletions charset.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
* Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include <string.h>
#include <stdio.h>
Expand Down
4 changes: 4 additions & 0 deletions color.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "mutt_curses.h"
#include "mapping.h"
Expand Down
4 changes: 4 additions & 0 deletions commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
Expand Down
4 changes: 4 additions & 0 deletions complete.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#ifdef USE_IMAP
#include "mailbox.h"
Expand Down
4 changes: 4 additions & 0 deletions compose.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "mutt_curses.h"
#include "mutt_idna.h"
Expand Down
4 changes: 4 additions & 0 deletions copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "mailbox.h"
#include "mx.h"
Expand Down
4 changes: 3 additions & 1 deletion crypt-gpgme.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#include <config.h>
#if HAVE_CONFIG_H
# include "config.h"
#endif

#ifdef CRYPT_BACKEND_GPGME

Expand Down
4 changes: 4 additions & 0 deletions crypt-mod-pgp-classic.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
This is a crytpo module wrapping the classic pgp code.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "crypt-mod.h"
#include "pgp.h"

Expand Down
4 changes: 3 additions & 1 deletion crypt-mod-pgp-gpgme.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
This is a crytpo module wrapping the gpgme based pgp code.
*/

#include <config.h>
#if HAVE_CONFIG_H
# include "config.h"
#endif

#ifdef CRYPT_BACKEND_GPGME

Expand Down
4 changes: 4 additions & 0 deletions crypt-mod-smime-classic.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
This is a crytpo module wrapping the classic smime code.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "crypt-mod.h"
#include "smime.h"

Expand Down
4 changes: 3 additions & 1 deletion crypt-mod-smime-gpgme.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
This is a crytpo module wrapping the gpgme based smime code.
*/

#include <config.h>
#if HAVE_CONFIG_H
# include "config.h"
#endif

#ifdef CRYPT_BACKEND_GPGME

Expand Down
4 changes: 4 additions & 0 deletions crypt-mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "crypt-mod.h"

/* A type an a variable to keep track of registered crypto modules. */
Expand Down
3 changes: 3 additions & 0 deletions crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "mutt_curses.h"
Expand Down
4 changes: 4 additions & 0 deletions cryptglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
contained in this file and the functions implemented by the crypto
modules. */

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "mutt_crypt.h"

Expand Down
4 changes: 4 additions & 0 deletions curs_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "mutt_menu.h"
#include "mutt_curses.h"
Expand Down
4 changes: 4 additions & 0 deletions curs_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
Expand Down
4 changes: 4 additions & 0 deletions date.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include <string.h>

Expand Down
4 changes: 4 additions & 0 deletions dotlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
* macro.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down
4 changes: 4 additions & 0 deletions edit.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

/* Close approximation of the mailx(1) builtin editor for sending mail. */

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "mutt_curses.h"
#include "mutt_idna.h"
Expand Down
4 changes: 4 additions & 0 deletions editmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

/* simple, editor-based message editing */

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "copy.h"
#include "mailbox.h"
Expand Down
4 changes: 4 additions & 0 deletions enter.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "mutt_menu.h"
#include "mutt_curses.h"
Expand Down
4 changes: 4 additions & 0 deletions extlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
#define WHERE
#define _EXTLIB_C

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include <stdlib.h>
#include "lib.h"

Expand Down
4 changes: 4 additions & 0 deletions filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"

#include <unistd.h>
Expand Down
4 changes: 4 additions & 0 deletions flags.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"
#include "mutt_curses.h"
#include "sort.h"
Expand Down
4 changes: 4 additions & 0 deletions from.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include "mutt.h"

#include <ctype.h>
Expand Down
4 changes: 4 additions & 0 deletions getdomain.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#if HAVE_CONFIG_H
# include "config.h"
#endif

#include <stdio.h>
#include <ctype.h>
#include <string.h>
Expand Down
4 changes: 4 additions & 0 deletions gnupgparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
*
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down
4 changes: 4 additions & 0 deletions handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Expand Down
Loading

0 comments on commit 4caffc1

Please sign in to comment.