aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2006-10-31 08:31:30 +0000
committerYAMAMOTO Mitsuharu2006-10-31 08:31:30 +0000
commit37a9ab8638d775e611f28b31dc1af23e4ce191cc (patch)
tree9a83deef6dac6363be8d0dccb076d5770b929c9e /src
parent46accb8f6d56db75c565dc42d19899abb12329a4 (diff)
downloademacs-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.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/mac.c b/src/mac.c
index d127422ccde..c4275caa741 100644
--- a/src/mac.c
+++ b/src/mac.c
@@ -835,8 +835,8 @@ OSStatus
835create_apple_event_from_event_ref (event, num_params, names, types, result) 835create_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
891create_apple_event_from_drag_ref (drag, num_types, types, result) 891create_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
1316static void 1316static void
1317skip_white_space (p) 1317skip_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
1325static int 1325static int
1326parse_comment (p) 1326parse_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. */
1343static int 1343static int
1344parse_include_file (p) 1344parse_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
1360static char 1360static char
1361parse_binding (p) 1361parse_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
1378static Lisp_Object 1378static Lisp_Object
1379parse_component (p) 1379parse_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
1403static Lisp_Object 1403static Lisp_Object
1404parse_resource_name (p) 1404parse_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
1437static Lisp_Object 1437static Lisp_Object
1438parse_value (p) 1438parse_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
1527static Lisp_Object 1527static Lisp_Object
1528parse_resource_line (p) 1528parse_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)
1629void 1629void
1630xrm_merge_string_database (database, data) 1630xrm_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)
1705Lisp_Object 1705Lisp_Object
1706xrm_get_resource (database, name, class) 1706xrm_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
1795XrmDatabase 1795XrmDatabase
1796xrm_get_preference_database (application) 1796xrm_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)