From e509cfa6065d20e0d8d2b3ce9ac544355521bc89 Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Thu, 28 Jun 2012 11:50:50 +0400 Subject: * configure.in: Add glyphs category to --enable-checking option. (GLYPH_DEBUG): Define if glyphs debugging is enabled. * src/dispextern.h (GLYPH_DEBUG): Now defined in config.h if enabled with --enable-checking=[all,glyphs] configure option. Fix GLYPH_DEBUG usage assuming that it may be undefined, adjust comments accordingly. * src/dispnew.c: Fix GLYPH_DEBUG usage assuming that it may be undefined, adjust comments accordingly. * src/image.c: Likewise. * src/scroll.c: Likewise. * src/w32fns.c: Likewise. * src/w32term.c: Likewise. * src/xdisp.c: Likewise. * src/xfaces.c: Likewise. * src/xfns.c: Likewise. * src/xterm.c: Likewise. --- src/scroll.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/scroll.c') diff --git a/src/scroll.c b/src/scroll.c index 603e04575f6..86d775545b0 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -264,7 +264,7 @@ do_scrolling (struct frame *frame, struct glyph_matrix *current_matrix, for (k = 0; k < window_size; ++k) copy_from[k] = -1; -#if GLYPH_DEBUG +#ifdef GLYPH_DEBUG # define CHECK_BOUNDS \ do \ { \ @@ -322,7 +322,7 @@ do_scrolling (struct frame *frame, struct glyph_matrix *current_matrix, copy_from[i] = j; retained_p[j] = 1; -#if GLYPH_DEBUG +#ifdef GLYPH_DEBUG CHECK_BOUNDS; #endif } @@ -374,7 +374,7 @@ do_scrolling (struct frame *frame, struct glyph_matrix *current_matrix, mirrored_line_dance (current_matrix, unchanged_at_top, window_size, copy_from, retained_p); - /* Some sanity checks if GLYPH_DEBUG != 0. */ + /* Some sanity checks if GLYPH_DEBUG is defined. */ CHECK_MATRIX (current_matrix); if (terminal_window_p) -- cgit v1.2.1