diff options
| author | Dmitry Antipov | 2013-10-18 16:57:44 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-10-18 16:57:44 +0400 |
| commit | d141d7011296265b0c2a6432bed9317614abf019 (patch) | |
| tree | effac9c22d9391c5527e5d9990b1fdbe4647e556 /src/alloc.c | |
| parent | f0ff1cd5762b2485add7b2e5a1da52eab733a873 (diff) | |
| download | emacs-d141d7011296265b0c2a6432bed9317614abf019.tar.gz emacs-d141d7011296265b0c2a6432bed9317614abf019.zip | |
Remove port-specific display name lists to avoid extra
complexity and data duplication with display info lists.
* xterm.h (x_display_name_list): Remove declaration.
* xterm.c (x_display_name_list): Remove.
(x_term_init, x_delete_display, syms_of_xterm): Adjust users.
* xfns.c (x_display_info_for_name, Fx_display_list):
Likewise. Use x_display_list where appropriate.
* w32term.h (w32_display_name_list): Remove declaration.
* w32term.c (w32_display_name_list): Remove.
(w32_initialize_display_info, x_delete_display, syms_of_w32term):
Adjust users.
* w32fns.c (x_display_info_for_name, Fx_display_list):
Likewise. Use x_display_list where appropriate.
* nsterm.h (ns_display_name_list): Remove declaration.
* nsterm.m (ns_display_name_list): Remove.
(ns_term_init, syms_of_nsterm): Adjust users.
* nsfns.m (ns_display_info_for_name, Fx_display_list):
Likewise. Use x_display_list where appropriate.
* termhooks.h (TERMINAL_FONT_CACHE): New macro.
* alloc.c (toplevel) [HAVE_WINDOW_SYSTEM]: Include TERM_HEADER.
(mark_terminals): Mark per-terminal font cache.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index 0667353c1a8..02deaa94af1 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -42,6 +42,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 42 | #include "frame.h" | 42 | #include "frame.h" |
| 43 | #include "blockinput.h" | 43 | #include "blockinput.h" |
| 44 | #include "termhooks.h" /* For struct terminal. */ | 44 | #include "termhooks.h" /* For struct terminal. */ |
| 45 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 46 | #include TERM_HEADER | ||
| 47 | #endif /* HAVE_WINDOW_SYSTEM */ | ||
| 45 | 48 | ||
| 46 | #include <verify.h> | 49 | #include <verify.h> |
| 47 | 50 | ||
| @@ -6115,6 +6118,9 @@ mark_terminals (void) | |||
| 6115 | it might have been marked already. Make sure the image cache | 6118 | it might have been marked already. Make sure the image cache |
| 6116 | gets marked. */ | 6119 | gets marked. */ |
| 6117 | mark_image_cache (t->image_cache); | 6120 | mark_image_cache (t->image_cache); |
| 6121 | /* FIXME: currently font cache may grow too large | ||
| 6122 | and probably needs special finalization. */ | ||
| 6123 | mark_object (TERMINAL_FONT_CACHE (t)); | ||
| 6118 | #endif /* HAVE_WINDOW_SYSTEM */ | 6124 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 6119 | if (!VECTOR_MARKED_P (t)) | 6125 | if (!VECTOR_MARKED_P (t)) |
| 6120 | mark_vectorlike ((struct Lisp_Vector *)t); | 6126 | mark_vectorlike ((struct Lisp_Vector *)t); |