emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master cebea29 2/2: Avoid some unnecessary stdio.h include


From: Paul Eggert
Subject: [Emacs-diffs] master cebea29 2/2: Avoid some unnecessary stdio.h includes
Date: Mon, 8 Jul 2019 20:50:47 -0400 (EDT)

branch: master
commit cebea291d98aea89f681bd5454fac178b54039ba
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    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.
---
 src/atimer.c      | 1 -
 src/callproc.c    | 1 -
 src/coding.c      | 1 -
 src/dired.c       | 1 -
 src/eval.c        | 1 -
 src/fringe.c      | 1 -
 src/ftcrfont.c    | 1 -
 src/ftfont.c      | 1 -
 src/ftxfont.c     | 1 -
 src/gfilenotify.c | 1 -
 src/indent.c      | 1 -
 src/kqueue.c      | 1 -
 src/menu.c        | 1 -
 src/scroll.c      | 1 -
 src/terminal.c    | 2 --
 src/unexcoff.c    | 1 -
 src/window.c      | 2 --
 src/xfont.c       | 1 -
 src/xftfont.c     | 1 -
 19 files changed, 21 deletions(-)

diff --git a/src/atimer.c b/src/atimer.c
index 8387b8a..b28f3e2 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 <https://www.gnu.org/licenses/>.  */
 
 #include <config.h>
-#include <stdio.h>
 
 #include "lisp.h"
 #include "keyboard.h"
diff --git a/src/callproc.c b/src/callproc.c
index 98c6731..2596f90 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/>.  */
 
 #include <config.h>
 #include <errno.h>
-#include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
 #include <unistd.h>
diff --git a/src/coding.c b/src/coding.c
index e90d571..189a4b3 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -284,7 +284,6 @@ encode_coding_XXX (struct coding_system *coding)
 /*** 1. Preamble ***/
 
 #include <config.h>
-#include <stdio.h>
 
 #ifdef HAVE_WCHAR_H
 #include <wchar.h>
diff --git a/src/dired.c b/src/dired.c
index b700013..7bc4b83 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/>.  */
 
 #include <config.h>
 
-#include <stdio.h>
 #include <sys/stat.h>
 
 #ifdef HAVE_PWD_H
diff --git a/src/eval.c b/src/eval.c
index 0006123..8f56994 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/>.  */
 
 #include <config.h>
 #include <limits.h>
-#include <stdio.h>
 #include <stdlib.h>
 #include "lisp.h"
 #include "blockinput.h"
diff --git a/src/fringe.c b/src/fringe.c
index 335a6eb..d0d5992 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 <https://www.gnu.org/licenses/>.  */
 
 #include <config.h>
-#include <stdio.h>
 
 #include <byteswap.h>
 
diff --git a/src/ftcrfont.c b/src/ftcrfont.c
index ff61ecf..9378621 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/>.  */
 
 
 #include <config.h>
-#include <stdio.h>
 #include <math.h>
 #include <cairo-ft.h>
 
diff --git a/src/ftfont.c b/src/ftfont.c
index 74afa2c..a80e2fb 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 <https://www.gnu.org/licenses/>.  */
 
 #include <config.h>
-#include <stdio.h>
 #include <fontconfig/fontconfig.h>
 #include <fontconfig/fcfreetype.h>
 
diff --git a/src/ftxfont.c b/src/ftxfont.c
index b146736..ae7d1a5 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 <https://www.gnu.org/licenses/>.  */
 
 #include <config.h>
-#include <stdio.h>
 #include <X11/Xlib.h>
 
 #include "lisp.h"
diff --git a/src/gfilenotify.c b/src/gfilenotify.c
index ddb1977..af7740a 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/>.  */
 
 #include <config.h>
 
-#include <stdio.h>
 #include <gio/gio.h>
 #include "lisp.h"
 #include "coding.h"
diff --git a/src/indent.c b/src/indent.c
index f0d709e..1b589a7 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 <https://www.gnu.org/licenses/>.  */
 
 #include <config.h>
-#include <stdio.h>
 
 #include "lisp.h"
 #include "character.h"
diff --git a/src/kqueue.c b/src/kqueue.c
index 42391f8..76d7fc1 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/>.  */
 
 #include <config.h>
 
-#include <stdio.h>
 #include <sys/types.h>
 #include <sys/event.h>
 #include <sys/time.h>
diff --git a/src/menu.c b/src/menu.c
index e82c857..f67bdf0 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 <https://www.gnu.org/licenses/>.  */
 
 #include <config.h>
-#include <stdio.h>
 #include <limits.h> /* for INT_MAX */
 
 #include "lisp.h"
diff --git a/src/scroll.c b/src/scroll.c
index 8eda510..e6c0583 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/>.  */
 
 
 #include <config.h>
-#include <stdio.h>
 
 #include "lisp.h"
 #include "termchar.h"
diff --git a/src/terminal.c b/src/terminal.c
index 0ee0121..bb02d58 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/>.  */
 
 #include <config.h>
 
-#include <stdio.h>
-
 #include "lisp.h"
 #include "character.h"
 #include "frame.h"
diff --git a/src/unexcoff.c b/src/unexcoff.c
index 220ce70..03ff994 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 <sys/types.h>
 #endif /* makedev */
-#include <stdio.h>
 #include <errno.h>
 
 #include <sys/file.h>
diff --git a/src/window.c b/src/window.c
index deeb4f6..1b20536 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/>.  */
 
 #include <config.h>
 
-#include <stdio.h>
-
 #include "lisp.h"
 #include "buffer.h"
 #include "keyboard.h"
diff --git a/src/xfont.c b/src/xfont.c
index 81808e7..9a8417b 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 <https://www.gnu.org/licenses/>.  */
 
 #include <config.h>
-#include <stdio.h>
 #include <stdlib.h>
 #include <X11/Xlib.h>
 
diff --git a/src/xftfont.c b/src/xftfont.c
index 2cad6db..74add58 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 <https://www.gnu.org/licenses/>.  */
 
 #include <config.h>
-#include <stdio.h>
 #include <X11/Xlib.h>
 #include <X11/Xft/Xft.h>
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]