File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -246,6 +246,10 @@ typedef struct {
246
246
} data; /* Canonical, smallest-form Unicode buffer */
247
247
} PyUnicodeObject;
248
248
249
+ PyAPI_FUNC (int ) _PyUnicode_CheckConsistency(
250
+ PyObject *op,
251
+ int check_content);
252
+
249
253
/* Fast access macros */
250
254
#define PyUnicode_WSTR_LENGTH (op ) \
251
255
(PyUnicode_IS_COMPACT_ASCII(op) ? \
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ extern "C" {
11
11
#include "pycore_pystate.h" /* _PyRuntime */
12
12
13
13
PyAPI_FUNC (int ) _PyType_CheckConsistency (PyTypeObject * type );
14
- PyAPI_FUNC (int ) _PyUnicode_CheckConsistency (PyObject * op , int check_content );
15
14
PyAPI_FUNC (int ) _PyDict_CheckConsistency (PyObject * mp , int check_content );
16
15
17
16
/* Tell the GC to track this object.
Original file line number Diff line number Diff line change @@ -1032,16 +1032,6 @@ PyAPI_FUNC(int) PyUnicode_IsIdentifier(PyObject *s);
1032
1032
1033
1033
/* === Characters Type APIs =============================================== */
1034
1034
1035
- #if defined(Py_DEBUG ) && !defined(Py_LIMITED_API )
1036
- PyAPI_FUNC (int ) _PyUnicode_CheckConsistency (
1037
- PyObject * op ,
1038
- int check_content );
1039
- #elif !defined(NDEBUG )
1040
- /* For asserts that call _PyUnicode_CheckConsistency(), which would
1041
- * otherwise be a problem when building with asserts but without Py_DEBUG. */
1042
- #define _PyUnicode_CheckConsistency (op , check_content ) PyUnicode_Check(op)
1043
- #endif
1044
-
1045
1035
#ifndef Py_LIMITED_API
1046
1036
# define Py_CPYTHON_UNICODEOBJECT_H
1047
1037
# include "cpython/unicodeobject.h"
You can’t perform that action at this time.
0 commit comments