diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-05-28 10:39:53 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-05-28 10:39:53 +0000 |
commit | 243c1ba03f0b7031b0c8dce7036ae5b583f252c0 (patch) | |
tree | 48464a1d874bf593eecfbc6c191a838e244f40f6 /desktop | |
parent | 89396e7d2a8c9832ef0d3507a7c5856b2d9229d7 (diff) | |
download | netsurf-243c1ba03f0b7031b0c8dce7036ae5b583f252c0.tar.gz netsurf-243c1ba03f0b7031b0c8dce7036ae5b583f252c0.tar.bz2 |
Limit scope of manually-defined NDEBUG. Purge a bunch of redundant #undef NDEBUG.
svn path=/trunk/netsurf/; revision=7593
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/knockout.c | 5 | ||||
-rw-r--r-- | desktop/textinput.c | 1 |
2 files changed, 4 insertions, 2 deletions
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 <assert.h> #include <string.h> #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" |