aboutsummaryrefslogtreecommitdiffstats
path: root/src/macmenu.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2006-10-31 08:32:08 +0000
committerYAMAMOTO Mitsuharu2006-10-31 08:32:08 +0000
commit37a39780ffd10f5d7e4429f7837eb780960de6ad (patch)
treee295f446da7cdfd9c95f402b7ab1718684c85595 /src/macmenu.c
parente4e64b037bb44d96a12fb79a238c693394a6df58 (diff)
downloademacs-37a39780ffd10f5d7e4429f7837eb780960de6ad.tar.gz
emacs-37a39780ffd10f5d7e4429f7837eb780960de6ad.zip
(install_menu_quit_handler): Make variable `typesList'
static const. (name_is_separator): Add const qualifier to arguments.
Diffstat (limited to 'src/macmenu.c')
-rw-r--r--src/macmenu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/macmenu.c b/src/macmenu.c
index 1a1525eafb7..02fae600cdf 100644
--- a/src/macmenu.c
+++ b/src/macmenu.c
@@ -1500,7 +1500,8 @@ install_menu_quit_handler (kind, menu_handle)
1500 MenuHandle menu_handle; 1500 MenuHandle menu_handle;
1501{ 1501{
1502#ifdef HAVE_CANCELMENUTRACKING 1502#ifdef HAVE_CANCELMENUTRACKING
1503 EventTypeSpec typesList[] = { { kEventClassKeyboard, kEventRawKeyDown } }; 1503 static const EventTypeSpec typesList[] =
1504 {{kEventClassKeyboard, kEventRawKeyDown}};
1504 int id; 1505 int id;
1505 1506
1506 for (id = min_menu_id[kind]; id < min_menu_id[kind + 1]; id++) 1507 for (id = min_menu_id[kind]; id < min_menu_id[kind + 1]; id++)
@@ -2428,9 +2429,9 @@ mac_dialog_show (f, keymaps, title, header, error_name)
2428/* Is this item a separator? */ 2429/* Is this item a separator? */
2429static int 2430static int
2430name_is_separator (name) 2431name_is_separator (name)
2431 char *name; 2432 const char *name;
2432{ 2433{
2433 char *start = name; 2434 const char *start = name;
2434 2435
2435 /* Check if name string consists of only dashes ('-'). */ 2436 /* Check if name string consists of only dashes ('-'). */
2436 while (*name == '-') name++; 2437 while (*name == '-') name++;