]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix xassert-related bootstrap errors.
authorKaroly Lorentey <lorentey@elte.hu>
Thu, 3 Feb 2005 23:44:58 +0000 (23:44 +0000)
committerKaroly Lorentey <lorentey@elte.hu>
Thu, 3 Feb 2005 23:44:58 +0000 (23:44 +0000)
* 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

src/dispnew.c
src/xfaces.c
src/xfns.c

index 3fef2af74292611426c4995d878827a5ff60ffb4..47e36aa991cf6836b6e1661dbd02b96f2b96df46 100644 (file)
@@ -2766,9 +2766,11 @@ build_frame_matrix_from_leaf_window (frame_matrix, w)
              SET_CHAR_GLYPH_FROM_GLYPH (*border, right_border_glyph);
            }
 
+#if GLYPH_DEBUG
          /* Window row window_y must be a slice of frame row
             frame_y.  */
          xassert (glyph_row_slice_p (window_row, frame_row));
+#endif
 
          /* If rows are in sync, we don't have to copy glyphs because
             frame and window share glyphs.  */
index e592357c0672bdf119309b043fc59cf66816dc57..0c4665a4cb69d7488b52ca1657715ae8a42365fe 100644 (file)
@@ -741,7 +741,9 @@ x_free_gc (f, gc)
      GC gc;
 {
   BLOCK_INPUT;
+#if GLYPH_DEBUG
   xassert (--ngcs >= 0);
+#endif
   XFreeGC (FRAME_X_DISPLAY (f), gc);
   UNBLOCK_INPUT;
 }
index cafa36ae11c71a23e53164cea3f2fad36944ec50..eaae071ef267d19f89341591c279254f8bb3308f 100644 (file)
@@ -2873,9 +2873,11 @@ unwind_create_frame (frame)
 
       x_free_frame_resources (f);
 
+#if GLYPH_DEBUG
       /* Check that reference counts are indeed correct.  */
       xassert (dpyinfo->reference_count == dpyinfo_refcount);
       xassert (dpyinfo->image_cache->refcount == image_cache_refcount);
+#endif
       return Qt;
     }