aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaroly Lorentey2005-02-03 23:44:58 +0000
committerKaroly Lorentey2005-02-03 23:44:58 +0000
commitbeb41cf7d9eaa19047b344f0f2fa71a8aa0a8b01 (patch)
treec8123f23a3d19c7aeaaeb196519c06a1f9645de9 /src
parent960ae3d12bacc05a8565a255549b2e5169f5b46c (diff)
downloademacs-beb41cf7d9eaa19047b344f0f2fa71a8aa0a8b01.tar.gz
emacs-beb41cf7d9eaa19047b344f0f2fa71a8aa0a8b01.zip
Fix xassert-related bootstrap errors.
* src/xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG. * src/xfns.c (unwind_create_frame): Ditto. * src/dispnew.c (build_frame_matrix_from_leaf_window): Ditto. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-283
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c2
-rw-r--r--src/xfaces.c2
-rw-r--r--src/xfns.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 3fef2af7429..47e36aa991c 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -2766,9 +2766,11 @@ build_frame_matrix_from_leaf_window (frame_matrix, w)
2766 SET_CHAR_GLYPH_FROM_GLYPH (*border, right_border_glyph); 2766 SET_CHAR_GLYPH_FROM_GLYPH (*border, right_border_glyph);
2767 } 2767 }
2768 2768
2769#if GLYPH_DEBUG
2769 /* Window row window_y must be a slice of frame row 2770 /* Window row window_y must be a slice of frame row
2770 frame_y. */ 2771 frame_y. */
2771 xassert (glyph_row_slice_p (window_row, frame_row)); 2772 xassert (glyph_row_slice_p (window_row, frame_row));
2773#endif
2772 2774
2773 /* If rows are in sync, we don't have to copy glyphs because 2775 /* If rows are in sync, we don't have to copy glyphs because
2774 frame and window share glyphs. */ 2776 frame and window share glyphs. */
diff --git a/src/xfaces.c b/src/xfaces.c
index e592357c067..0c4665a4cb6 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -741,7 +741,9 @@ x_free_gc (f, gc)
741 GC gc; 741 GC gc;
742{ 742{
743 BLOCK_INPUT; 743 BLOCK_INPUT;
744#if GLYPH_DEBUG
744 xassert (--ngcs >= 0); 745 xassert (--ngcs >= 0);
746#endif
745 XFreeGC (FRAME_X_DISPLAY (f), gc); 747 XFreeGC (FRAME_X_DISPLAY (f), gc);
746 UNBLOCK_INPUT; 748 UNBLOCK_INPUT;
747} 749}
diff --git a/src/xfns.c b/src/xfns.c
index cafa36ae11c..eaae071ef26 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -2873,9 +2873,11 @@ unwind_create_frame (frame)
2873 2873
2874 x_free_frame_resources (f); 2874 x_free_frame_resources (f);
2875 2875
2876#if GLYPH_DEBUG
2876 /* Check that reference counts are indeed correct. */ 2877 /* Check that reference counts are indeed correct. */
2877 xassert (dpyinfo->reference_count == dpyinfo_refcount); 2878 xassert (dpyinfo->reference_count == dpyinfo_refcount);
2878 xassert (dpyinfo->image_cache->refcount == image_cache_refcount); 2879 xassert (dpyinfo->image_cache->refcount == image_cache_refcount);
2880#endif
2879 return Qt; 2881 return Qt;
2880 } 2882 }
2881 2883