diff options
| author | YAMAMOTO Mitsuharu | 2006-10-31 08:31:30 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2006-10-31 08:31:30 +0000 |
| commit | 37a9ab8638d775e611f28b31dc1af23e4ce191cc (patch) | |
| tree | 9a83deef6dac6363be8d0dccb076d5770b929c9e /src | |
| parent | 46accb8f6d56db75c565dc42d19899abb12329a4 (diff) | |
| download | emacs-37a9ab8638d775e611f28b31dc1af23e4ce191cc.tar.gz emacs-37a9ab8638d775e611f28b31dc1af23e4ce191cc.zip | |
(create_apple_event_from_event_ref)
(create_apple_event_from_drag_ref, skip_white_space, parse_comment)
(parse_include_file, parse_binding, parse_component)
(parse_resource_name, parse_value, parse_resource_line)
(xrm_merge_string_database, xrm_get_resource)
(xrm_get_preference_database): Add const qualifier to arguments.
[MAC_OSX] (sys_select): Make variable `context' static const.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mac.c | 32 |
1 files changed, 16 insertions, 16 deletions
| @@ -835,8 +835,8 @@ OSStatus | |||
| 835 | create_apple_event_from_event_ref (event, num_params, names, types, result) | 835 | create_apple_event_from_event_ref (event, num_params, names, types, result) |
| 836 | EventRef event; | 836 | EventRef event; |
| 837 | UInt32 num_params; | 837 | UInt32 num_params; |
| 838 | EventParamName *names; | 838 | const EventParamName *names; |
| 839 | EventParamType *types; | 839 | const EventParamType *types; |
| 840 | AppleEvent *result; | 840 | AppleEvent *result; |
| 841 | { | 841 | { |
| 842 | OSStatus err; | 842 | OSStatus err; |
| @@ -891,7 +891,7 @@ OSErr | |||
| 891 | create_apple_event_from_drag_ref (drag, num_types, types, result) | 891 | create_apple_event_from_drag_ref (drag, num_types, types, result) |
| 892 | DragRef drag; | 892 | DragRef drag; |
| 893 | UInt32 num_types; | 893 | UInt32 num_types; |
| 894 | FlavorType *types; | 894 | const FlavorType *types; |
| 895 | AppleEvent *result; | 895 | AppleEvent *result; |
| 896 | { | 896 | { |
| 897 | OSErr err; | 897 | OSErr err; |
| @@ -1315,7 +1315,7 @@ cfproperty_list_to_lisp (plist, with_tag, hash_bound) | |||
| 1315 | 1315 | ||
| 1316 | static void | 1316 | static void |
| 1317 | skip_white_space (p) | 1317 | skip_white_space (p) |
| 1318 | char **p; | 1318 | const char **p; |
| 1319 | { | 1319 | { |
| 1320 | /* WhiteSpace = {<space> | <horizontal tab>} */ | 1320 | /* WhiteSpace = {<space> | <horizontal tab>} */ |
| 1321 | while (*P == ' ' || *P == '\t') | 1321 | while (*P == ' ' || *P == '\t') |
| @@ -1324,7 +1324,7 @@ skip_white_space (p) | |||
| 1324 | 1324 | ||
| 1325 | static int | 1325 | static int |
| 1326 | parse_comment (p) | 1326 | parse_comment (p) |
| 1327 | char **p; | 1327 | const char **p; |
| 1328 | { | 1328 | { |
| 1329 | /* Comment = "!" {<any character except null or newline>} */ | 1329 | /* Comment = "!" {<any character except null or newline>} */ |
| 1330 | if (*P == '!') | 1330 | if (*P == '!') |
| @@ -1342,7 +1342,7 @@ parse_comment (p) | |||
| 1342 | /* Don't interpret filename. Just skip until the newline. */ | 1342 | /* Don't interpret filename. Just skip until the newline. */ |
| 1343 | static int | 1343 | static int |
| 1344 | parse_include_file (p) | 1344 | parse_include_file (p) |
| 1345 | char **p; | 1345 | const char **p; |
| 1346 | { | 1346 | { |
| 1347 | /* IncludeFile = "#" WhiteSpace "include" WhiteSpace FileName WhiteSpace */ | 1347 | /* IncludeFile = "#" WhiteSpace "include" WhiteSpace FileName WhiteSpace */ |
| 1348 | if (*P == '#') | 1348 | if (*P == '#') |
| @@ -1359,7 +1359,7 @@ parse_include_file (p) | |||
| 1359 | 1359 | ||
| 1360 | static char | 1360 | static char |
| 1361 | parse_binding (p) | 1361 | parse_binding (p) |
| 1362 | char **p; | 1362 | const char **p; |
| 1363 | { | 1363 | { |
| 1364 | /* Binding = "." | "*" */ | 1364 | /* Binding = "." | "*" */ |
| 1365 | if (*P == '.' || *P == '*') | 1365 | if (*P == '.' || *P == '*') |
| @@ -1377,7 +1377,7 @@ parse_binding (p) | |||
| 1377 | 1377 | ||
| 1378 | static Lisp_Object | 1378 | static Lisp_Object |
| 1379 | parse_component (p) | 1379 | parse_component (p) |
| 1380 | char **p; | 1380 | const char **p; |
| 1381 | { | 1381 | { |
| 1382 | /* Component = "?" | ComponentName | 1382 | /* Component = "?" | ComponentName |
| 1383 | ComponentName = NameChar {NameChar} | 1383 | ComponentName = NameChar {NameChar} |
| @@ -1389,7 +1389,7 @@ parse_component (p) | |||
| 1389 | } | 1389 | } |
| 1390 | else if (isalnum (*P) || *P == '_' || *P == '-') | 1390 | else if (isalnum (*P) || *P == '_' || *P == '-') |
| 1391 | { | 1391 | { |
| 1392 | char *start = P++; | 1392 | const char *start = P++; |
| 1393 | 1393 | ||
| 1394 | while (isalnum (*P) || *P == '_' || *P == '-') | 1394 | while (isalnum (*P) || *P == '_' || *P == '-') |
| 1395 | P++; | 1395 | P++; |
| @@ -1402,7 +1402,7 @@ parse_component (p) | |||
| 1402 | 1402 | ||
| 1403 | static Lisp_Object | 1403 | static Lisp_Object |
| 1404 | parse_resource_name (p) | 1404 | parse_resource_name (p) |
| 1405 | char **p; | 1405 | const char **p; |
| 1406 | { | 1406 | { |
| 1407 | Lisp_Object result = Qnil, component; | 1407 | Lisp_Object result = Qnil, component; |
| 1408 | char binding; | 1408 | char binding; |
| @@ -1436,7 +1436,7 @@ parse_resource_name (p) | |||
| 1436 | 1436 | ||
| 1437 | static Lisp_Object | 1437 | static Lisp_Object |
| 1438 | parse_value (p) | 1438 | parse_value (p) |
| 1439 | char **p; | 1439 | const char **p; |
| 1440 | { | 1440 | { |
| 1441 | char *q, *buf; | 1441 | char *q, *buf; |
| 1442 | Lisp_Object seq = Qnil, result; | 1442 | Lisp_Object seq = Qnil, result; |
| @@ -1526,7 +1526,7 @@ parse_value (p) | |||
| 1526 | 1526 | ||
| 1527 | static Lisp_Object | 1527 | static Lisp_Object |
| 1528 | parse_resource_line (p) | 1528 | parse_resource_line (p) |
| 1529 | char **p; | 1529 | const char **p; |
| 1530 | { | 1530 | { |
| 1531 | Lisp_Object quarks, value; | 1531 | Lisp_Object quarks, value; |
| 1532 | 1532 | ||
| @@ -1629,7 +1629,7 @@ xrm_q_put_resource (database, quarks, value) | |||
| 1629 | void | 1629 | void |
| 1630 | xrm_merge_string_database (database, data) | 1630 | xrm_merge_string_database (database, data) |
| 1631 | XrmDatabase database; | 1631 | XrmDatabase database; |
| 1632 | char *data; | 1632 | const char *data; |
| 1633 | { | 1633 | { |
| 1634 | Lisp_Object quarks_value; | 1634 | Lisp_Object quarks_value; |
| 1635 | 1635 | ||
| @@ -1705,7 +1705,7 @@ xrm_q_get_resource (database, quark_name, quark_class) | |||
| 1705 | Lisp_Object | 1705 | Lisp_Object |
| 1706 | xrm_get_resource (database, name, class) | 1706 | xrm_get_resource (database, name, class) |
| 1707 | XrmDatabase database; | 1707 | XrmDatabase database; |
| 1708 | char *name, *class; | 1708 | const char *name, *class; |
| 1709 | { | 1709 | { |
| 1710 | Lisp_Object key, query_cache, quark_name, quark_class, tmp; | 1710 | Lisp_Object key, query_cache, quark_name, quark_class, tmp; |
| 1711 | int i, nn, nc; | 1711 | int i, nn, nc; |
| @@ -1794,7 +1794,7 @@ xrm_cfproperty_list_to_value (plist) | |||
| 1794 | 1794 | ||
| 1795 | XrmDatabase | 1795 | XrmDatabase |
| 1796 | xrm_get_preference_database (application) | 1796 | xrm_get_preference_database (application) |
| 1797 | char *application; | 1797 | const char *application; |
| 1798 | { | 1798 | { |
| 1799 | #if TARGET_API_MAC_CARBON | 1799 | #if TARGET_API_MAC_CARBON |
| 1800 | CFStringRef app_id, *keys, user_doms[2], host_doms[2]; | 1800 | CFStringRef app_id, *keys, user_doms[2], host_doms[2]; |
| @@ -5129,7 +5129,7 @@ sys_select (nfds, rfds, wfds, efds, timeout) | |||
| 5129 | int minfd, fd; | 5129 | int minfd, fd; |
| 5130 | CFRunLoopRef runloop = | 5130 | CFRunLoopRef runloop = |
| 5131 | (CFRunLoopRef) GetCFRunLoopFromEventLoop (GetCurrentEventLoop ()); | 5131 | (CFRunLoopRef) GetCFRunLoopFromEventLoop (GetCurrentEventLoop ()); |
| 5132 | static CFSocketContext context = {0, ofds, NULL, NULL, NULL}; | 5132 | static const CFSocketContext context = {0, ofds, NULL, NULL, NULL}; |
| 5133 | static CFMutableDictionaryRef sources; | 5133 | static CFMutableDictionaryRef sources; |
| 5134 | 5134 | ||
| 5135 | if (sources == NULL) | 5135 | if (sources == NULL) |