From: Paul Eggert Date: Tue, 9 Jul 2019 00:50:39 +0000 (-0700) Subject: Avoid some unnecessary stdio.h includes X-Git-Tag: emacs-27.0.90~2046 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cebea291d98aea89f681bd5454fac178b54039ba;p=emacs.git Avoid some unnecessary stdio.h includes * src/atimer.c, src/callproc.c, src/coding.c, src/dired.c, src/eval.c: * src/fringe.c, src/ftcrfont.c, src/ftfont.c, src/ftxfont.c: * src/gfilenotify.c, src/indent.c, src/kqueue.c, src/menu.c: * src/scroll.c, src/terminal.c, src/unexcoff.c, src/window.c: * src/xfont.c, src/xftfont.c: Do not include stdio.h since it is unused. --- diff --git a/src/atimer.c b/src/atimer.c index 8387b8aa0e0..b28f3e25961 100644 --- a/src/atimer.c +++ b/src/atimer.c @@ -17,7 +17,6 @@ You should have received a copy of the GNU General Public License along with GNU Emacs. If not, see . */ #include -#include #include "lisp.h" #include "keyboard.h" diff --git a/src/callproc.c b/src/callproc.c index 98c67312b49..2596f9019e4 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -21,7 +21,6 @@ along with GNU Emacs. If not, see . */ #include #include -#include #include #include #include diff --git a/src/coding.c b/src/coding.c index e90d57144f6..189a4b39d15 100644 --- a/src/coding.c +++ b/src/coding.c @@ -284,7 +284,6 @@ encode_coding_XXX (struct coding_system *coding) /*** 1. Preamble ***/ #include -#include #ifdef HAVE_WCHAR_H #include diff --git a/src/dired.c b/src/dired.c index b700013f6a8..7bc4b83fd77 100644 --- a/src/dired.c +++ b/src/dired.c @@ -20,7 +20,6 @@ along with GNU Emacs. If not, see . */ #include -#include #include #ifdef HAVE_PWD_H diff --git a/src/eval.c b/src/eval.c index 0006123b0af..8f569949036 100644 --- a/src/eval.c +++ b/src/eval.c @@ -21,7 +21,6 @@ along with GNU Emacs. If not, see . */ #include #include -#include #include #include "lisp.h" #include "blockinput.h" diff --git a/src/fringe.c b/src/fringe.c index 335a6eb0468..d0d599223d5 100644 --- a/src/fringe.c +++ b/src/fringe.c @@ -18,7 +18,6 @@ You should have received a copy of the GNU General Public License along with GNU Emacs. If not, see . */ #include -#include #include diff --git a/src/ftcrfont.c b/src/ftcrfont.c index ff61ecfe313..93786212160 100644 --- a/src/ftcrfont.c +++ b/src/ftcrfont.c @@ -18,7 +18,6 @@ along with GNU Emacs. If not, see . */ #include -#include #include #include diff --git a/src/ftfont.c b/src/ftfont.c index 74afa2cf5a2..a80e2fb5c4b 100644 --- a/src/ftfont.c +++ b/src/ftfont.c @@ -20,7 +20,6 @@ You should have received a copy of the GNU General Public License along with GNU Emacs. If not, see . */ #include -#include #include #include diff --git a/src/ftxfont.c b/src/ftxfont.c index b1467360ad6..ae7d1a5a9b5 100644 --- a/src/ftxfont.c +++ b/src/ftxfont.c @@ -20,7 +20,6 @@ You should have received a copy of the GNU General Public License along with GNU Emacs. If not, see . */ #include -#include #include #include "lisp.h" diff --git a/src/gfilenotify.c b/src/gfilenotify.c index ddb19770c3c..af7740a87ca 100644 --- a/src/gfilenotify.c +++ b/src/gfilenotify.c @@ -18,7 +18,6 @@ along with GNU Emacs. If not, see . */ #include -#include #include #include "lisp.h" #include "coding.h" diff --git a/src/indent.c b/src/indent.c index f0d709e38b3..1b589a710cf 100644 --- a/src/indent.c +++ b/src/indent.c @@ -18,7 +18,6 @@ You should have received a copy of the GNU General Public License along with GNU Emacs. If not, see . */ #include -#include #include "lisp.h" #include "character.h" diff --git a/src/kqueue.c b/src/kqueue.c index 42391f84677..76d7fc1ecbd 100644 --- a/src/kqueue.c +++ b/src/kqueue.c @@ -19,7 +19,6 @@ along with GNU Emacs. If not, see . */ #include -#include #include #include #include diff --git a/src/menu.c b/src/menu.c index e82c8570595..f67bdf05667 100644 --- a/src/menu.c +++ b/src/menu.c @@ -19,7 +19,6 @@ You should have received a copy of the GNU General Public License along with GNU Emacs. If not, see . */ #include -#include #include /* for INT_MAX */ #include "lisp.h" diff --git a/src/scroll.c b/src/scroll.c index 8eda510945f..e6c058351ab 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -20,7 +20,6 @@ along with GNU Emacs. If not, see . */ #include -#include #include "lisp.h" #include "termchar.h" diff --git a/src/terminal.c b/src/terminal.c index 0ee0121e35e..bb02d586615 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -18,8 +18,6 @@ along with GNU Emacs. If not, see . */ #include -#include - #include "lisp.h" #include "character.h" #include "frame.h" diff --git a/src/unexcoff.c b/src/unexcoff.c index 220ce709df9..03ff99460d0 100644 --- a/src/unexcoff.c +++ b/src/unexcoff.c @@ -96,7 +96,6 @@ struct aouthdr #ifndef makedev /* Try to detect types.h already loaded */ #include #endif /* makedev */ -#include #include #include diff --git a/src/window.c b/src/window.c index deeb4f63fe0..1b205367275 100644 --- a/src/window.c +++ b/src/window.c @@ -20,8 +20,6 @@ along with GNU Emacs. If not, see . */ #include -#include - #include "lisp.h" #include "buffer.h" #include "keyboard.h" diff --git a/src/xfont.c b/src/xfont.c index 81808e7a62e..9a8417b12d4 100644 --- a/src/xfont.c +++ b/src/xfont.c @@ -20,7 +20,6 @@ You should have received a copy of the GNU General Public License along with GNU Emacs. If not, see . */ #include -#include #include #include diff --git a/src/xftfont.c b/src/xftfont.c index 2cad6db933b..74add58007d 100644 --- a/src/xftfont.c +++ b/src/xftfont.c @@ -20,7 +20,6 @@ You should have received a copy of the GNU General Public License along with GNU Emacs. If not, see . */ #include -#include #include #include