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
70ee3ccd
Commit
70ee3ccd
authored
Jun 12, 2006
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of function pointer cast.
parent
403019b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Modules/_bsddb.c
Modules/_bsddb.c
+3
-3
No files found.
Modules/_bsddb.c
View file @
70ee3ccd
...
...
@@ -104,7 +104,6 @@ static char *rcs_id = "$Id$";
#if (PY_VERSION_HEX < 0x02050000)
typedef
int
Py_ssize_t
;
typedef
inquiry
lenfunc
;
#endif
#ifdef WITH_THREAD
...
...
@@ -2682,12 +2681,13 @@ DB_set_encrypt(DBObject* self, PyObject* args, PyObject* kwargs)
/*-------------------------------------------------------------- */
/* Mapping and Dictionary-like access routines */
Py_ssize_t
DB_length
(
DBObject
*
self
)
Py_ssize_t
DB_length
(
PyObject
*
_
self
)
{
int
err
;
Py_ssize_t
size
=
0
;
int
flags
=
0
;
void
*
sp
;
DBObject
*
self
=
(
DBObject
*
)
_self
;
if
(
self
->
db
==
NULL
)
{
PyObject
*
t
=
Py_BuildValue
(
"(is)"
,
0
,
"DB object has been closed"
);
...
...
@@ -5154,7 +5154,7 @@ static PyMethodDef DB_methods[] = {
static
PyMappingMethods
DB_mapping
=
{
(
inquiry
)
DB_length
,
/*mp_length*/
DB_length
,
/*mp_length*/
(
binaryfunc
)
DB_subscript
,
/*mp_subscript*/
(
objobjargproc
)
DB_ass_sub
,
/*mp_ass_subscript*/
};
...
...
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