diff options
| author | Paul Eggert | 2012-10-10 13:09:47 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-10-10 13:09:47 -0700 |
| commit | 9fa1de305acd530060062a1470f3018de7937bb1 (patch) | |
| tree | bb182ee666aef3b52b046d56e10ab282cad65bc9 /src/ChangeLog | |
| parent | e738ca5624ba0f3703095e0ad48b4ef7b97973bf (diff) | |
| download | emacs-9fa1de305acd530060062a1470f3018de7937bb1.tar.gz emacs-9fa1de305acd530060062a1470f3018de7937bb1.zip | |
keyboard.c, keymap.c: Use bool for booleans.
* dispnew.c (sit_for): Distinguish between 3-way display_option
and boolean do_display.
* keyboard.c (single_kboard, this_command_key_count_reset)
(waiting_for_input, echoing, immediate_quit, input_pending)
(interrupt_input, interrupts_deferred, pop_kboard)
(temporarily_switch_to_single_kboard, ignore_mouse_drag_p)
(command_loop_1, adjust_point_for_property)
(safe_run_hooks_error, input_polling_used, read_char):
(help_char_p, readable_events, kbd_buffer_events_waiting)
(kbd_buffer_get_event, timer_check_2, make_lispy_event)
(lucid_event_type_list_p, get_input_pending):
(gobble_input, menu_separator_name_p, menu_bar_item)
(parse_menu_item, parse_tool_bar_item, read_char_x_menu_prompt)
(read_char_minibuf_menu_prompt, access_keymap_keyremap)
(keyremap_step, test_undefined, read_key_sequence)
(detect_input_pending, detect_input_pending_ignore_squeezables)
(detect_input_pending_run_timers, requeued_events_pending_p)
(quit_throw_to_read_char, Fset_input_interrupt_mode):
* keymap.c (get_keymap, keymap_parent, keymap_memberp)
(access_keymap_1, access_keymap, map_keymap, get_keyelt)
(Fdefine_key, Flookup_key, struct accessible_keymaps_data)
(accessible_keymaps_1, Fkey_description, push_key_description):
(shadow_lookup, struct where_is_internal_data)
(where_is_internal, Fwhere_is_internal, where_is_internal_1)
(Fdescribe_buffer_bindings, describe_map_tree, struct describe_map_elt)
(describe_map, describe_vector):
* menu.c (single_menu_item):
* nsmenu.m (ns_update_menubar):
* process.c (wait_reading_process_output):
* search.c (scan_buffer, scan_newline):
Use bool for boolean.
* keyboard.c (timers_run, swallow_events)
(detect_input_pending_run_timers):
* process.c (wait_reading_process_output):
Use unsigned for counter where wraparound-on-overflow is desired,
since unsigned is guaranteed to have that behavior and signed is not.
(read_char): Use ptrdiff_t for string length.
(get_input_pending): Remove first argument, since it was always
the same pointer-to-int (now pointer-to-boolean) &input_pending,
and behave as if it had that value. Return new value of
input_pending. All callers changed.
* keyboard.h (struct kboard): Use unsigned : 1 for boolean member
immediate_echo. Use ptrdiff_t for echo_after_prompt, since it's
a string length.
* keymap.c (push_key_description): Omit last arg, which was always 1.
All callers changed.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a05c426a452..daa370105ee 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,53 @@ | |||
| 1 | 2012-10-10 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2012-10-10 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | keyboard.c, keymap.c: Use bool for booleans. | ||
| 4 | * dispnew.c (sit_for): Distinguish between 3-way display_option | ||
| 5 | and boolean do_display. | ||
| 6 | * keyboard.c (single_kboard, this_command_key_count_reset) | ||
| 7 | (waiting_for_input, echoing, immediate_quit, input_pending) | ||
| 8 | (interrupt_input, interrupts_deferred, pop_kboard) | ||
| 9 | (temporarily_switch_to_single_kboard, ignore_mouse_drag_p) | ||
| 10 | (command_loop_1, adjust_point_for_property) | ||
| 11 | (safe_run_hooks_error, input_polling_used, read_char): | ||
| 12 | (help_char_p, readable_events, kbd_buffer_events_waiting) | ||
| 13 | (kbd_buffer_get_event, timer_check_2, make_lispy_event) | ||
| 14 | (lucid_event_type_list_p, get_input_pending): | ||
| 15 | (gobble_input, menu_separator_name_p, menu_bar_item) | ||
| 16 | (parse_menu_item, parse_tool_bar_item, read_char_x_menu_prompt) | ||
| 17 | (read_char_minibuf_menu_prompt, access_keymap_keyremap) | ||
| 18 | (keyremap_step, test_undefined, read_key_sequence) | ||
| 19 | (detect_input_pending, detect_input_pending_ignore_squeezables) | ||
| 20 | (detect_input_pending_run_timers, requeued_events_pending_p) | ||
| 21 | (quit_throw_to_read_char, Fset_input_interrupt_mode): | ||
| 22 | * keymap.c (get_keymap, keymap_parent, keymap_memberp) | ||
| 23 | (access_keymap_1, access_keymap, map_keymap, get_keyelt) | ||
| 24 | (Fdefine_key, Flookup_key, struct accessible_keymaps_data) | ||
| 25 | (accessible_keymaps_1, Fkey_description, push_key_description): | ||
| 26 | (shadow_lookup, struct where_is_internal_data) | ||
| 27 | (where_is_internal, Fwhere_is_internal, where_is_internal_1) | ||
| 28 | (Fdescribe_buffer_bindings, describe_map_tree, struct describe_map_elt) | ||
| 29 | (describe_map, describe_vector): | ||
| 30 | * menu.c (single_menu_item): | ||
| 31 | * nsmenu.m (ns_update_menubar): | ||
| 32 | * process.c (wait_reading_process_output): | ||
| 33 | * search.c (scan_buffer, scan_newline): | ||
| 34 | Use bool for boolean. | ||
| 35 | * keyboard.c (timers_run, swallow_events) | ||
| 36 | (detect_input_pending_run_timers): | ||
| 37 | * process.c (wait_reading_process_output): | ||
| 38 | Use unsigned for counter where wraparound-on-overflow is desired, | ||
| 39 | since unsigned is guaranteed to have that behavior and signed is not. | ||
| 40 | (read_char): Use ptrdiff_t for string length. | ||
| 41 | (get_input_pending): Remove first argument, since it was always | ||
| 42 | the same pointer-to-int (now pointer-to-boolean) &input_pending, | ||
| 43 | and behave as if it had that value. Return new value of | ||
| 44 | input_pending. All callers changed. | ||
| 45 | * keyboard.h (struct kboard): Use unsigned : 1 for boolean member | ||
| 46 | immediate_echo. Use ptrdiff_t for echo_after_prompt, since it's | ||
| 47 | a string length. | ||
| 48 | * keymap.c (push_key_description): Omit last arg, which was always 1. | ||
| 49 | All callers changed. | ||
| 50 | |||
| 3 | * regex.c (immediate_quit) [emacs]: Remove duplicate decl. | 51 | * regex.c (immediate_quit) [emacs]: Remove duplicate decl. |
| 4 | 52 | ||
| 5 | 2012-10-10 Juanma Barranquero <lekktu@gmail.com> | 53 | 2012-10-10 Juanma Barranquero <lekktu@gmail.com> |