more include simplifications
authorPierre Habouzit <madcoder@debian.org>
Fri, 17 Nov 2006 00:40:55 +0000 (01:40 +0100)
committerPierre Habouzit <madcoder@debian.org>
Fri, 17 Nov 2006 00:40:55 +0000 (01:40 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 files changed:
imap/imap_private.h
imap/mx_imap.h
lib-lib/lib-lib.h
lib-mime/mime.h
lib-sys/unix.h
lib-ui/curses.h
lib/list.h
mbox.h
mh.h
mutt.h
mutt_idna.h
mx.h
nntp/nntp.h
pop/pop.h
protos.h
recvattach.h
xterm.h

index 2a7a1f9..5486c21 100644 (file)
 #ifndef _IMAP_PRIVATE_H
 #define _IMAP_PRIVATE_H 1
 
-#include <inttypes.h>
-
+#include <lib-sys/mutt_socket.h>
 #include <lib-ui/curses.h>
 
 #include "imap.h"
-#include <lib-sys/mutt_socket.h>
 
 /* -- symbols -- */
 #define IMAP_PORT 143
index 526bbf9..e4758c3 100644 (file)
@@ -11,8 +11,6 @@
 #ifndef _IMAP_MX_H
 #define _IMAP_MX_H
 
-#include <sys/stat.h>
-
 #include "mx.h"
 
 int imap_is_magic (const char*, struct stat*);
index e969bb5..8cd91c2 100644 (file)
@@ -46,6 +46,7 @@
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
+
 #if HAVE_STDINT_H
 # include <stdint.h>
 #elif HAVE_INTTYPES_H
 #include <locale.h>
 #endif
 
+#ifndef _POSIX_PATH_MAX
+#include <posix1_lim.h>
+#endif
+
+
 #include "macros.h"
 #include "mem.h"
 
index 74530cf..10b4c86 100644 (file)
 #ifndef MUTT_LIB_MIME_MIME_H
 #define MUTT_LIB_MIME_MIME_H
 
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <stdlib.h>
-#include <stdio.h>
-
 #include "mime-types.h"
 #include "mime-token.h"
 
index 5e1b618..bfc16c0 100644 (file)
 #ifndef MUTT_LIB_SYS_UNIX_H
 #define MUTT_LIB_SYS_UNIX_H
 
-#include <sys/types.h>
-#include <pwd.h>
-
 #include <lib-lib/lib-lib.h>
+#include <pwd.h>
 
 ssize_t mutt_gecos_name(char *dst, ssize_t n, struct passwd *pw, regex_t *rx);
 int getdnsdomainname(char *, ssize_t);
index c468446..33286c3 100644 (file)
@@ -10,6 +10,7 @@
 #ifndef _MUTT_CURSES_H
 #define _MUTT_CURSES_H
 
+#include <lib-lib/lib-lib.h>
 #include "mutt.h"
 
 #ifdef USE_SLANG_CURSES
index a63b528..3f701be 100644 (file)
@@ -16,8 +16,6 @@
 #ifndef _LIB_LIST_H
 #define _LIB_LIST_H
 
-#include <sys/types.h>
-
 typedef struct list2_t {
   void** data;
   ssize_t length;
diff --git a/mbox.h b/mbox.h
index 4959a28..e3bc8ca 100644 (file)
--- a/mbox.h
+++ b/mbox.h
@@ -15,8 +15,6 @@
 #ifndef _MBOX_H
 #define _MBOX_H
 
-#include <sys/stat.h>
-
 #include "mx.h"
 
 /* TODO all of these must disappear to achieve good information hiding */
diff --git a/mh.h b/mh.h
index a6b12eb..4764f7a 100644 (file)
--- a/mh.h
+++ b/mh.h
@@ -15,8 +15,6 @@
 #ifndef _MH_H
 #define _MH_H
 
-#include <sys/stat.h>
-
 #include "mx.h"
 
 /* TODO all of these must disappear to achieve good information hiding */
diff --git a/mutt.h b/mutt.h
index 5931f2f..39bd444 100644 (file)
--- a/mutt.h
+++ b/mutt.h
 #ifndef _MUTT_H
 #define _MUTT_H
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <stdio.h>
-#include <limits.h>
-#include <signal.h>
-
-#ifndef _POSIX_PATH_MAX
-#include <posix1_lim.h>
-#endif
-
 #include <lib-lib/lib-lib.h>
-
 #include <lib-mime/mime.h>
 
 #define MUTT_VERSION (VERSION)
index 58dbd2f..777130f 100644 (file)
 #ifndef _MUTT_IDNA_H
 # define _MUTT_IDNA_H
 
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
 #include <lib-mime/mime.h>
-#include "charset.h"
 
 #define MI_MAY_BE_IRREVERSIBLE         (1 << 0)
 
diff --git a/mx.h b/mx.h
index 8f0a365..60f7782 100644 (file)
--- a/mx.h
+++ b/mx.h
 #ifndef _MX_H
 #define _MX_H
 
-#include <sys/stat.h>
 #include <utime.h>
-#include <stdio.h>
-
 #include "mutt.h"
 
 /*
index 8ddac27..3e89c39 100644 (file)
@@ -15,8 +15,6 @@
 #include <lib-sys/mutt_socket.h>
 #include "mx.h"
 
-#include <time.h>
-
 #define NNTP_PORT 119
 #define NNTP_SSL_PORT 563
 
index f1a570a..3d3f4b5 100644 (file)
--- a/pop/pop.h
+++ b/pop/pop.h
@@ -11,9 +11,9 @@
 #define _POP_H 1
 
 #include <lib-ui/curses.h>
+#include <lib-sys/mutt_socket.h>
 
 #include "mx.h"
-#include <lib-sys/mutt_socket.h>
 
 #define POP_PORT 110
 #define POP_SSL_PORT 995
index d07d699..bd3afee 100644 (file)
--- a/protos.h
+++ b/protos.h
@@ -7,18 +7,6 @@
  * please see the file GPL in the top level source directory.
  */
 
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <sys/stat.h>
-
-#if HAVE_STDINT_H
-#include <stdint.h>
-#elif HAVE_INTTYPES_H
-#include <inttypes.h>
-#endif
-
 #define MoreArgs(p) (*p->dptr && *p->dptr != ';' && *p->dptr != '#')
 
 typedef const char *format_t (char *, ssize_t, char, const char *,
index 438e2fc..96b28d2 100644 (file)
@@ -10,7 +10,6 @@
 #define _MUTT_RECVATTACH_H
 
 #include <lib-mime/mime-types.h>
-
 #include <lib-ui/menu.h>
 
 #include "mutt.h"
diff --git a/xterm.h b/xterm.h
index 37dac4b..ffb162d 100644 (file)
--- a/xterm.h
+++ b/xterm.h
@@ -7,7 +7,6 @@
 #define MUTT_XTERM_H
 
 #include <lib-lib/lib-lib.h>
-#include <stdio.h>
 
 /* sets the current xterm's title */
 static inline void mutt_xterm_set_title(const char *title) {