diff options
| author | YAMAMOTO Mitsuharu | 2005-04-06 02:23:37 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2005-04-06 02:23:37 +0000 |
| commit | d440d0de14dbe5fee3e0d7898e365ae60ac24398 (patch) | |
| tree | 79c8ac3520aeac040e6cc5cca179002f32011ed6 /src | |
| parent | a80b280b4a01e553ea0a24e0c29f5bbae2c86cb6 (diff) | |
| download | emacs-d440d0de14dbe5fee3e0d7898e365ae60ac24398.tar.gz emacs-d440d0de14dbe5fee3e0d7898e365ae60ac24398.zip | |
(cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
(Fmac_get_preference): Doc fix.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mac.c | 35 |
1 files changed, 11 insertions, 24 deletions
| @@ -364,13 +364,13 @@ cfnumber_to_lisp (number) | |||
| 364 | 364 | ||
| 365 | 365 | ||
| 366 | /* CFDate to a list of three integers as in a return value of | 366 | /* CFDate to a list of three integers as in a return value of |
| 367 | `current-time'xo. */ | 367 | `current-time'. */ |
| 368 | 368 | ||
| 369 | Lisp_Object | 369 | Lisp_Object |
| 370 | cfdate_to_lisp (date) | 370 | cfdate_to_lisp (date) |
| 371 | CFDateRef date; | 371 | CFDateRef date; |
| 372 | { | 372 | { |
| 373 | static CFGregorianDate epoch_gdate = {1970, 1, 1, 0, 0, 0.0}; | 373 | static const CFGregorianDate epoch_gdate = {1970, 1, 1, 0, 0, 0.0}; |
| 374 | static CFAbsoluteTime epoch = 0.0, sec; | 374 | static CFAbsoluteTime epoch = 0.0, sec; |
| 375 | int high, low; | 375 | int high, low; |
| 376 | 376 | ||
| @@ -668,7 +668,7 @@ parse_resource_name (p) | |||
| 668 | return Qnil; | 668 | return Qnil; |
| 669 | 669 | ||
| 670 | result = Fcons (component, result); | 670 | result = Fcons (component, result); |
| 671 | while (binding = parse_binding (p)) | 671 | while ((binding = parse_binding (p)) != '\0') |
| 672 | { | 672 | { |
| 673 | if (binding == '*') | 673 | if (binding == '*') |
| 674 | result = Fcons (LOOSE_BINDING, result); | 674 | result = Fcons (LOOSE_BINDING, result); |
| @@ -3662,7 +3662,7 @@ corresponding Lisp object as follows: | |||
| 3662 | CFDate List of three integers date | 3662 | CFDate List of three integers date |
| 3663 | (cf. `current-time') | 3663 | (cf. `current-time') |
| 3664 | CFData Unibyte string data | 3664 | CFData Unibyte string data |
| 3665 | CFArray Array array | 3665 | CFArray Vector array |
| 3666 | CFDictionary Alist or hash table dictionary | 3666 | CFDictionary Alist or hash table dictionary |
| 3667 | (depending on HASH-BOUND) | 3667 | (depending on HASH-BOUND) |
| 3668 | 3668 | ||
| @@ -4174,26 +4174,13 @@ syms_of_mac () | |||
| 4174 | staticpro (&QCLIPBOARD); | 4174 | staticpro (&QCLIPBOARD); |
| 4175 | 4175 | ||
| 4176 | #if TARGET_API_MAC_CARBON | 4176 | #if TARGET_API_MAC_CARBON |
| 4177 | Qstring = intern ("string"); | 4177 | Qstring = intern ("string"); staticpro (&Qstring); |
| 4178 | staticpro (&Qstring); | 4178 | Qnumber = intern ("number"); staticpro (&Qnumber); |
| 4179 | 4179 | Qboolean = intern ("boolean"); staticpro (&Qboolean); | |
| 4180 | Qnumber = intern ("number"); | 4180 | Qdate = intern ("date"); staticpro (&Qdate); |
| 4181 | staticpro (&Qnumber); | 4181 | Qdata = intern ("data"); staticpro (&Qdata); |
| 4182 | 4182 | Qarray = intern ("array"); staticpro (&Qarray); | |
| 4183 | Qboolean = intern ("boolean"); | 4183 | Qdictionary = intern ("dictionary"); staticpro (&Qdictionary); |
| 4184 | staticpro (&Qboolean); | ||
| 4185 | |||
| 4186 | Qdate = intern ("date"); | ||
| 4187 | staticpro (&Qdate); | ||
| 4188 | |||
| 4189 | Qdata = intern ("data"); | ||
| 4190 | staticpro (&Qdata); | ||
| 4191 | |||
| 4192 | Qarray = intern ("array"); | ||
| 4193 | staticpro (&Qarray); | ||
| 4194 | |||
| 4195 | Qdictionary = intern ("dictionary"); | ||
| 4196 | staticpro (&Qdictionary); | ||
| 4197 | 4184 | ||
| 4198 | Qxml = intern ("xml"); | 4185 | Qxml = intern ("xml"); |
| 4199 | staticpro (&Qxml); | 4186 | staticpro (&Qxml); |