summaryrefslogtreecommitdiff
path: root/src/frame.h
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2008-02-22 17:42:09 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2008-02-22 17:42:09 +0000
commitdaf77bd97f8f000779c1cb06f5332cfef06422b6 (patch)
treed017d442493f22a68484e18de691f335bb9f944d /src/frame.h
parent7a04e0d96ed6bdd7b341f81fff83f6946793d268 (diff)
downloademacs-daf77bd97f8f000779c1cb06f5332cfef06422b6.tar.gz
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/frame.h')
-rw-r--r--src/frame.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h
index b0b7cc383d3..3b5a27f78a8 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -484,6 +484,9 @@ struct frame
#define FRAME_KBOARD(f) (&the_only_kboard)
#endif
+/* Return a pointer to the image cache of frame F. */
+#define FRAME_IMAGE_CACHE(F) ((F)->terminal->image_cache)
+
typedef struct frame *FRAME_PTR;
#define XFRAME(p) (eassert (FRAMEP(p)),(struct frame *) XPNTR (p))