• Home
  • Raw
  • Download

Lines Matching refs:weakref

214     PyObject* weakref;  in pysqlite_do_all_statements()  local
219 weakref = PyList_GetItem(self->statements, i); in pysqlite_do_all_statements()
220 statement = PyWeakref_GetObject(weakref); in pysqlite_do_all_statements()
234 weakref = PyList_GetItem(self->cursors, i); in pysqlite_do_all_statements()
235 cursor = (pysqlite_Cursor*)PyWeakref_GetObject(weakref); in pysqlite_do_all_statements()
271 PyObject* weakref; in pysqlite_connection_register_cursor() local
273 weakref = PyWeakref_NewRef((PyObject*)cursor, NULL); in pysqlite_connection_register_cursor()
274 if (!weakref) { in pysqlite_connection_register_cursor()
278 if (PyList_Append(connection->cursors, weakref) != 0) { in pysqlite_connection_register_cursor()
279 Py_CLEAR(weakref); in pysqlite_connection_register_cursor()
283 Py_DECREF(weakref); in pysqlite_connection_register_cursor()
746 PyObject* weakref; in _pysqlite_drop_unused_statement_references() local
762 weakref = PyList_GetItem(self->statements, i); in _pysqlite_drop_unused_statement_references()
763 if (PyWeakref_GetObject(weakref) != Py_None) { in _pysqlite_drop_unused_statement_references()
764 if (PyList_Append(new_list, weakref) != 0) { in _pysqlite_drop_unused_statement_references()
777 PyObject* weakref; in _pysqlite_drop_unused_cursor_references() local
793 weakref = PyList_GetItem(self->cursors, i); in _pysqlite_drop_unused_cursor_references()
794 if (PyWeakref_GetObject(weakref) != Py_None) { in _pysqlite_drop_unused_cursor_references()
795 if (PyList_Append(new_list, weakref) != 0) { in _pysqlite_drop_unused_cursor_references()
1221 PyObject* weakref; in pysqlite_connection_call() local
1261 weakref = PyWeakref_NewRef((PyObject*)statement, NULL); in pysqlite_connection_call()
1262 if (weakref == NULL) in pysqlite_connection_call()
1264 if (PyList_Append(self->statements, weakref) != 0) { in pysqlite_connection_call()
1265 Py_DECREF(weakref); in pysqlite_connection_call()
1268 Py_DECREF(weakref); in pysqlite_connection_call()