diff options
| author | Paul Eggert | 2013-07-05 09:58:01 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-07-05 09:58:01 -0700 |
| commit | 47ba6d4383a3f5a590ccee6c456b41e721a2274c (patch) | |
| tree | a2deb488c6c3318732a75bc608f4ceca8fcddbef /src | |
| parent | f114e6c3ca0d5402e8996fc02977d9166b898e4d (diff) | |
| download | emacs-47ba6d4383a3f5a590ccee6c456b41e721a2274c.tar.gz emacs-47ba6d4383a3f5a590ccee6c456b41e721a2274c.zip | |
Remove duplicate #include directives.
* alloc.c [GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES]:
* xfaces.c:
Don't include stdio.h twice.
* buffer.c [USE_MMAP_FOR_BUFFERS]:
Don't include sys/types.h or stdio.h twice.
* fileio.c [WINDOWSNT | MSDOS]: Don't include fcntl.h twice.
* lread.c: Don't include coding.h twice.
* nsfont.m: Don't include frame.h twice.
* process.c [HAVE_RES_INIT]: Don't include <netinet/in.h> twice.
* ralloc.c: Don't include <unistd.h> twice.
* xdisp.c: Don't include font.h twice.
* xterm.c: Don't include fontset.h twice.
* xterm.h [USE_X_TOOLKIT]: Don't include X11/StringDefs.h twice.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 17 | ||||
| -rw-r--r-- | src/alloc.c | 4 | ||||
| -rw-r--r-- | src/buffer.c | 3 | ||||
| -rw-r--r-- | src/fileio.c | 2 | ||||
| -rw-r--r-- | src/lread.c | 1 | ||||
| -rw-r--r-- | src/nsfont.m | 1 | ||||
| -rw-r--r-- | src/process.c | 1 | ||||
| -rw-r--r-- | src/ralloc.c | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 2 | ||||
| -rw-r--r-- | src/xfaces.c | 1 | ||||
| -rw-r--r-- | src/xterm.c | 1 | ||||
| -rw-r--r-- | src/xterm.h | 2 |
12 files changed, 17 insertions, 20 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 478e2bdf37a..d42f5733ce6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | 2013-07-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Remove duplicate #include directives. | ||
| 4 | * alloc.c [GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES]: | ||
| 5 | * xfaces.c: | ||
| 6 | Don't include stdio.h twice. | ||
| 7 | * buffer.c [USE_MMAP_FOR_BUFFERS]: | ||
| 8 | Don't include sys/types.h or stdio.h twice. | ||
| 9 | * fileio.c [WINDOWSNT | MSDOS]: Don't include fcntl.h twice. | ||
| 10 | * lread.c: Don't include coding.h twice. | ||
| 11 | * nsfont.m: Don't include frame.h twice. | ||
| 12 | * process.c [HAVE_RES_INIT]: Don't include <netinet/in.h> twice. | ||
| 13 | * ralloc.c: Don't include <unistd.h> twice. | ||
| 14 | * xdisp.c: Don't include font.h twice. | ||
| 15 | * xterm.c: Don't include fontset.h twice. | ||
| 16 | * xterm.h [USE_X_TOOLKIT]: Don't include X11/StringDefs.h twice. | ||
| 17 | |||
| 1 | 2013-07-04 Paul Eggert <eggert@cs.ucla.edu> | 18 | 2013-07-04 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 19 | ||
| 3 | Scale ImageMagick images more carefully. | 20 | Scale ImageMagick images more carefully. |
diff --git a/src/alloc.c b/src/alloc.c index b625e1f27e0..a31a176caa7 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -247,10 +247,6 @@ enum mem_type | |||
| 247 | 247 | ||
| 248 | #if GC_MARK_STACK || defined GC_MALLOC_CHECK | 248 | #if GC_MARK_STACK || defined GC_MALLOC_CHECK |
| 249 | 249 | ||
| 250 | #if GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES | ||
| 251 | #include <stdio.h> /* For fprintf. */ | ||
| 252 | #endif | ||
| 253 | |||
| 254 | /* A unique object in pure space used to make some Lisp objects | 250 | /* A unique object in pure space used to make some Lisp objects |
| 255 | on free lists recognizable in O(1). */ | 251 | on free lists recognizable in O(1). */ |
| 256 | 252 | ||
diff --git a/src/buffer.c b/src/buffer.c index ad670e0a121..64b1bce9b00 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -4603,7 +4603,6 @@ evaporate_overlays (ptrdiff_t pos) | |||
| 4603 | 4603 | ||
| 4604 | #ifdef USE_MMAP_FOR_BUFFERS | 4604 | #ifdef USE_MMAP_FOR_BUFFERS |
| 4605 | 4605 | ||
| 4606 | #include <sys/types.h> | ||
| 4607 | #include <sys/mman.h> | 4606 | #include <sys/mman.h> |
| 4608 | 4607 | ||
| 4609 | #ifndef MAP_ANON | 4608 | #ifndef MAP_ANON |
| @@ -4618,8 +4617,6 @@ evaporate_overlays (ptrdiff_t pos) | |||
| 4618 | #define MAP_FAILED ((void *) -1) | 4617 | #define MAP_FAILED ((void *) -1) |
| 4619 | #endif | 4618 | #endif |
| 4620 | 4619 | ||
| 4621 | #include <stdio.h> | ||
| 4622 | |||
| 4623 | #if MAP_ANON == 0 | 4620 | #if MAP_ANON == 0 |
| 4624 | #include <fcntl.h> | 4621 | #include <fcntl.h> |
| 4625 | #endif | 4622 | #endif |
diff --git a/src/fileio.c b/src/fileio.c index 3bfea20888e..0ba7f85da2c 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -55,7 +55,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 55 | #ifdef WINDOWSNT | 55 | #ifdef WINDOWSNT |
| 56 | #define NOMINMAX 1 | 56 | #define NOMINMAX 1 |
| 57 | #include <windows.h> | 57 | #include <windows.h> |
| 58 | #include <fcntl.h> | ||
| 59 | #include <sys/file.h> | 58 | #include <sys/file.h> |
| 60 | #include "w32.h" | 59 | #include "w32.h" |
| 61 | #endif /* not WINDOWSNT */ | 60 | #endif /* not WINDOWSNT */ |
| @@ -63,7 +62,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 63 | #ifdef MSDOS | 62 | #ifdef MSDOS |
| 64 | #include "msdos.h" | 63 | #include "msdos.h" |
| 65 | #include <sys/param.h> | 64 | #include <sys/param.h> |
| 66 | #include <fcntl.h> | ||
| 67 | #endif | 65 | #endif |
| 68 | 66 | ||
| 69 | #ifdef DOS_NT | 67 | #ifdef DOS_NT |
diff --git a/src/lread.c b/src/lread.c index b57665e365c..5f7b2cbdbe2 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -38,7 +38,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 38 | #include "keyboard.h" | 38 | #include "keyboard.h" |
| 39 | #include "frame.h" | 39 | #include "frame.h" |
| 40 | #include "termhooks.h" | 40 | #include "termhooks.h" |
| 41 | #include "coding.h" | ||
| 42 | #include "blockinput.h" | 41 | #include "blockinput.h" |
| 43 | 42 | ||
| 44 | #ifdef MSDOS | 43 | #ifdef MSDOS |
diff --git a/src/nsfont.m b/src/nsfont.m index 49ede8f483c..a657d01dbe4 100644 --- a/src/nsfont.m +++ b/src/nsfont.m | |||
| @@ -33,7 +33,6 @@ Author: Adrian Robert (arobert@cogsci.ucsd.edu) | |||
| 33 | #include "window.h" | 33 | #include "window.h" |
| 34 | #include "fontset.h" | 34 | #include "fontset.h" |
| 35 | #include "nsterm.h" | 35 | #include "nsterm.h" |
| 36 | #include "frame.h" | ||
| 37 | #include "character.h" | 36 | #include "character.h" |
| 38 | #include "font.h" | 37 | #include "font.h" |
| 39 | #include "termchar.h" | 38 | #include "termchar.h" |
diff --git a/src/process.c b/src/process.c index 9961697e671..b77fb97168a 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -78,7 +78,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 78 | #endif | 78 | #endif |
| 79 | 79 | ||
| 80 | #ifdef HAVE_RES_INIT | 80 | #ifdef HAVE_RES_INIT |
| 81 | #include <netinet/in.h> | ||
| 82 | #include <arpa/nameser.h> | 81 | #include <arpa/nameser.h> |
| 83 | #include <resolv.h> | 82 | #include <resolv.h> |
| 84 | #endif | 83 | #endif |
diff --git a/src/ralloc.c b/src/ralloc.c index 13fd65cbb0c..5f25ef2c320 100644 --- a/src/ralloc.c +++ b/src/ralloc.c | |||
| @@ -43,8 +43,6 @@ extern size_t __malloc_extra_blocks; | |||
| 43 | #else /* not emacs */ | 43 | #else /* not emacs */ |
| 44 | 44 | ||
| 45 | #include <stddef.h> | 45 | #include <stddef.h> |
| 46 | |||
| 47 | #include <unistd.h> | ||
| 48 | #include <malloc.h> | 46 | #include <malloc.h> |
| 49 | 47 | ||
| 50 | #endif /* not emacs */ | 48 | #endif /* not emacs */ |
diff --git a/src/xdisp.c b/src/xdisp.c index b61b976a401..ec1dbc454f6 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -313,8 +313,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 313 | #include "gtkutil.h" | 313 | #include "gtkutil.h" |
| 314 | #endif | 314 | #endif |
| 315 | 315 | ||
| 316 | #include "font.h" | ||
| 317 | |||
| 318 | #ifndef FRAME_X_OUTPUT | 316 | #ifndef FRAME_X_OUTPUT |
| 319 | #define FRAME_X_OUTPUT(f) ((f)->output_data.x) | 317 | #define FRAME_X_OUTPUT(f) ((f)->output_data.x) |
| 320 | #endif | 318 | #endif |
diff --git a/src/xfaces.c b/src/xfaces.c index b2ace1be14e..0c627d7f9ee 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -203,7 +203,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 203 | #include <stdio.h> | 203 | #include <stdio.h> |
| 204 | #include <sys/types.h> | 204 | #include <sys/types.h> |
| 205 | #include <sys/stat.h> | 205 | #include <sys/stat.h> |
| 206 | #include <stdio.h> /* This needs to be before termchar.h */ | ||
| 207 | 206 | ||
| 208 | #include "lisp.h" | 207 | #include "lisp.h" |
| 209 | #include "character.h" | 208 | #include "character.h" |
diff --git a/src/xterm.c b/src/xterm.c index 9c868aec392..f0b95d585e3 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -69,7 +69,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 69 | #include "atimer.h" | 69 | #include "atimer.h" |
| 70 | #include "keymap.h" | 70 | #include "keymap.h" |
| 71 | #include "font.h" | 71 | #include "font.h" |
| 72 | #include "fontset.h" | ||
| 73 | #include "xsettings.h" | 72 | #include "xsettings.h" |
| 74 | #include "xgselect.h" | 73 | #include "xgselect.h" |
| 75 | #include "sysselect.h" | 74 | #include "sysselect.h" |
diff --git a/src/xterm.h b/src/xterm.h index 4a5ebc66370..5415a77cf58 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -38,8 +38,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 38 | #include <X11/CoreP.h> /* foul, but we need this to use our own | 38 | #include <X11/CoreP.h> /* foul, but we need this to use our own |
| 39 | window inside a widget instead of one | 39 | window inside a widget instead of one |
| 40 | that Xt creates... */ | 40 | that Xt creates... */ |
| 41 | #include <X11/StringDefs.h> | ||
| 42 | |||
| 43 | typedef Widget xt_or_gtk_widget; | 41 | typedef Widget xt_or_gtk_widget; |
| 44 | #endif | 42 | #endif |
| 45 | 43 | ||