Commit f23bd9d8 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 6a6da1ad
...@@ -959,7 +959,7 @@ pyfile_dealloc(PyObject *pyfile0) ...@@ -959,7 +959,7 @@ pyfile_dealloc(PyObject *pyfile0)
PyBigFile *pyfile = container_of(pyfile0, PyBigFile, pyobj); PyBigFile *pyfile = container_of(pyfile0, PyBigFile, pyobj);
pyfile->blkmmap_ops = NULL; pyfile->blkmmap_ops = NULL;
Py_CLEAR(pyfile->blkmmapper_pycapsule); Py_CLEAR(pyfile->blkmmapper);
pyfile->pyobj.ob_type->tp_free(&pyfile->pyobj); pyfile->pyobj.ob_type->tp_free(&pyfile->pyobj);
} }
...@@ -994,7 +994,7 @@ pyfile_new(PyTypeObject *type, PyObject *args, PyObject *kw) ...@@ -994,7 +994,7 @@ pyfile_new(PyTypeObject *type, PyObject *args, PyObject *kw)
return NULL; return NULL;
} }
self->blkmmapper_pycapsule = blkmmapper; self->blkmmapper = blkmmapper;
self->blkmmap_ops = blkmmap_ops; self->blkmmap_ops = blkmmap_ops;
// FIXME "k" = unsigned long - we need size_t // FIXME "k" = unsigned long - we need size_t
......
...@@ -111,9 +111,9 @@ struct PyBigFile { ...@@ -111,9 +111,9 @@ struct PyBigFile {
BigFile file; BigFile file;
/* PyCapsule object with blkmmapper if BigFile subclass has it | NULL */ /* blkmmapper is PyCapsule object with type.blkmmapper if BigFile subclass has it | NULL */
PyObject *blkmmapper_pycapsule; // XXX traverse for GC? PyObject *blkmmapper;
/* bigfile_ops extract from ^^^ capsule | NULL */ /* bigfile_ops extracted from ^^^ capsule | NULL */
bigfile_ops *blkmmap_ops; bigfile_ops *blkmmap_ops;
}; };
typedef struct PyBigFile PyBigFile; 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