We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88941d6 commit c3d580bCopy full SHA for c3d580b
Include/cpython/listobject.h
@@ -21,9 +21,6 @@ typedef struct {
21
Py_ssize_t allocated;
22
} PyListObject;
23
24
-PyAPI_FUNC(PyObject *) _PyList_Extend(PyListObject *, PyObject *);
25
-PyAPI_FUNC(void) _PyList_DebugMallocStats(FILE *out);
26
-
27
/* Cast argument to PyListObject* type. */
28
#define _PyList_CAST(op) \
29
(assert(PyList_Check(op)), _Py_CAST(PyListObject*, (op)))
Include/internal/pycore_list.h
@@ -8,7 +8,9 @@ extern "C" {
8
# error "this header requires Py_BUILD_CORE define"
9
#endif
10
11
-#include "listobject.h" // _PyList_CAST()
+
12
+extern PyObject* _PyList_Extend(PyListObject *, PyObject *);
13
+extern void _PyList_DebugMallocStats(FILE *out);
14
15
16
/* runtime lifecycle */
0 commit comments