Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
5e3a675b
Commit
5e3a675b
authored
Mar 11, 2004
by
Neil Schemenauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename static functions, they should not have the _Py prefix.
parent
6cbba50a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
Objects/bufferobject.c
Objects/bufferobject.c
+10
-11
No files found.
Objects/bufferobject.c
View file @
5e3a675b
...
...
@@ -15,7 +15,7 @@ typedef struct {
static
PyObject
*
_PyBuffer_FromM
emory
(
PyObject
*
base
,
void
*
ptr
,
int
size
,
int
readonly
)
buffer_from_m
emory
(
PyObject
*
base
,
void
*
ptr
,
int
size
,
int
readonly
)
{
PyBufferObject
*
b
;
...
...
@@ -40,8 +40,8 @@ _PyBuffer_FromMemory(PyObject *base, void *ptr, int size, int readonly)
}
static
PyObject
*
_PyBuffer_FromO
bject
(
PyObject
*
base
,
int
offset
,
int
size
,
getreadbufferproc
proc
,
int
readonly
)
buffer_from_o
bject
(
PyObject
*
base
,
int
offset
,
int
size
,
getreadbufferproc
proc
,
int
readonly
)
{
PyBufferProcs
*
pb
=
base
->
ob_type
->
tp_as_buffer
;
void
*
p
;
...
...
@@ -76,7 +76,7 @@ _PyBuffer_FromObject(PyObject *base, int offset, int size,
if
(
PyBuffer_Check
(
base
)
&&
(((
PyBufferObject
*
)
base
)
->
b_base
)
)
base
=
((
PyBufferObject
*
)
base
)
->
b_base
;
return
_PyBuffer_FromM
emory
(
base
,
(
char
*
)
p
+
offset
,
size
,
readonly
);
return
buffer_from_m
emory
(
base
,
(
char
*
)
p
+
offset
,
size
,
readonly
);
}
...
...
@@ -93,8 +93,7 @@ PyBuffer_FromObject(PyObject *base, int offset, int size)
return
NULL
;
}
return
_PyBuffer_FromObject
(
base
,
offset
,
size
,
pb
->
bf_getreadbuffer
,
1
);
return
buffer_from_object
(
base
,
offset
,
size
,
pb
->
bf_getreadbuffer
,
1
);
}
PyObject
*
...
...
@@ -110,21 +109,21 @@ PyBuffer_FromReadWriteObject(PyObject *base, int offset, int size)
return
NULL
;
}
return
_PyBuffer_FromO
bject
(
base
,
offset
,
size
,
(
getreadbufferproc
)
pb
->
bf_getwritebuffer
,
0
);
return
buffer_from_o
bject
(
base
,
offset
,
size
,
(
getreadbufferproc
)
pb
->
bf_getwritebuffer
,
0
);
}
PyObject
*
PyBuffer_FromMemory
(
void
*
ptr
,
int
size
)
{
return
_PyBuffer_FromM
emory
(
NULL
,
ptr
,
size
,
1
);
return
buffer_from_m
emory
(
NULL
,
ptr
,
size
,
1
);
}
PyObject
*
PyBuffer_FromReadWriteMemory
(
void
*
ptr
,
int
size
)
{
return
_PyBuffer_FromM
emory
(
NULL
,
ptr
,
size
,
0
);
return
buffer_from_m
emory
(
NULL
,
ptr
,
size
,
0
);
}
PyObject
*
...
...
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