diff options
| author | Dmitry Antipov | 2013-09-05 16:08:50 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-09-05 16:08:50 +0400 |
| commit | 667383058ff503073f9e094ab3c88280748857ef (patch) | |
| tree | a7414a0db692cdc8aad04dd9919478f8a94ea0f7 /src | |
| parent | 6aed5dccd0b87e6c32345b4914dcb50eea399327 (diff) | |
| download | emacs-667383058ff503073f9e094ab3c88280748857ef.tar.gz emacs-667383058ff503073f9e094ab3c88280748857ef.zip | |
* fontset.c, window.c, xdisp.c (toplevel): Use TERM_HEADER.
* xfaces.c (toplevel) [HAVE_X_WINDOWS]: Do not include xterm.h twice.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/fontset.c | 13 | ||||
| -rw-r--r-- | src/window.c | 13 | ||||
| -rw-r--r-- | src/xdisp.c | 16 | ||||
| -rw-r--r-- | src/xfaces.c | 3 |
5 files changed, 14 insertions, 36 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3ef8bee2f0b..d4a7abefd57 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2013-09-05 Dmitry Antipov <dmantipov@yandex.ru> | 1 | 2013-09-05 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 2 | ||
| 3 | * fontset.c, window.c, xdisp.c (toplevel): Use TERM_HEADER. | ||
| 4 | * xfaces.c (toplevel) [HAVE_X_WINDOWS]: Do not include xterm.h twice. | ||
| 5 | |||
| 6 | 2013-09-05 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 7 | |||
| 3 | Make --without-x compatible with --enable-gcc-warnings. | 8 | Make --without-x compatible with --enable-gcc-warnings. |
| 4 | * font.c (register_font_driver): Move check under HAVE_WINDOW_SYSTEM. | 9 | * font.c (register_font_driver): Move check under HAVE_WINDOW_SYSTEM. |
| 5 | * font.h (struct font_driver): Move draw, get_bitmap and free_bitmap | 10 | * font.h (struct font_driver): Move draw, get_bitmap and free_bitmap |
diff --git a/src/fontset.c b/src/fontset.c index a6277b050d5..797d51ac0a7 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -39,17 +39,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 39 | #include "intervals.h" | 39 | #include "intervals.h" |
| 40 | #include "fontset.h" | 40 | #include "fontset.h" |
| 41 | #include "window.h" | 41 | #include "window.h" |
| 42 | #ifdef HAVE_X_WINDOWS | 42 | #ifdef HAVE_WINDOW_SYSTEM |
| 43 | #include "xterm.h" | 43 | #include TERM_HEADER |
| 44 | #endif | 44 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 45 | #ifdef HAVE_NTGUI | ||
| 46 | #include "w32term.h" | ||
| 47 | #endif | ||
| 48 | #ifdef HAVE_NS | ||
| 49 | #include "nsterm.h" | ||
| 50 | #endif | ||
| 51 | #include "termhooks.h" | 45 | #include "termhooks.h" |
| 52 | |||
| 53 | #include "font.h" | 46 | #include "font.h" |
| 54 | 47 | ||
| 55 | /* FONTSET | 48 | /* FONTSET |
diff --git a/src/window.c b/src/window.c index ef96861dc71..d8a6976e090 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -39,19 +39,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 39 | #include "blockinput.h" | 39 | #include "blockinput.h" |
| 40 | #include "intervals.h" | 40 | #include "intervals.h" |
| 41 | #include "termhooks.h" /* For FRAME_TERMINAL. */ | 41 | #include "termhooks.h" /* For FRAME_TERMINAL. */ |
| 42 | 42 | #ifdef HAVE_WINDOW_SYSTEM | |
| 43 | #ifdef HAVE_X_WINDOWS | 43 | #include TERM_HEADER |
| 44 | #include "xterm.h" | 44 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 45 | #endif /* HAVE_X_WINDOWS */ | ||
| 46 | #ifdef HAVE_NTGUI | ||
| 47 | #include "w32term.h" | ||
| 48 | #endif | ||
| 49 | #ifdef MSDOS | 45 | #ifdef MSDOS |
| 50 | #include "msdos.h" | 46 | #include "msdos.h" |
| 51 | #endif | 47 | #endif |
| 52 | #ifdef HAVE_NS | ||
| 53 | #include "nsterm.h" | ||
| 54 | #endif | ||
| 55 | 48 | ||
| 56 | Lisp_Object Qwindowp, Qwindow_live_p; | 49 | Lisp_Object Qwindowp, Qwindow_live_p; |
| 57 | static Lisp_Object Qwindow_valid_p; | 50 | static Lisp_Object Qwindow_valid_p; |
diff --git a/src/xdisp.c b/src/xdisp.c index d68362576fa..c096fcd340f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -299,19 +299,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 299 | #include "font.h" | 299 | #include "font.h" |
| 300 | #include "fontset.h" | 300 | #include "fontset.h" |
| 301 | #include "blockinput.h" | 301 | #include "blockinput.h" |
| 302 | 302 | #ifdef HAVE_WINDOW_SYSTEM | |
| 303 | #ifdef HAVE_X_WINDOWS | 303 | #include TERM_HEADER |
| 304 | #include "xterm.h" | 304 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 305 | #endif | ||
| 306 | #ifdef HAVE_NTGUI | ||
| 307 | #include "w32term.h" | ||
| 308 | #endif | ||
| 309 | #ifdef HAVE_NS | ||
| 310 | #include "nsterm.h" | ||
| 311 | #endif | ||
| 312 | #ifdef USE_GTK | ||
| 313 | #include "gtkutil.h" | ||
| 314 | #endif | ||
| 315 | 305 | ||
| 316 | #ifndef FRAME_X_OUTPUT | 306 | #ifndef FRAME_X_OUTPUT |
| 317 | #define FRAME_X_OUTPUT(f) ((f)->output_data.x) | 307 | #define FRAME_X_OUTPUT(f) ((f)->output_data.x) |
diff --git a/src/xfaces.c b/src/xfaces.c index 0a117b83c15..e8cb7a70322 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -211,13 +211,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 211 | #include "frame.h" | 211 | #include "frame.h" |
| 212 | #include "termhooks.h" | 212 | #include "termhooks.h" |
| 213 | 213 | ||
| 214 | #ifdef HAVE_X_WINDOWS | ||
| 215 | #include "xterm.h" | ||
| 216 | #ifdef USE_MOTIF | 214 | #ifdef USE_MOTIF |
| 217 | #include <Xm/Xm.h> | 215 | #include <Xm/Xm.h> |
| 218 | #include <Xm/XmStrDefs.h> | 216 | #include <Xm/XmStrDefs.h> |
| 219 | #endif /* USE_MOTIF */ | 217 | #endif /* USE_MOTIF */ |
| 220 | #endif /* HAVE_X_WINDOWS */ | ||
| 221 | 218 | ||
| 222 | #ifdef MSDOS | 219 | #ifdef MSDOS |
| 223 | #include "dosfns.h" | 220 | #include "dosfns.h" |