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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
5d062210
Commit
5d062210
authored
Dec 17, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8d15be09
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
bigfile/_bigfile.c
bigfile/_bigfile.c
+6
-6
No files found.
bigfile/_bigfile.c
View file @
5d062210
...
...
@@ -929,7 +929,7 @@ pyfileh_open(PyObject *pyfile0, PyObject *args)
return
NULL
;
Py_INCREF
(
pyfile
);
err
=
fileh_open
(
&
pyfileh
->
fileh
,
py
file
,
ram
,
DONT_MMAP_OVERLAY
);
// XXX -> MMAP_OVERLAY if requested
err
=
fileh_open
(
&
pyfileh
->
fileh
,
&
pyfile
->
file
,
ram
,
DONT_MMAP_OVERLAY
);
// XXX -> MMAP_OVERLAY if requested
if
(
err
)
{
XPyErr_SetFromErrno
();
Py_DECREF
(
pyfile
);
...
...
@@ -937,7 +937,7 @@ pyfileh_open(PyObject *pyfile0, PyObject *args)
return
NULL
;
}
return
pyfileh
;
return
&
pyfileh
->
pyobj
;
}
...
...
@@ -952,18 +952,18 @@ pyfile_new(PyTypeObject *type, PyObject *args, PyObject *kw)
// FIXME "k" = unsigned long - we need size_t
static
char
*
kw_list
[]
=
{
"blksize"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"k"
,
kw_list
,
&
self
->
blksize
))
{
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kw
,
"k"
,
kw_list
,
&
self
->
file
.
blksize
))
{
Py_DECREF
(
self
);
return
NULL
;
}
self
->
file_ops
=
&
pybigfile_ops
;
return
self
;
self
->
file
.
file
_ops
=
&
pybigfile_ops
;
return
&
self
->
pyobj
;
}
static
PyMemberDef
pyfile_members
[]
=
{
{
"blksize"
,
T_ULONG
/* XXX vs typeof(blksize) = size_t ? */
,
offsetof
(
PyBigFile
,
blksize
),
READONLY
,
"block size"
},
{
"blksize"
,
T_ULONG
/* XXX vs typeof(blksize) = size_t ? */
,
offsetof
(
PyBigFile
,
file
.
blksize
),
READONLY
,
"block size"
},
{
NULL
}
};
...
...
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