aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2019-07-08 17:50:39 -0700
committerPaul Eggert2019-07-08 17:50:39 -0700
commitcebea291d98aea89f681bd5454fac178b54039ba (patch)
tree588d5f7be2021eb3e47a177a8714b1d02c40e5de /src
parentf8ab90839fe64b2ec8b398a50e8fb4f33e8e95e1 (diff)
downloademacs-cebea291d98aea89f681bd5454fac178b54039ba.tar.gz
emacs-cebea291d98aea89f681bd5454fac178b54039ba.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/atimer.c1
-rw-r--r--src/callproc.c1
-rw-r--r--src/coding.c1
-rw-r--r--src/dired.c1
-rw-r--r--src/eval.c1
-rw-r--r--src/fringe.c1
-rw-r--r--src/ftcrfont.c1
-rw-r--r--src/ftfont.c1
-rw-r--r--src/ftxfont.c1
-rw-r--r--src/gfilenotify.c1
-rw-r--r--src/indent.c1
-rw-r--r--src/kqueue.c1
-rw-r--r--src/menu.c1
-rw-r--r--src/scroll.c1
-rw-r--r--src/terminal.c2
-rw-r--r--src/unexcoff.c1
-rw-r--r--src/window.c2
-rw-r--r--src/xfont.c1
-rw-r--r--src/xftfont.c1
19 files changed, 0 insertions, 21 deletions
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
17along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ 17along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
18 18
19#include <config.h> 19#include <config.h>
20#include <stdio.h>
21 20
22#include "lisp.h" 21#include "lisp.h"
23#include "keyboard.h" 22#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 <https://www.gnu.org/licenses/>. */
21 21
22#include <config.h> 22#include <config.h>
23#include <errno.h> 23#include <errno.h>
24#include <stdio.h>
25#include <stdlib.h> 24#include <stdlib.h>
26#include <sys/types.h> 25#include <sys/types.h>
27#include <unistd.h> 26#include <unistd.h>
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)
284/*** 1. Preamble ***/ 284/*** 1. Preamble ***/
285 285
286#include <config.h> 286#include <config.h>
287#include <stdio.h>
288 287
289#ifdef HAVE_WCHAR_H 288#ifdef HAVE_WCHAR_H
290#include <wchar.h> 289#include <wchar.h>
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 <https://www.gnu.org/licenses/>. */
20 20
21#include <config.h> 21#include <config.h>
22 22
23#include <stdio.h>
24#include <sys/stat.h> 23#include <sys/stat.h>
25 24
26#ifdef HAVE_PWD_H 25#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 <https://www.gnu.org/licenses/>. */
21 21
22#include <config.h> 22#include <config.h>
23#include <limits.h> 23#include <limits.h>
24#include <stdio.h>
25#include <stdlib.h> 24#include <stdlib.h>
26#include "lisp.h" 25#include "lisp.h"
27#include "blockinput.h" 26#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
18along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ 18along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
19 19
20#include <config.h> 20#include <config.h>
21#include <stdio.h>
22 21
23#include <byteswap.h> 22#include <byteswap.h>
24 23
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 <https://www.gnu.org/licenses/>. */
18 18
19 19
20#include <config.h> 20#include <config.h>
21#include <stdio.h>
22#include <math.h> 21#include <math.h>
23#include <cairo-ft.h> 22#include <cairo-ft.h>
24 23
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
20along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ 20along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
21 21
22#include <config.h> 22#include <config.h>
23#include <stdio.h>
24#include <fontconfig/fontconfig.h> 23#include <fontconfig/fontconfig.h>
25#include <fontconfig/fcfreetype.h> 24#include <fontconfig/fcfreetype.h>
26 25
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
20along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ 20along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
21 21
22#include <config.h> 22#include <config.h>
23#include <stdio.h>
24#include <X11/Xlib.h> 23#include <X11/Xlib.h>
25 24
26#include "lisp.h" 25#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 <https://www.gnu.org/licenses/>. */
18 18
19#include <config.h> 19#include <config.h>
20 20
21#include <stdio.h>
22#include <gio/gio.h> 21#include <gio/gio.h>
23#include "lisp.h" 22#include "lisp.h"
24#include "coding.h" 23#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
18along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ 18along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
19 19
20#include <config.h> 20#include <config.h>
21#include <stdio.h>
22 21
23#include "lisp.h" 22#include "lisp.h"
24#include "character.h" 23#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 <https://www.gnu.org/licenses/>. */
19 19
20#include <config.h> 20#include <config.h>
21 21
22#include <stdio.h>
23#include <sys/types.h> 22#include <sys/types.h>
24#include <sys/event.h> 23#include <sys/event.h>
25#include <sys/time.h> 24#include <sys/time.h>
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
19along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ 19along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
20 20
21#include <config.h> 21#include <config.h>
22#include <stdio.h>
23#include <limits.h> /* for INT_MAX */ 22#include <limits.h> /* for INT_MAX */
24 23
25#include "lisp.h" 24#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 <https://www.gnu.org/licenses/>. */
20 20
21 21
22#include <config.h> 22#include <config.h>
23#include <stdio.h>
24 23
25#include "lisp.h" 24#include "lisp.h"
26#include "termchar.h" 25#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 <https://www.gnu.org/licenses/>. */
18 18
19#include <config.h> 19#include <config.h>
20 20
21#include <stdio.h>
22
23#include "lisp.h" 21#include "lisp.h"
24#include "character.h" 22#include "character.h"
25#include "frame.h" 23#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
96#ifndef makedev /* Try to detect types.h already loaded */ 96#ifndef makedev /* Try to detect types.h already loaded */
97#include <sys/types.h> 97#include <sys/types.h>
98#endif /* makedev */ 98#endif /* makedev */
99#include <stdio.h>
100#include <errno.h> 99#include <errno.h>
101 100
102#include <sys/file.h> 101#include <sys/file.h>
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 <https://www.gnu.org/licenses/>. */
20 20
21#include <config.h> 21#include <config.h>
22 22
23#include <stdio.h>
24
25#include "lisp.h" 23#include "lisp.h"
26#include "buffer.h" 24#include "buffer.h"
27#include "keyboard.h" 25#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
20along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ 20along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
21 21
22#include <config.h> 22#include <config.h>
23#include <stdio.h>
24#include <stdlib.h> 23#include <stdlib.h>
25#include <X11/Xlib.h> 24#include <X11/Xlib.h>
26 25
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
20along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ 20along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
21 21
22#include <config.h> 22#include <config.h>
23#include <stdio.h>
24#include <X11/Xlib.h> 23#include <X11/Xlib.h>
25#include <X11/Xft/Xft.h> 24#include <X11/Xft/Xft.h>
26 25