diff options
| author | Stefan Monnier | 2009-04-13 18:45:12 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2009-04-13 18:45:12 +0000 |
| commit | 86fa089ec05c413bb2c30dd06cce852ec917bc51 (patch) | |
| tree | 7c45b99ca3cce7923b7e17ea6953db13a41fee08 /src/nsfont.m | |
| parent | 96d98c408ae64c98f71ef34a9d91797fac71c13e (diff) | |
| download | emacs-86fa089ec05c413bb2c30dd06cce852ec917bc51.tar.gz emacs-86fa089ec05c413bb2c30dd06cce852ec917bc51.zip | |
* nsselect.m (symbol_to_nsstring, clean_local_selection_data)
(ns_string_to_pasteboard_internal):
* nsmenu.m (process_dialog):
* nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
* nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
* lisp.h (Fx_load_color_file): Declare.
Diffstat (limited to 'src/nsfont.m')
| -rw-r--r-- | src/nsfont.m | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nsfont.m b/src/nsfont.m index 902e73d48e9..b2e9c82bd67 100644 --- a/src/nsfont.m +++ b/src/nsfont.m | |||
| @@ -576,7 +576,9 @@ nsfont_open (FRAME_PTR f, Lisp_Object font_entity, int pixel_size) | |||
| 576 | { | 576 | { |
| 577 | if (NSFONT_TRACE) | 577 | if (NSFONT_TRACE) |
| 578 | fprintf(stderr, "*** nsfont_open CACHE HIT!\n"); | 578 | fprintf(stderr, "*** nsfont_open CACHE HIT!\n"); |
| 579 | return (Lisp_Object)[cached unsignedLongValue]; | 579 | // FIXME: Cast from (unsigned long) to Lisp_Object. |
| 580 | XHASH (font_object) = [cached unsignedLongValue]; | ||
| 581 | return font_object; | ||
| 580 | } | 582 | } |
| 581 | else | 583 | else |
| 582 | { | 584 | { |
| @@ -585,7 +587,7 @@ nsfont_open (FRAME_PTR f, Lisp_Object font_entity, int pixel_size) | |||
| 585 | if (!synthItal) | 587 | if (!synthItal) |
| 586 | [fontCache | 588 | [fontCache |
| 587 | setObject: [NSNumber numberWithUnsignedLong: | 589 | setObject: [NSNumber numberWithUnsignedLong: |
| 588 | (unsigned long)font_object] | 590 | (unsigned long) XHASH (font_object)] |
| 589 | forKey: nsfont]; | 591 | forKey: nsfont]; |
| 590 | } | 592 | } |
| 591 | 593 | ||