Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
f23bd9d8
Commit
f23bd9d8
authored
Dec 19, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
6a6da1ad
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
bigfile/_bigfile.c
bigfile/_bigfile.c
+3
-3
bigfile/_bigfile.h
bigfile/_bigfile.h
+3
-3
No files found.
bigfile/_bigfile.c
View file @
f23bd9d8
...
...
@@ -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
...
...
bigfile/_bigfile.h
View file @
f23bd9d8
...
...
@@ -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 extract
ed
from ^^^ capsule | NULL */
bigfile_ops
*
blkmmap_ops
;
};
typedef
struct
PyBigFile
PyBigFile
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment