From 243c1ba03f0b7031b0c8dce7036ae5b583f252c0 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 28 May 2009 10:39:53 +0000 Subject: Limit scope of manually-defined NDEBUG. Purge a bunch of redundant #undef NDEBUG. svn path=/trunk/netsurf/; revision=7593 --- desktop/knockout.c | 5 +++-- desktop/textinput.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/knockout.c b/desktop/knockout.c index d99c96909..b1075f3cb 100644 --- a/desktop/knockout.c +++ b/desktop/knockout.c @@ -48,7 +48,7 @@ * |#################| |#################| * +-----------------+ +-----------------+ * - * With knockoout rendering, the bottom rectangle is split up into smaller + * With knockout rendering, the bottom rectangle is split up into smaller * ones and each pixel is just plotted once: * * +-----------------+ @@ -62,13 +62,14 @@ * +-----------------+ */ -#define NDEBUG #include #include #include "desktop/knockout.h" #include "desktop/plotters.h" #include "image/bitmap.h" +#define NDEBUG #include "utils/log.h" +#undef NDEBUG #define KNOCKOUT_ENTRIES 3072 /* 40 bytes each */ #define KNOCKOUT_BOXES 768 /* 28 bytes each */ diff --git a/desktop/textinput.c b/desktop/textinput.c index 927088331..34425e522 100644 --- a/desktop/textinput.c +++ b/desktop/textinput.c @@ -38,6 +38,7 @@ #include "render/layout.h" #define NDEBUG #include "utils/log.h" +#undef NDEBUG #include "utils/talloc.h" #include "utils/utf8.h" #include "utils/utils.h" -- cgit v1.2.3