]> code.delx.au - gnu-emacs/commitdiff
(install_menu_quit_handler): Make variable `typesList'
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 31 Oct 2006 08:32:08 +0000 (08:32 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 31 Oct 2006 08:32:08 +0000 (08:32 +0000)
static const.
(name_is_separator): Add const qualifier to arguments.

src/macmenu.c

index 1a1525eafb7b5474f7b7a60ee1b389bafe5ae824..02fae600cdf3effa26f307d5a9df393f351e2346 100644 (file)
@@ -1500,7 +1500,8 @@ install_menu_quit_handler (kind, menu_handle)
      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 @@ mac_dialog_show (f, keymaps, title, header, error_name)
 /* 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++;