Lines Matching refs:weakref
208 PyObject* weakref;
213 weakref = PyList_GetItem(self->statements, i);
214 statement = PyWeakref_GetObject(weakref);
228 weakref = PyList_GetItem(self->cursors, i);
229 cursor = (pysqlite_Cursor*)PyWeakref_GetObject(weakref);
266 PyObject* weakref;
268 weakref = PyWeakref_NewRef((PyObject*)cursor, NULL);
269 if (!weakref) {
273 if (PyList_Append(connection->cursors, weakref) != 0) {
274 Py_CLEAR(weakref);
278 Py_DECREF(weakref);
761 PyObject* weakref;
777 weakref = PyList_GetItem(self->statements, i);
778 if (PyWeakref_GetObject(weakref) != Py_None) {
779 if (PyList_Append(new_list, weakref) != 0) {
792 PyObject* weakref;
808 weakref = PyList_GetItem(self->cursors, i);
809 if (PyWeakref_GetObject(weakref) != Py_None) {
810 if (PyList_Append(new_list, weakref) != 0) {
1215 PyObject* weakref;
1255 weakref = PyWeakref_NewRef((PyObject*)statement, NULL);
1256 if (weakref == NULL)
1258 if (PyList_Append(self->statements, weakref) != 0) {
1259 Py_DECREF(weakref);
1262 Py_DECREF(weakref);