bpo-41861: Convert _sqlite3 cache and node static types to heap types (GH-22417)

This commit is contained in:
Erlend Egeberg Aasland 2020-09-27 14:14:50 +02:00 committed by GitHub
parent 00eb063b66
commit a937ab45d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 48 additions and 99 deletions

View file

@ -59,8 +59,8 @@ typedef struct
int decref_factory;
} pysqlite_Cache;
extern PyTypeObject pysqlite_NodeType;
extern PyTypeObject pysqlite_CacheType;
extern PyTypeObject *pysqlite_NodeType;
extern PyTypeObject *pysqlite_CacheType;
int pysqlite_node_init(pysqlite_Node* self, PyObject* args, PyObject* kwargs);
void pysqlite_node_dealloc(pysqlite_Node* self);
@ -69,6 +69,6 @@ int pysqlite_cache_init(pysqlite_Cache* self, PyObject* args, PyObject* kwargs);
void pysqlite_cache_dealloc(pysqlite_Cache* self);
PyObject* pysqlite_cache_get(pysqlite_Cache* self, PyObject* args);
int pysqlite_cache_setup_types(void);
int pysqlite_cache_setup_types(PyObject *module);
#endif