Skip to content

Commit

Permalink
Fix includes
Browse files Browse the repository at this point in the history
Reported-by: iwyu(1)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
  • Loading branch information
alejandro-colomar committed May 2, 2024
1 parent 585158a commit 34e551a
Show file tree
Hide file tree
Showing 91 changed files with 101 additions and 3 deletions.
1 change: 1 addition & 0 deletions alias/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*/

#include "config.h"
#include <regex.h>
#include <stdint.h>
#include <stdio.h>
#include "mutt/lib.h"
Expand Down
1 change: 1 addition & 0 deletions alternates.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
*/

#include "config.h"
#include <regex.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
Expand Down
1 change: 1 addition & 0 deletions attach/attachments.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*/

#include "config.h"
#include <regex.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
Expand Down
1 change: 1 addition & 0 deletions attach/mutt_attach.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include "mutt/lib.h"
Expand Down
1 change: 1 addition & 0 deletions attach/recvattach.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "mutt/lib.h"
#include "config/lib.h"
Expand Down
1 change: 1 addition & 0 deletions browser/dlg_browser.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
#include <limits.h>
#include <locale.h>
#include <pwd.h>
#include <regex.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions browser/functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#ifdef _MAKEDOC
#include "docs/makedoc_defs.h"
#else
#include <regex.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions color/regex.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
*/

#include "config.h"
#include <regex.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
Expand Down
2 changes: 2 additions & 0 deletions commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,11 @@
#include "config.h"
#include <errno.h>
#include <limits.h>
#include <regex.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include "mutt/lib.h"
#include "address/lib.h"
Expand Down
1 change: 1 addition & 0 deletions config/regex.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
*/

#include "config.h"
#include <regex.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
Expand Down
1 change: 1 addition & 0 deletions conn/accountcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include "config.h"
#include <assert.h>
#include <regex.h>
#include <stdio.h>
#include <sys/types.h>
#include "mutt/lib.h"
Expand Down
1 change: 1 addition & 0 deletions conn/gnutls.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "config.h"
#include <gnutls/gnutls.h>
#include <gnutls/x509.h>
#include <regex.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions conn/gsasl.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "config.h"
#include <gsasl.h>
#include <stdbool.h>
#include <stddef.h>
#include "mutt/lib.h"
#include "connaccount.h"
#include "connection.h"
Expand Down
2 changes: 2 additions & 0 deletions conn/raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
#include <string.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#include "private.h"
#include "mutt/lib.h"
Expand Down
2 changes: 1 addition & 1 deletion conn/tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
#include <fcntl.h>
#include <stdbool.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
#include "private.h"
#include "mutt/lib.h"
Expand Down
3 changes: 3 additions & 0 deletions core/neomutt.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
#include "config.h"
#include <stddef.h>
#include <errno.h>
#include <locale.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include "mutt/lib.h"
#include "config/lib.h"
Expand Down
1 change: 1 addition & 0 deletions core/neomutt.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <stddef.h>
#include <locale.h>
#include <stdbool.h>
#include <sys/types.h>
#include "account.h"
#include "mailbox.h"
#ifdef __APPLE__
Expand Down
1 change: 1 addition & 0 deletions debug/names_expando.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include "config.h"
#include <assert.h>
#include <stdbool.h>
#include "email/lib.h"
#include "core/lib.h"
#include "alias/gui.h"
Expand Down
1 change: 1 addition & 0 deletions editmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
#include "mutt/lib.h"
#include "config/lib.h"
Expand Down
1 change: 1 addition & 0 deletions editor/enter.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
*/

#include "config.h"
#include <stddef.h>
#include <string.h>
#include <wchar.h>
#include <wctype.h>
Expand Down
1 change: 1 addition & 0 deletions editor/state.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#ifndef MUTT_EDITOR_STATE_H
#define MUTT_EDITOR_STATE_H

#include <stddef.h>
#include <wchar.h>

/**
Expand Down
1 change: 1 addition & 0 deletions email/envelope.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
*/

#include "config.h"
#include <regex.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions email/from.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*/

#include "config.h"
#include <regex.h>
#include <stdbool.h>
#include <stdio.h>
#include <time.h>
Expand Down
1 change: 1 addition & 0 deletions email/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "config.h"
#include <ctype.h>
#include <errno.h>
#include <regex.h>
#include <string.h>
#include <time.h>
#include "mutt/lib.h"
Expand Down
1 change: 1 addition & 0 deletions email/rfc2047.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <ctype.h>
#include <errno.h>
#include <iconv.h>
#include <regex.h>
#include <stdbool.h>
#include <string.h>
#include "mutt/lib.h"
Expand Down
1 change: 1 addition & 0 deletions email/url.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include "config.h"
#include <ctype.h>
#include <regex.h>
#include <stdbool.h>
#include <string.h>
#include "mutt/lib.h"
Expand Down
1 change: 1 addition & 0 deletions external.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "mutt/lib.h"
#include "address/lib.h"
Expand Down
1 change: 1 addition & 0 deletions gui/curs_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#ifndef MUTT_GUI_CURS_LIB_H
#define MUTT_GUI_CURS_LIB_H

#include <stddef.h>
#include <stdbool.h>
#include <wchar.h>
#include "browser/lib.h"
Expand Down
1 change: 1 addition & 0 deletions gui/resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

#include "config.h"
#include <fcntl.h>
#include <stddef.h>
#include <unistd.h>
#include "mutt/lib.h"
#include "mutt_curses.h"
Expand Down
1 change: 1 addition & 0 deletions handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include "mutt/lib.h"
Expand Down
1 change: 1 addition & 0 deletions handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include <iconv.h>
#include <stdbool.h>
#include <stddef.h>

struct Body;
struct State;
Expand Down
1 change: 1 addition & 0 deletions hcache/serialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#define MUTT_HCACHE_SERIALIZE_H

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>

Expand Down
1 change: 1 addition & 0 deletions hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

#include "config.h"
#include <limits.h>
#include <regex.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
Expand Down
1 change: 1 addition & 0 deletions imap/imap.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include "private.h"
#include "mutt/lib.h"
#include "config/lib.h"
Expand Down
1 change: 1 addition & 0 deletions imap/msn.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include "mutt/lib.h"
#include "msn.h"
#include "mdata.h" // IWYU pragma: keep
Expand Down
1 change: 1 addition & 0 deletions imap/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
Expand Down
1 change: 1 addition & 0 deletions index/dlg_index.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

#include "config.h"
#include <assert.h>
#include <regex.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions key/get.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
*/

#include "config.h"
#include <stddef.h>
#include <stdbool.h>
#include <unistd.h>
#include "mutt/lib.h"
Expand Down
1 change: 1 addition & 0 deletions maildir/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <utime.h>
#include "mutt/lib.h"
Expand Down
1 change: 1 addition & 0 deletions maildir/path.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#ifndef MUTT_MAILDIR_PATH_H
#define MUTT_MAILDIR_PATH_H

#include <sys/stat.h>
#include "core/lib.h"

struct Buffer;
Expand Down
1 change: 1 addition & 0 deletions maildir/shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "mutt/lib.h"
#include "email/lib.h"
#include "core/lib.h"
Expand Down
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
#include "mutt/lib.h"
#include "address/lib.h"
Expand Down
2 changes: 2 additions & 0 deletions mbox/mbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include <utime.h>
#include "mutt/lib.h"
Expand Down
1 change: 1 addition & 0 deletions menu/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <wchar.h>
Expand Down
1 change: 1 addition & 0 deletions menu/functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*/

#include "config.h"
#include <regex.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
Expand Down
1 change: 1 addition & 0 deletions menu/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*/

#include "config.h"
#include <regex.h>
#include <stdio.h>
#include "private.h"
#include "mutt/lib.h"
Expand Down
1 change: 1 addition & 0 deletions mixmaster/remailer.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include "mutt/lib.h"
#include "config/lib.h"
Expand Down
1 change: 1 addition & 0 deletions monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <string.h>
#include <sys/inotify.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "mutt/lib.h"
#include "core/lib.h"
Expand Down

0 comments on commit 34e551a

Please sign in to comment.