comparison src/macmenu.c @ 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 93e945b1789c
children 124599cd087e
comparison
equal deleted inserted replaced
73572:7791c57d3fc6 73573:4d143b423b75
1498 install_menu_quit_handler (kind, menu_handle) 1498 install_menu_quit_handler (kind, menu_handle)
1499 enum mac_menu_kind kind; 1499 enum mac_menu_kind kind;
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++)
1507 { 1508 {
1508 MenuHandle menu = GetMenuHandle (id); 1509 MenuHandle menu = GetMenuHandle (id);
2426 2427
2427 2428
2428 /* Is this item a separator? */ 2429 /* Is this item a separator? */
2429 static int 2430 static int
2430 name_is_separator (name) 2431 name_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++;
2437 /* Separators can also be of the form "--:TripleSuperMegaEtched" 2438 /* Separators can also be of the form "--:TripleSuperMegaEtched"
2438 or "--deep-shadow". We don't implement them yet, se we just treat 2439 or "--deep-shadow". We don't implement them yet, se we just treat