diff options
| author | Andreas Schwab | 1998-04-14 12:25:56 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1998-04-14 12:25:56 +0000 |
| commit | dfcf069d565c347abf3cb7cec80e6ed8432037ba (patch) | |
| tree | cd9620f10084ffa69d7d6ae26284ffd69d4c07a5 /src/keyboard.c | |
| parent | 0f94f94657ad7a6a68e64c612285a5e06152def2 (diff) | |
| download | emacs-dfcf069d565c347abf3cb7cec80e6ed8432037ba.tar.gz emacs-dfcf069d565c347abf3cb7cec80e6ed8432037ba.zip | |
Fix -Wimplicit warnings.
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 18 |
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 | ||
| 493 | static void record_menu_key (); | 493 | static void record_menu_key (); |
| 494 | 494 | ||
| 495 | void swallow_events (); | ||
| 496 | |||
| 497 | Lisp_Object Qpolling_period; | 495 | Lisp_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 (); | |||
| 557 | static Lisp_Object modify_event_symbol (); | 555 | static Lisp_Object modify_event_symbol (); |
| 558 | static Lisp_Object make_lispy_switch_frame (); | 556 | static Lisp_Object make_lispy_switch_frame (); |
| 559 | static int parse_solitary_modifier (); | 557 | static int parse_solitary_modifier (); |
| 558 | static void save_getcjmp (); | ||
| 559 | static void restore_getcjmp (); | ||
| 560 | 560 | ||
| 561 | /* > 0 if we are to echo keystrokes. */ | 561 | /* > 0 if we are to echo keystrokes. */ |
| 562 | static int echo_keystrokes; | 562 | static 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 | ||
| 575 | void | ||
| 575 | echo_prompt (str) | 576 | echo_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 | ||
| 596 | void | ||
| 595 | echo_char (c) | 597 | echo_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 | ||
| 646 | void | ||
| 644 | echo_dash () | 647 | echo_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 | ||
| 702 | void | ||
| 699 | cancel_echoing () | 703 | cancel_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 | ||
| 799 | void | ||
| 795 | force_auto_save_soon () | 800 | force_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 | ||
| 2417 | static void | ||
| 2412 | save_getcjmp (temp) | 2418 | save_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 | ||
| 2424 | static void | ||
| 2418 | restore_getcjmp (temp) | 2425 | restore_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 | ||
| 7680 | int | ||
| 7673 | detect_input_pending () | 7681 | detect_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 | ||
| 7691 | int | ||
| 7683 | detect_input_pending_run_timers (do_display) | 7692 | detect_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 | ||
| 7722 | int | ||
| 7713 | requeued_events_pending_p () | 7723 | requeued_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 | ||
| 7966 | void | ||
| 7956 | set_waiting_for_input (time_to_clear) | 7967 | set_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 | ||
| 8325 | void | ||
| 8314 | init_keyboard () | 8326 | init_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 | ||
| 8420 | void | ||
| 8408 | syms_of_keyboard () | 8421 | syms_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 | ||
| 8894 | void | ||
| 8881 | keys_of_keyboard () | 8895 | keys_of_keyboard () |
| 8882 | { | 8896 | { |
| 8883 | initial_define_key (global_map, Ctl ('Z'), "suspend-emacs"); | 8897 | initial_define_key (global_map, Ctl ('Z'), "suspend-emacs"); |