diff options
| author | Daniel Colascione | 2012-08-31 22:38:52 -0800 |
|---|---|---|
| committer | Daniel Colascione | 2012-08-31 22:38:52 -0800 |
| commit | 17a2cbbd76385d0be8a4b28974e64f4debf459c1 (patch) | |
| tree | c9d9f61e8580269679c9583ee94ccd812cca5790 /src/frame.c | |
| parent | c650a5dec69902c684c5333befd35da6c518c5e0 (diff) | |
| download | emacs-17a2cbbd76385d0be8a4b28974e64f4debf459c1.tar.gz emacs-17a2cbbd76385d0be8a4b28974e64f4debf459c1.zip | |
Refactor window-system configuration
This change streamlines the window system selection code in
configure.in and moves many common function declarations from
window-specific headers to frame.h. It introduces a new TERM_HEADER
macro in config.h: we set this macro to the right header to use for
the window system for which we're compiling Emacs and have source
files include it indirectly. This way, we don't have to teach every
file about every window system.
Diffstat (limited to 'src/frame.c')
| -rw-r--r-- | src/frame.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/frame.c b/src/frame.c index 4785840a95f..968cb4905a2 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -30,15 +30,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 30 | 30 | ||
| 31 | #include "lisp.h" | 31 | #include "lisp.h" |
| 32 | #include "character.h" | 32 | #include "character.h" |
| 33 | #ifdef HAVE_X_WINDOWS | 33 | |
| 34 | #include "xterm.h" | 34 | #ifdef HAVE_WINDOW_SYSTEM |
| 35 | #endif | 35 | #include TERM_HEADER |
| 36 | #ifdef WINDOWSNT | 36 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 37 | #include "w32term.h" | 37 | |
| 38 | #endif | ||
| 39 | #ifdef HAVE_NS | ||
| 40 | #include "nsterm.h" | ||
| 41 | #endif | ||
| 42 | #include "buffer.h" | 38 | #include "buffer.h" |
| 43 | /* These help us bind and responding to switch-frame events. */ | 39 | /* These help us bind and responding to switch-frame events. */ |
| 44 | #include "commands.h" | 40 | #include "commands.h" |
| @@ -58,11 +54,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 58 | #include "dosfns.h" | 54 | #include "dosfns.h" |
| 59 | #endif | 55 | #endif |
| 60 | 56 | ||
| 61 | |||
| 62 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 63 | |||
| 64 | #endif | ||
| 65 | |||
| 66 | #ifdef HAVE_NS | 57 | #ifdef HAVE_NS |
| 67 | Lisp_Object Qns_parse_geometry; | 58 | Lisp_Object Qns_parse_geometry; |
| 68 | #endif | 59 | #endif |