comparison src/xmenu.c @ 2514:6700e25af205

Since Qmenu_enable is used by non-X-specific code, it shouldn't be defined in an X-only source file. * xmenu.c (Qmenu_enable): Definition moved... (syms_of_xmenu): ... along with initialization ... * keyboard.c (Qmenu_enable): ... to here ... (syms_of_keyboard): ... and here.
author Jim Blandy <jimb@redhat.com>
date Sat, 10 Apr 1993 08:04:27 +0000
parents b6c62e4abf59
children f258c79c9162
comparison
equal deleted inserted replaced
2513:d93605655958 2514:6700e25af205
69 extern Display *x_current_display; 69 extern Display *x_current_display;
70 #else 70 #else
71 #define ButtonReleaseMask ButtonReleased 71 #define ButtonReleaseMask ButtonReleased
72 #endif /* not HAVE_X11 */ 72 #endif /* not HAVE_X11 */
73 73
74 Lisp_Object Qmenu_enable; 74 extern Lisp_Object Qmenu_enable;
75 Lisp_Object xmenu_show (); 75 Lisp_Object xmenu_show ();
76 extern int x_error_handler (); 76 extern int x_error_handler ();
77 77
78 /*************************************************************/ 78 /*************************************************************/
79 79
422 return (entry); 422 return (entry);
423 } 423 }
424 424
425 syms_of_xmenu () 425 syms_of_xmenu ()
426 { 426 {
427 Qmenu_enable = intern ("menu-enable");
428
429 staticpro (&Qmenu_enable);
430 defsubr (&Sx_popup_menu); 427 defsubr (&Sx_popup_menu);
431 } 428 }
432 429
433 /* Construct the vectors that describe a menu 430 /* Construct the vectors that describe a menu
434 and store them in *VECTOR, *PANES, *NAMES, *ENABLES and *ITEMS. 431 and store them in *VECTOR, *PANES, *NAMES, *ENABLES and *ITEMS.