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/termhooks.h | |
| 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/termhooks.h')
| -rw-r--r-- | src/termhooks.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/termhooks.h b/src/termhooks.h index 7ff1a2ca111..2acd20bbb3f 100644 --- a/src/termhooks.h +++ b/src/termhooks.h | |||
| @@ -24,11 +24,6 @@ Boston, MA 02110-1301, USA. */ | |||
| 24 | 24 | ||
| 25 | struct glyph; | 25 | struct glyph; |
| 26 | struct frame; | 26 | struct frame; |
| 27 | |||
| 28 | /* Only use prototypes when lisp.h has been included. */ | ||
| 29 | #ifndef P_ | ||
| 30 | #define P_(X) () | ||
| 31 | #endif | ||
| 32 | 27 | ||
| 33 | 28 | ||
| 34 | enum scroll_bar_part { | 29 | enum scroll_bar_part { |
| @@ -363,6 +358,11 @@ struct terminal | |||
| 363 | struct kboard *kboard; | 358 | struct kboard *kboard; |
| 364 | #endif | 359 | #endif |
| 365 | 360 | ||
| 361 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 362 | /* Cache of images. */ | ||
| 363 | struct image_cache *image_cache; | ||
| 364 | #endif /* HAVE_WINDOW_SYSTEM */ | ||
| 365 | |||
| 366 | /* Device-type dependent data shared amongst all frames on this terminal. */ | 366 | /* Device-type dependent data shared amongst all frames on this terminal. */ |
| 367 | union display_info | 367 | union display_info |
| 368 | { | 368 | { |