• Home
  • Raw
  • Download

Lines Matching refs:weakref

241     PyObject* weakref;  in pysqlite_do_all_statements()  local
246 weakref = PyList_GetItem(self->statements, i); in pysqlite_do_all_statements()
247 statement = PyWeakref_GetObject(weakref); in pysqlite_do_all_statements()
259 weakref = PyList_GetItem(self->cursors, i); in pysqlite_do_all_statements()
260 cursor = (pysqlite_Cursor*)PyWeakref_GetObject(weakref); in pysqlite_do_all_statements()
306 PyObject* weakref; in pysqlite_connection_register_cursor() local
308 weakref = PyWeakref_NewRef((PyObject*)cursor, NULL); in pysqlite_connection_register_cursor()
309 if (!weakref) { in pysqlite_connection_register_cursor()
313 if (PyList_Append(connection->cursors, weakref) != 0) { in pysqlite_connection_register_cursor()
314 Py_CLEAR(weakref); in pysqlite_connection_register_cursor()
318 Py_DECREF(weakref); in pysqlite_connection_register_cursor()
802 PyObject* weakref; in _pysqlite_drop_unused_statement_references() local
818 weakref = PyList_GetItem(self->statements, i); in _pysqlite_drop_unused_statement_references()
819 if (PyWeakref_GetObject(weakref) != Py_None) { in _pysqlite_drop_unused_statement_references()
820 if (PyList_Append(new_list, weakref) != 0) { in _pysqlite_drop_unused_statement_references()
833 PyObject* weakref; in _pysqlite_drop_unused_cursor_references() local
849 weakref = PyList_GetItem(self->cursors, i); in _pysqlite_drop_unused_cursor_references()
850 if (PyWeakref_GetObject(weakref) != Py_None) { in _pysqlite_drop_unused_cursor_references()
851 if (PyList_Append(new_list, weakref) != 0) { in _pysqlite_drop_unused_cursor_references()
1194 PyObject* weakref; in pysqlite_connection_call() local
1236 weakref = PyWeakref_NewRef((PyObject*)statement, NULL); in pysqlite_connection_call()
1237 if (!weakref) { in pysqlite_connection_call()
1242 if (PyList_Append(self->statements, weakref) != 0) { in pysqlite_connection_call()
1243 Py_CLEAR(weakref); in pysqlite_connection_call()
1247 Py_DECREF(weakref); in pysqlite_connection_call()