changeset 11026:682ae4a3d465

(make_lispy_event): Do mouse code only if HAVE_MOUSE. (make_lispy_movement): Define only if HAVE_MOUSE.
author Karl Heuer <kwzh@gnu.org>
date Wed, 15 Mar 1995 22:10:54 +0000
parents 6c5aef697fbe
children 21761da820cd
files src/keyboard.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Wed Mar 15 21:55:37 1995 +0000
+++ b/src/keyboard.c	Wed Mar 15 22:10:54 1995 +0000
@@ -491,7 +491,9 @@
 static Lisp_Object read_char_x_menu_prompt ();
 static Lisp_Object read_char_minibuf_menu_prompt ();
 static Lisp_Object make_lispy_event ();
+#ifdef HAVE_MOUSE
 static Lisp_Object make_lispy_movement ();
+#endif
 static Lisp_Object modify_event_symbol ();
 static Lisp_Object make_lispy_switch_frame ();
 static int parse_solitary_modifier ();
@@ -2914,7 +2916,7 @@
 				   / sizeof (lispy_function_keys[0])));
       break;
 
-#if defined (MULTI_FRAME) || defined (HAVE_MOUSE)
+#ifdef HAVE_MOUSE
       /* A mouse click.  Figure out where it is, decide whether it's
          a press, click or drag, and build the appropriate structure.  */
     case mouse_click:
@@ -3154,7 +3156,7 @@
 				 Qnil));
 	}
       }
-#endif /* MULTI_FRAME or HAVE_MOUSE */
+#endif /* HAVE_MOUSE */
 
       /* The 'kind' field of the event is something we don't recognize.  */
     default:
@@ -3162,7 +3164,7 @@
     }
 }
 
-#if defined (MULTI_FRAME) || defined (HAVE_MOUSE)
+#ifdef HAVE_MOUSE
 
 static Lisp_Object
 make_lispy_movement (frame, bar_window, part, x, y, time)
@@ -3253,7 +3255,7 @@
     }
 }
 
-#endif /* neither MULTI_FRAME nor HAVE_MOUSE */
+#endif /* HAVE_MOUSE */
 
 /* Construct a switch frame event.  */
 static Lisp_Object