Mercurial > emacs
diff src/keyboard.c @ 109360:f37b85834f7e
Convert more function definitions to standard C.
* src/xdisp.c (window_box_edges, handle_single_display_spec)
(display_string): Convert definition to standard C.
* src/scroll.c (do_direct_scrolling, scrolling_1):
* src/dispnew.c (allocate_matrices_for_frame_redisplay)
(mirrored_line_dance):
* src/coding.c (code_convert_string):
* src/charset.c (map_charset_chars):
* src/ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
(Fregister_ccl_program, Fregister_code_conversion_map):
* src/keyboard.c (kbd_buffer_nr_stored): Likewise.
(head_table): Make static and const.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Mon, 12 Jul 2010 09:32:53 -0700 |
parents | e856a274549b |
children | 4e99d7aa7526 |
line wrap: on
line diff
--- a/src/keyboard.c Mon Jul 12 16:16:38 2010 +0200 +++ b/src/keyboard.c Mon Jul 12 09:32:53 2010 -0700 @@ -3593,7 +3593,7 @@ /* Return the number of slots occupied in kbd_buffer. */ static int -kbd_buffer_nr_stored () +kbd_buffer_nr_stored (void) { return kbd_fetch_ptr == kbd_store_ptr ? 0 @@ -11536,7 +11536,7 @@ Lisp_Object *kind; }; -struct event_head head_table[] = { +static const struct event_head head_table[] = { {&Qmouse_movement, "mouse-movement", &Qmouse_movement}, {&Qscroll_bar_movement, "scroll-bar-movement", &Qmouse_movement}, {&Qswitch_frame, "switch-frame", &Qswitch_frame}, @@ -11721,7 +11721,7 @@ last_point_position_window = Qnil; { - struct event_head *p; + const struct event_head *p; for (p = head_table; p < head_table + (sizeof (head_table) / sizeof (head_table[0]));