}
return 1;
}
+#else
+static int
+_PyUnicode_CheckConsistency(void *op)
+{
+ return 1;
+}
#endif
/* --- Bloom Filters ----------------------------------------------------- */
_PyUnicode_LENGTH(unicode) = length;
PyUnicode_WRITE(PyUnicode_KIND(unicode), data, length, 0);
if (share_wstr || _PyUnicode_WSTR(unicode) == NULL) {
- _PyUnicode_CHECK(unicode);
+ _PyUnicode_CheckConsistency(unicode);
return 0;
}
}
_PyUnicode_WSTR(unicode) = wstr;
_PyUnicode_WSTR(unicode)[length] = 0;
_PyUnicode_WSTR_LENGTH(unicode) = length;
- _PyUnicode_CHECK(unicode);
+ _PyUnicode_CheckConsistency(unicode);
return 0;
}
*p_unicode = resize_compact(unicode, length);
if (*p_unicode == NULL)
return -1;
- _PyUnicode_CHECK(*p_unicode);
+ _PyUnicode_CheckConsistency(*p_unicode);
return 0;
} else
return resize_inplace((PyUnicodeObject*)unicode, length);