diff options
| author | Eli Zaretskii | 2012-05-18 11:36:50 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-05-18 11:36:50 +0300 |
| commit | 784b56e25bda24e9c1e0689f1d71d3cf6fe5d552 (patch) | |
| tree | 1c3514e049c53075ecb594d44fcd3d9f584cd22f | |
| parent | 6b3868cb1469a6222498dba8220aec9e02d43c1e (diff) | |
| download | emacs-784b56e25bda24e9c1e0689f1d71d3cf6fe5d552.tar.gz emacs-784b56e25bda24e9c1e0689f1d71d3cf6fe5d552.zip | |
Fix compilation with -DGLYPH_DEBUG=1 on MS-Windows.
src/w32term.c [GLYPH_DEBUG]: Add prototype for x_check_font.
(x_check_font) [GLYPH_DEBUG]: New function, copied from xterm.c
src/w32fns.c (unwind_create_frame) [GLYPH_DEBUG]: Fix broken
reference to image_cache->refcount.
(x_create_tip_frame): Fix broken use of FRAME_IMAGE_CACHE.
| -rw-r--r-- | src/ChangeLog | 11 | ||||
| -rw-r--r-- | src/w32fns.c | 4 | ||||
| -rw-r--r-- | src/w32term.c | 25 |
3 files changed, 38 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c72c8ae4d65..b3614db2d55 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2012-05-18 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | Fix compilation with -DGLYPH_DEBUG=1 on MS-Windows. | ||
| 4 | |||
| 5 | * w32term.c [GLYPH_DEBUG]: Add prototype for x_check_font. | ||
| 6 | (x_check_font) [GLYPH_DEBUG]: New function, copied from xterm.c | ||
| 7 | |||
| 8 | * w32fns.c (unwind_create_frame) [GLYPH_DEBUG]: Fix broken | ||
| 9 | reference to image_cache->refcount. | ||
| 10 | (x_create_tip_frame): Fix broken use of FRAME_IMAGE_CACHE. | ||
| 11 | |||
| 1 | 2012-05-17 Juri Linkov <juri@jurta.org> | 12 | 2012-05-17 Juri Linkov <juri@jurta.org> |
| 2 | 13 | ||
| 3 | * search.c (Fword_search_regexp, Fword_search_backward) | 14 | * search.c (Fword_search_regexp, Fword_search_backward) |
diff --git a/src/w32fns.c b/src/w32fns.c index a3ccb4ea3e5..f5161117f9d 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -4003,7 +4003,7 @@ unwind_create_frame (Lisp_Object frame) | |||
| 4003 | #if GLYPH_DEBUG | 4003 | #if GLYPH_DEBUG |
| 4004 | /* Check that reference counts are indeed correct. */ | 4004 | /* Check that reference counts are indeed correct. */ |
| 4005 | xassert (dpyinfo->reference_count == dpyinfo_refcount); | 4005 | xassert (dpyinfo->reference_count == dpyinfo_refcount); |
| 4006 | xassert (dpyinfo->image_cache->refcount == image_cache_refcount); | 4006 | xassert (dpyinfo->terminal->image_cache->refcount == image_cache_refcount); |
| 4007 | #endif | 4007 | #endif |
| 4008 | return Qt; | 4008 | return Qt; |
| 4009 | } | 4009 | } |
| @@ -5236,7 +5236,7 @@ x_create_tip_frame (struct w32_display_info *dpyinfo, | |||
| 5236 | 5236 | ||
| 5237 | #if GLYPH_DEBUG | 5237 | #if GLYPH_DEBUG |
| 5238 | image_cache_refcount = | 5238 | image_cache_refcount = |
| 5239 | FRAME_IMAGE_CACHE ? FRAME_IMAGE_CACHE (f)->refcount : 0; | 5239 | FRAME_IMAGE_CACHE (f) ? FRAME_IMAGE_CACHE (f)->refcount : 0; |
| 5240 | dpyinfo_refcount = dpyinfo->reference_count; | 5240 | dpyinfo_refcount = dpyinfo->reference_count; |
| 5241 | #endif /* GLYPH_DEBUG */ | 5241 | #endif /* GLYPH_DEBUG */ |
| 5242 | FRAME_KBOARD (f) = kb; | 5242 | FRAME_KBOARD (f) = kb; |
diff --git a/src/w32term.c b/src/w32term.c index 18a3753f9e9..2ccd7574332 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -231,6 +231,10 @@ static void my_set_focus (struct frame *, HWND); | |||
| 231 | static void my_set_foreground_window (HWND); | 231 | static void my_set_foreground_window (HWND); |
| 232 | static void my_destroy_window (struct frame *, HWND); | 232 | static void my_destroy_window (struct frame *, HWND); |
| 233 | 233 | ||
| 234 | #if GLYPH_DEBUG | ||
| 235 | static void x_check_font (struct frame *, struct font *); | ||
| 236 | #endif | ||
| 237 | |||
| 234 | static Lisp_Object Qvendor_specific_keysyms; | 238 | static Lisp_Object Qvendor_specific_keysyms; |
| 235 | 239 | ||
| 236 | 240 | ||
| @@ -5906,6 +5910,27 @@ x_wm_set_icon_position (struct frame *f, int icon_x, int icon_y) | |||
| 5906 | 5910 | ||
| 5907 | 5911 | ||
| 5908 | /*********************************************************************** | 5912 | /*********************************************************************** |
| 5913 | Fonts | ||
| 5914 | ***********************************************************************/ | ||
| 5915 | |||
| 5916 | #if GLYPH_DEBUG | ||
| 5917 | |||
| 5918 | /* Check that FONT is valid on frame F. It is if it can be found in F's | ||
| 5919 | font table. */ | ||
| 5920 | |||
| 5921 | static void | ||
| 5922 | x_check_font (struct frame *f, struct font *font) | ||
| 5923 | { | ||
| 5924 | xassert (font != NULL && ! NILP (font->props[FONT_TYPE_INDEX])); | ||
| 5925 | if (font->driver->check) | ||
| 5926 | xassert (font->driver->check (f, font) == 0); | ||
| 5927 | } | ||
| 5928 | |||
| 5929 | #endif /* GLYPH_DEBUG != 0 */ | ||
| 5930 | |||
| 5931 | |||
| 5932 | |||
| 5933 | /*********************************************************************** | ||
| 5909 | Initialization | 5934 | Initialization |
| 5910 | ***********************************************************************/ | 5935 | ***********************************************************************/ |
| 5911 | 5936 | ||