The DEBUG macro is checked for its value in one place and if it is
defined in another. Make this consistent across the two cases and use
the same style that we did in mktime.c, which is to check if the macro
is defined and it is set.
2014-08-01 Siddhesh Poyarekar <siddhesh@redhat.com>
+ * posix/regex_internal.c: Check if DEBUG is defined and is
+ set.
+
* include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
(HAVE_MBSRTOWCS): Likewise.
* posix/fnmatch.c: Include string.h unconditionally.
pstr->valid_len - offset);
pstr->valid_len -= offset;
pstr->valid_raw_len -= offset;
-#if DEBUG
+#if defined DEBUG && DEBUG
assert (pstr->valid_len > 0);
#endif
}
int wc_idx = idx;
while(input->wcs[wc_idx] == WEOF)
{
-#ifdef DEBUG
+#if defined DEBUG && DEBUG
/* It must not happen. */
assert (wc_idx >= 0);
#endif