diff options
| author | Stefan Monnier | 2008-02-22 17:42:09 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-02-22 17:42:09 +0000 |
| commit | 354884c46ee708a22b0372d2092256408b485c8d (patch) | |
| tree | 03802c0c4e44d3ecd4b096cada74b8abf811ce29 /src/macfns.c | |
| parent | c2e426903cfd93202e302471a6e1b265a08e8368 (diff) | |
| download | emacs-354884c46ee708a22b0372d2092256408b485c8d.tar.gz emacs-354884c46ee708a22b0372d2092256408b485c8d.zip | |
Consolidate the image_cache to the terminal struct.
* termhooks.h (P_): Remove redundant def.
(struct terminal): New field `image_cache'.
* frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
of FRAME_X_IMAGE_CACHE.
* xterm.h (struct x_display_info): Remove image_cache field.
(FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
* w32term.h (struct w32_display_info): Remove image_cache field.
(FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
* macterm.h (struct mac_display_info): Remove image_cache field.
(FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
* xterm.c (x_term_init):
* w32term.c (w32_term_init):
* macterm.c (mac_term_init): Set the image_cache in the terminal.
* dispextern.h (clear_image_cache, forall_images_in_image_cache):
Remove declarations.
(clear_image_caches, mark_image_cache): New declarations.
* xfaces.c (clear_face_cache):
* xdisp.c (redisplay_internal): Use clear_image_caches.
* image.c (clear_image_cache): Don't check that a frame is on
a window-system before checking if it shares the same cache.
(clear_image_caches): New function.
(Fclear_image_cache): Use it.
(mark_image): Move from allo.c.
(mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
* alloc.c (mark_image, mark_image_cache): Move to image.c.
(mark_object): Don't call mark_image_cache for frames.
(mark_terminals): Call mark_image_cache.
Diffstat (limited to 'src/macfns.c')
| -rw-r--r-- | src/macfns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/macfns.c b/src/macfns.c index aab91cf41f4..9e471c6c588 100644 --- a/src/macfns.c +++ b/src/macfns.c | |||
| @@ -2608,7 +2608,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 2608 | 2608 | ||
| 2609 | /* With FRAME_MAC_DISPLAY_INFO set up, this unwind-protect is safe. */ | 2609 | /* With FRAME_MAC_DISPLAY_INFO set up, this unwind-protect is safe. */ |
| 2610 | #if GLYPH_DEBUG | 2610 | #if GLYPH_DEBUG |
| 2611 | image_cache_refcount = FRAME_X_IMAGE_CACHE (f)->refcount; | 2611 | image_cache_refcount = FRAME_IMAGE_CACHE (f)->refcount; |
| 2612 | dpyinfo_refcount = dpyinfo->reference_count; | 2612 | dpyinfo_refcount = dpyinfo->reference_count; |
| 2613 | #endif /* GLYPH_DEBUG */ | 2613 | #endif /* GLYPH_DEBUG */ |
| 2614 | FRAME_KBOARD (f) = kb; | 2614 | FRAME_KBOARD (f) = kb; |
| @@ -3846,7 +3846,7 @@ x_create_tip_frame (dpyinfo, parms, text) | |||
| 3846 | f->icon_name = Qnil; | 3846 | f->icon_name = Qnil; |
| 3847 | /* FRAME_X_DISPLAY_INFO (f) = dpyinfo; */ | 3847 | /* FRAME_X_DISPLAY_INFO (f) = dpyinfo; */ |
| 3848 | #if GLYPH_DEBUG | 3848 | #if GLYPH_DEBUG |
| 3849 | image_cache_refcount = FRAME_X_IMAGE_CACHE (f)->refcount; | 3849 | image_cache_refcount = FRAME_IMAGE_CACHE (f)->refcount; |
| 3850 | dpyinfo_refcount = dpyinfo->reference_count; | 3850 | dpyinfo_refcount = dpyinfo->reference_count; |
| 3851 | #endif /* GLYPH_DEBUG */ | 3851 | #endif /* GLYPH_DEBUG */ |
| 3852 | FRAME_KBOARD (f) = kb; | 3852 | FRAME_KBOARD (f) = kb; |