Mercurial > emacs
changeset 73573:4d143b423b75
(install_menu_quit_handler): Make variable `typesList'
static const.
(name_is_separator): Add const qualifier to arguments.
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
---|---|
date | Tue, 31 Oct 2006 08:32:08 +0000 |
parents | 7791c57d3fc6 |
children | 848513456fe7 |
files | src/macmenu.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/macmenu.c Tue Oct 31 08:31:50 2006 +0000 +++ b/src/macmenu.c Tue Oct 31 08:32:08 2006 +0000 @@ -1500,7 +1500,8 @@ MenuHandle menu_handle; { #ifdef HAVE_CANCELMENUTRACKING - EventTypeSpec typesList[] = { { kEventClassKeyboard, kEventRawKeyDown } }; + static const EventTypeSpec typesList[] = + {{kEventClassKeyboard, kEventRawKeyDown}}; int id; for (id = min_menu_id[kind]; id < min_menu_id[kind + 1]; id++) @@ -2428,9 +2429,9 @@ /* Is this item a separator? */ static int name_is_separator (name) - char *name; + const char *name; { - char *start = name; + const char *start = name; /* Check if name string consists of only dashes ('-'). */ while (*name == '-') name++;