PyAPI_FUNC(void) PyUnstable_EnableTryIncRef(PyObject *);
PyAPI_FUNC(int) PyUnstable_Object_IsUniquelyReferenced(PyObject *);
-
-/* Utility for the tp_traverse slot of mutable heap types that have no other
- * references. */
-PyAPI_FUNC(int) _PyObject_VisitType(PyObject *op, visitproc visit, void *arg);
}
#endif
+/* Utility for the tp_traverse slot of mutable heap types that have no other
+ * references. */
+PyAPI_FUNC(int) _PyObject_VisitType(PyObject *op, visitproc visit, void *arg);
+
#ifdef __cplusplus
}
#endif
#endif
#include "Python.h"
+#include "pycore_object.h" // _PyObject_VisitType()
#include <sys/types.h>
#include <sys/stat.h>
#endif
#include <Python.h>
+#include "pycore_object.h" // _PyObject_VisitType()
#include "pycore_pystate.h" // _PyThreadState_GET()
#include "pycore_typeobject.h"
-#include "complexobject.h"
#include <mpdecimal.h>
#endif
#include "Python.h"
-#include "pycore_pyerrors.h" // _PyErr_SetLocaleString()
+#include "pycore_object.h" // _PyObject_VisitType()
+#include "pycore_pyerrors.h" // _PyErr_SetLocaleString()
#include "gdbm.h"
#include <fcntl.h>
-#include <stdlib.h> // free()
+#include <stdlib.h> // free()
#include <sys/stat.h>
#include <sys/types.h>
*/
#include "multiprocessing.h"
+#include "pycore_object.h" // _PyObject_VisitType()
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h> // gettimeofday()
* 3. This notice may not be removed or altered from any source distribution.
*/
+#ifndef Py_BUILD_CORE_BUILTIN
+# define Py_BUILD_CORE_MODULE 1
+#endif
+
#include "prepare_protocol.h"
+#include "pycore_object.h" // _PyObject_VisitType()
+
+
static int
pysqlite_prepare_protocol_init(PyObject *self, PyObject *args, PyObject *kwargs)
{
* 3. This notice may not be removed or altered from any source distribution.
*/
+#ifndef Py_BUILD_CORE_BUILTIN
+# define Py_BUILD_CORE_MODULE 1
+#endif
+
#include "connection.h"
#include "statement.h"
#include "util.h"
+#include "pycore_object.h" // _PyObject_VisitType()
+
+
#define _pysqlite_Statement_CAST(op) ((pysqlite_Statement *)(op))
/* prototypes */
#include "Python.h"
#include "hashlib.h"
-#include "pycore_strhex.h" // _Py_strhex()
-#include "pycore_typeobject.h"
#include "pycore_moduleobject.h"
+#include "pycore_object.h" // _PyObject_VisitType()
+#include "pycore_strhex.h" // _Py_strhex()
+#include "pycore_typeobject.h"
// QUICK CPU AUTODETECTION
//
#endif
#include "Python.h"
-#include "pycore_strhex.h" // _Py_strhex()
+#include "pycore_object.h" // _PyObject_VisitType()
+#include "pycore_strhex.h" // _Py_strhex()
#include "hashlib.h"
#include "Python.h"
#include "hashlib.h"
+#include "pycore_object.h" // _PyObject_VisitType()
#include "pycore_strhex.h" // _Py_strhex()
#include "pycore_typeobject.h" // _PyType_GetModuleState()
#include "Python.h"
#include "pycore_moduleobject.h" // _PyModule_GetState()
-#include "pycore_typeobject.h" // _PyType_GetModuleState()
+#include "pycore_object.h" // _PyObject_VisitType()
#include "pycore_strhex.h" // _Py_strhex()
+#include "pycore_typeobject.h" // _PyType_GetModuleState()
#include "hashlib.h"
#endif
#include "Python.h"
+#include "pycore_object.h" // _PyObject_VisitType()
#include "pycore_strhex.h" // _Py_strhex()
#include "pycore_typeobject.h" // _PyType_GetModuleState()
#include "hashlib.h"
#include "pycore_capsule.h" // _PyCapsule_SetTraverse()
#include "pycore_fileutils.h" // _Py_set_inheritable()
#include "pycore_moduleobject.h" // _PyModule_GetState
+#include "pycore_object.h" // _PyObject_VisitType()
#include "pycore_time.h" // _PyTime_AsMilliseconds()
#include "pycore_pystate.h" // _Py_AssertHoldsTstate()
#endif
#include "Python.h"
+#include "pycore_object.h" // _PyObject_VisitType()
#include "pycore_ucnhash.h" // _PyUnicode_Name_CAPI
#include <stdbool.h>