aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorAndreas Schwab1998-04-14 12:25:56 +0000
committerAndreas Schwab1998-04-14 12:25:56 +0000
commitdfcf069d565c347abf3cb7cec80e6ed8432037ba (patch)
treecd9620f10084ffa69d7d6ae26284ffd69d4c07a5 /src/keyboard.c
parent0f94f94657ad7a6a68e64c612285a5e06152def2 (diff)
downloademacs-dfcf069d565c347abf3cb7cec80e6ed8432037ba.tar.gz
emacs-dfcf069d565c347abf3cb7cec80e6ed8432037ba.zip
Fix -Wimplicit warnings.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index fb3d8bae1ed..b6b00127630 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -492,8 +492,6 @@ extern char *x_get_keysym_name ();
492 492
493static void record_menu_key (); 493static void record_menu_key ();
494 494
495void swallow_events ();
496
497Lisp_Object Qpolling_period; 495Lisp_Object Qpolling_period;
498 496
499/* List of absolute timers. Appears in order of next scheduled event. */ 497/* List of absolute timers. Appears in order of next scheduled event. */
@@ -557,6 +555,8 @@ static Lisp_Object make_lispy_movement ();
557static Lisp_Object modify_event_symbol (); 555static Lisp_Object modify_event_symbol ();
558static Lisp_Object make_lispy_switch_frame (); 556static Lisp_Object make_lispy_switch_frame ();
559static int parse_solitary_modifier (); 557static int parse_solitary_modifier ();
558static void save_getcjmp ();
559static void restore_getcjmp ();
560 560
561/* > 0 if we are to echo keystrokes. */ 561/* > 0 if we are to echo keystrokes. */
562static int echo_keystrokes; 562static int echo_keystrokes;
@@ -572,6 +572,7 @@ static int cannot_suspend;
572 so that it serves as a prompt for the next character. 572 so that it serves as a prompt for the next character.
573 Also start echoing. */ 573 Also start echoing. */
574 574
575void
575echo_prompt (str) 576echo_prompt (str)
576 char *str; 577 char *str;
577{ 578{
@@ -592,6 +593,7 @@ echo_prompt (str)
592 C can be a character, which is printed prettily ("M-C-x" and all that 593 C can be a character, which is printed prettily ("M-C-x" and all that
593 jazz), or a symbol, whose name is printed. */ 594 jazz), or a symbol, whose name is printed. */
594 595
596void
595echo_char (c) 597echo_char (c)
596 Lisp_Object c; 598 Lisp_Object c;
597{ 599{
@@ -641,6 +643,7 @@ echo_char (c)
641/* Temporarily add a dash to the end of the echo string if it's not 643/* Temporarily add a dash to the end of the echo string if it's not
642 empty, so that it serves as a mini-prompt for the very next character. */ 644 empty, so that it serves as a mini-prompt for the very next character. */
643 645
646void
644echo_dash () 647echo_dash ()
645{ 648{
646 if (!current_kboard->immediate_echo 649 if (!current_kboard->immediate_echo
@@ -696,6 +699,7 @@ echo_now ()
696 699
697/* Turn off echoing, for the start of a new command. */ 700/* Turn off echoing, for the start of a new command. */
698 701
702void
699cancel_echoing () 703cancel_echoing ()
700{ 704{
701 current_kboard->immediate_echo = 0; 705 current_kboard->immediate_echo = 0;
@@ -792,6 +796,7 @@ record_auto_save ()
792 796
793/* Make an auto save happen as soon as possible at command level. */ 797/* Make an auto save happen as soon as possible at command level. */
794 798
799void
795force_auto_save_soon () 800force_auto_save_soon ()
796{ 801{
797 last_auto_save = - auto_save_interval - 1; 802 last_auto_save = - auto_save_interval - 1;
@@ -2409,12 +2414,14 @@ print_help (object)
2409 in case get_char is called recursively. 2414 in case get_char is called recursively.
2410 See read_process_output. */ 2415 See read_process_output. */
2411 2416
2417static void
2412save_getcjmp (temp) 2418save_getcjmp (temp)
2413 jmp_buf temp; 2419 jmp_buf temp;
2414{ 2420{
2415 bcopy (getcjmp, temp, sizeof getcjmp); 2421 bcopy (getcjmp, temp, sizeof getcjmp);
2416} 2422}
2417 2423
2424static void
2418restore_getcjmp (temp) 2425restore_getcjmp (temp)
2419 jmp_buf temp; 2426 jmp_buf temp;
2420{ 2427{
@@ -7670,6 +7677,7 @@ current_active_maps (maps_p)
7670 7677
7671/* Return nonzero if input events are pending. */ 7678/* Return nonzero if input events are pending. */
7672 7679
7680int
7673detect_input_pending () 7681detect_input_pending ()
7674{ 7682{
7675 if (!input_pending) 7683 if (!input_pending)
@@ -7680,6 +7688,7 @@ detect_input_pending ()
7680 7688
7681/* Return nonzero if input events are pending, and run any pending timers. */ 7689/* Return nonzero if input events are pending, and run any pending timers. */
7682 7690
7691int
7683detect_input_pending_run_timers (do_display) 7692detect_input_pending_run_timers (do_display)
7684 int do_display; 7693 int do_display;
7685{ 7694{
@@ -7710,6 +7719,7 @@ clear_input_pending ()
7710 The problem is, kbd_buffer_get_event needs to be fixed to know what 7719 The problem is, kbd_buffer_get_event needs to be fixed to know what
7711 to do in that case. It isn't trivial. */ 7720 to do in that case. It isn't trivial. */
7712 7721
7722int
7713requeued_events_pending_p () 7723requeued_events_pending_p ()
7714{ 7724{
7715 return (!NILP (Vunread_command_events) || unread_command_char != -1); 7725 return (!NILP (Vunread_command_events) || unread_command_char != -1);
@@ -7953,6 +7963,7 @@ stuff_buffered_input (stuffstring)
7953#endif /* BSD_SYSTEM and not BSD4_1 */ 7963#endif /* BSD_SYSTEM and not BSD4_1 */
7954} 7964}
7955 7965
7966void
7956set_waiting_for_input (time_to_clear) 7967set_waiting_for_input (time_to_clear)
7957 EMACS_TIME *time_to_clear; 7968 EMACS_TIME *time_to_clear;
7958{ 7969{
@@ -8311,6 +8322,7 @@ delete_kboard (kb)
8311} 8322}
8312#endif 8323#endif
8313 8324
8325void
8314init_keyboard () 8326init_keyboard ()
8315{ 8327{
8316 /* This is correct before outermost invocation of the editor loop */ 8328 /* This is correct before outermost invocation of the editor loop */
@@ -8405,6 +8417,7 @@ struct event_head head_table[] = {
8405 &Qmake_frame_visible, "make-frame-visible", &Qmake_frame_visible, 8417 &Qmake_frame_visible, "make-frame-visible", &Qmake_frame_visible,
8406}; 8418};
8407 8419
8420void
8408syms_of_keyboard () 8421syms_of_keyboard ()
8409{ 8422{
8410 staticpro (&item_properties); 8423 staticpro (&item_properties);
@@ -8878,6 +8891,7 @@ If the value is non-nil and not a number, we wait 2 seconds.");
8878 Vtimer_idle_list = Qnil; 8891 Vtimer_idle_list = Qnil;
8879} 8892}
8880 8893
8894void
8881keys_of_keyboard () 8895keys_of_keyboard ()
8882{ 8896{
8883 initial_define_key (global_map, Ctl ('Z'), "suspend-emacs"); 8897 initial_define_key (global_map, Ctl ('Z'), "suspend-emacs");