Commit f23bd9d8 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 6a6da1ad
......@@ -959,7 +959,7 @@ pyfile_dealloc(PyObject *pyfile0)
PyBigFile *pyfile = container_of(pyfile0, PyBigFile, pyobj);
pyfile->blkmmap_ops = NULL;
Py_CLEAR(pyfile->blkmmapper_pycapsule);
Py_CLEAR(pyfile->blkmmapper);
pyfile->pyobj.ob_type->tp_free(&pyfile->pyobj);
}
......@@ -994,7 +994,7 @@ pyfile_new(PyTypeObject *type, PyObject *args, PyObject *kw)
return NULL;
}
self->blkmmapper_pycapsule = blkmmapper;
self->blkmmapper = blkmmapper;
self->blkmmap_ops = blkmmap_ops;
// FIXME "k" = unsigned long - we need size_t
......
......@@ -111,9 +111,9 @@ struct PyBigFile {
BigFile file;
/* PyCapsule object with blkmmapper if BigFile subclass has it | NULL */
PyObject *blkmmapper_pycapsule; // XXX traverse for GC?
/* bigfile_ops extract from ^^^ capsule | NULL */
/* blkmmapper is PyCapsule object with type.blkmmapper if BigFile subclass has it | NULL */
PyObject *blkmmapper;
/* bigfile_ops extracted from ^^^ capsule | NULL */
bigfile_ops *blkmmap_ops;
};
typedef struct PyBigFile PyBigFile;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment