summaryrefslogtreecommitdiff
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-12-07 15:04:10 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2013-12-07 15:04:10 -0800
commit67840e6629754dc1a9196fed4910b58e4e7abd89 (patch)
tree797c405b0afc688355bba15c4a71830f003e3c26 /src/keyboard.c
parent73c8ceea1ab335aae9221a671ae0959704669a52 (diff)
downloademacs-67840e6629754dc1a9196fed4910b58e4e7abd89.tar.gz
Fix minor problems found by static checking.
* keyboard.c (poll_for_input_1, input_polling_used): Define only if HAVE_NTGUI. * xmenu.c (popup_activate_callback): Omit unnecessary check against USE_X_TOOLKIT, which must be defined here anyway. * xterm.c, xterm.h (x_dispatch_event) [! (USE_X_TOOLKIT || USE_MOTIF)]: Now static.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index b50c06b4154..913a277ca79 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1954,10 +1954,8 @@ int poll_suppress_count;
static struct atimer *poll_timer;
-/* Poll for input, so that we catch a C-g if it comes in. This
- function is called from x_make_frame_visible, see comment
- there. */
-
+#ifdef HAVE_NTGUI
+/* Poll for input, so that we catch a C-g if it comes in. */
void
poll_for_input_1 (void)
{
@@ -1965,6 +1963,7 @@ poll_for_input_1 (void)
&& !waiting_for_input)
gobble_input ();
}
+#endif
/* Timer callback function for poll_timer. TIMER is equal to
poll_timer. */
@@ -2016,6 +2015,8 @@ start_polling (void)
#endif
}
+#ifdef HAVE_NTGUI
+
/* True if we are using polling to handle input asynchronously. */
bool
@@ -2030,6 +2031,7 @@ input_polling_used (void)
return 0;
#endif
}
+#endif
/* Turn off polling. */