diff options
| author | Paul Eggert | 2013-10-08 13:04:40 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-10-08 13:04:40 -0700 |
| commit | 3b158d1150cbbffc77afef323008623ac5c3e169 (patch) | |
| tree | 41f4cf689afbcc23831c56d5556a1ab46db88d46 /src/ChangeLog | |
| parent | c7a7f318ff5593331341d05a762a765f52e6bdd2 (diff) | |
| download | emacs-3b158d1150cbbffc77afef323008623ac5c3e169.tar.gz emacs-3b158d1150cbbffc77afef323008623ac5c3e169.zip | |
Fix minor problems found by static checking.
* dispnew.c (save_current_matrix): Omit unnecessary casts.
* dispnew.c (update_frame_with_menu): Mark debug local as used.
* keyboard.c, keyboard.h (Qmouse_movement): Now static.
* keyboard.c (read_menu_command): Remove unused local.
* lisp.h (read_menu_command): New decl.
* menu.c, menu.h (menu_item_width): Arg is now unsigned char *, for
benefit of STRING_CHAR_AND_LENGTH. All uses changed.
Return ptrdiff_t, not int.
* term.c (tty_menu_struct): 'allocated' member is now ptrdiff_t,
not int, for benefit of xpalloc.
(tty_menu_create, tty_menu_make_room): Simplify by using xzalloc
and xpalloc.
(have_menus_p): Remove; unused.
(tty_menu_add_pane, tty_menu_add_selection): Change signedness of
local char * pointer to pacify STRING_CHAR_AND_LENGTH.
(tty_menu_add_selection, tty_menu_locate, tty_meny_destroy):
Now static.
(save_and_enable_current_matrix): Omit unnecessary casts.
(read_menu_input): Omit local extern decl (now in lisp.h).
Don't access uninitialized storage if mouse_get_xy fails.
(tty_menu_activate): Mark local as initialized, for lint.
(tty_menu_activate, tty_meny_show): Remove unused locals.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e30194d1dfb..5196eb230d8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,29 @@ | |||
| 1 | 2013-10-08 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Fix minor problems found by static checking. | ||
| 4 | * dispnew.c (save_current_matrix): Omit unnecessary casts. | ||
| 5 | * dispnew.c (update_frame_with_menu): Mark debug local as used. | ||
| 6 | * keyboard.c, keyboard.h (Qmouse_movement): Now static. | ||
| 7 | * keyboard.c (read_menu_command): Remove unused local. | ||
| 8 | * lisp.h (read_menu_command): New decl. | ||
| 9 | * menu.c, menu.h (menu_item_width): Arg is now unsigned char *, for | ||
| 10 | benefit of STRING_CHAR_AND_LENGTH. All uses changed. | ||
| 11 | Return ptrdiff_t, not int. | ||
| 12 | * term.c (tty_menu_struct): 'allocated' member is now ptrdiff_t, | ||
| 13 | not int, for benefit of xpalloc. | ||
| 14 | (tty_menu_create, tty_menu_make_room): Simplify by using xzalloc | ||
| 15 | and xpalloc. | ||
| 16 | (have_menus_p): Remove; unused. | ||
| 17 | (tty_menu_add_pane, tty_menu_add_selection): Change signedness of | ||
| 18 | local char * pointer to pacify STRING_CHAR_AND_LENGTH. | ||
| 19 | (tty_menu_add_selection, tty_menu_locate, tty_meny_destroy): | ||
| 20 | Now static. | ||
| 21 | (save_and_enable_current_matrix): Omit unnecessary casts. | ||
| 22 | (read_menu_input): Omit local extern decl (now in lisp.h). | ||
| 23 | Don't access uninitialized storage if mouse_get_xy fails. | ||
| 24 | (tty_menu_activate): Mark local as initialized, for lint. | ||
| 25 | (tty_menu_activate, tty_meny_show): Remove unused locals. | ||
| 26 | |||
| 1 | 2013-10-08 Eli Zaretskii <eliz@gnu.org> | 27 | 2013-10-08 Eli Zaretskii <eliz@gnu.org> |
| 2 | 28 | ||
| 3 | Support menus on text-mode terminals. | 29 | Support menus on text-mode terminals. |