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/keyboard.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/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index d9b88a8a911..7b1ea341e7f 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -63,20 +63,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 63 | #include <unistd.h> | 63 | #include <unistd.h> |
| 64 | #include <fcntl.h> | 64 | #include <fcntl.h> |
| 65 | 65 | ||
| 66 | /* This is to get the definitions of the XK_ symbols. */ | 66 | #ifdef HAVE_WINDOW_SYSTEM |
| 67 | #ifdef HAVE_X_WINDOWS | 67 | #include TERM_HEADER |
| 68 | #include "xterm.h" | 68 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 69 | #endif | ||
| 70 | |||
| 71 | #ifdef HAVE_NTGUI | ||
| 72 | #include "w32term.h" | ||
| 73 | #endif /* HAVE_NTGUI */ | ||
| 74 | |||
| 75 | #ifdef HAVE_NS | ||
| 76 | #include "nsterm.h" | ||
| 77 | #endif | ||
| 78 | 69 | ||
| 79 | /* Variables for blockinput.h: */ | 70 | /* Variables for blockinput.h: */ |
| 80 | 71 | ||
| 81 | /* Non-zero if interrupt input is blocked right now. */ | 72 | /* Non-zero if interrupt input is blocked right now. */ |
| 82 | volatile int interrupt_input_blocked; | 73 | volatile int interrupt_input_blocked; |
| @@ -1324,7 +1315,7 @@ usage: (track-mouse BODY...) */) | |||
| 1324 | If ignore_mouse_drag_p is non-zero, ignore (implicit) mouse movement | 1315 | If ignore_mouse_drag_p is non-zero, ignore (implicit) mouse movement |
| 1325 | after resizing the tool-bar window. */ | 1316 | after resizing the tool-bar window. */ |
| 1326 | 1317 | ||
| 1327 | #if !defined HAVE_WINDOW_SYSTEM || defined USE_GTK || defined HAVE_NS | 1318 | #if !defined HAVE_WINDOW_SYSTEM |
| 1328 | static | 1319 | static |
| 1329 | #endif | 1320 | #endif |
| 1330 | int ignore_mouse_drag_p; | 1321 | int ignore_mouse_drag_p; |