mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-41861: Convert _sqlite3 CursorType and ConnectionType to heap types (GH-22478)
This commit is contained in:
parent
9031bd4fa4
commit
256e54acdb
6 changed files with 74 additions and 102 deletions
|
@ -52,7 +52,7 @@ typedef struct
|
|||
PyObject* in_weakreflist; /* List of weak references */
|
||||
} pysqlite_Cursor;
|
||||
|
||||
extern PyTypeObject pysqlite_CursorType;
|
||||
extern PyTypeObject *pysqlite_CursorType;
|
||||
|
||||
PyObject* pysqlite_cursor_execute(pysqlite_Cursor* self, PyObject* args);
|
||||
PyObject* pysqlite_cursor_executemany(pysqlite_Cursor* self, PyObject* args);
|
||||
|
@ -64,7 +64,7 @@ PyObject* pysqlite_cursor_fetchall(pysqlite_Cursor* self, PyObject* args);
|
|||
PyObject* pysqlite_noop(pysqlite_Connection* self, PyObject* args);
|
||||
PyObject* pysqlite_cursor_close(pysqlite_Cursor* self, PyObject* args);
|
||||
|
||||
int pysqlite_cursor_setup_types(void);
|
||||
int pysqlite_cursor_setup_types(PyObject *module);
|
||||
|
||||
#define UNKNOWN (-1)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue