Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
4fe18710
Commit
4fe18710
authored
Apr 02, 2001
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused variable declarations
parent
394e0113
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
17 deletions
+10
-17
src/BTrees/BTreeTemplate.c
src/BTrees/BTreeTemplate.c
+4
-4
src/BTrees/BucketTemplate.c
src/BTrees/BucketTemplate.c
+3
-9
src/BTrees/MergeTemplate.c
src/BTrees/MergeTemplate.c
+2
-2
src/BTrees/SetTemplate.c
src/BTrees/SetTemplate.c
+1
-2
No files found.
src/BTrees/BTreeTemplate.c
View file @
4fe18710
...
...
@@ -83,7 +83,7 @@
****************************************************************************/
#define BTREETEMPLATE_C "$Id: BTreeTemplate.c,v 1.1
4 2001/03/30 20:42:22 jim
Exp $\n"
#define BTREETEMPLATE_C "$Id: BTreeTemplate.c,v 1.1
5 2001/04/02 16:57:40 jeremy
Exp $\n"
/*
** _BTree_get
...
...
@@ -728,9 +728,9 @@ err:
static
int
_BTree_setstate
(
BTree
*
self
,
PyObject
*
state
,
int
noval
)
{
PyObject
*
items
,
*
o
,
*
firstbucket
=
0
;
PyObject
*
items
,
*
firstbucket
=
0
;
BTreeItem
*
d
;
int
len
,
l
,
i
,
r
,
copied
=
1
;
int
len
,
l
,
i
,
copied
=
1
;
if
(
_BTree_clear
(
self
)
<
0
)
return
-
1
;
...
...
@@ -1118,7 +1118,7 @@ BTree_byValue(BTree *self, PyObject *args)
PyObject
*
r
=
0
,
*
o
=
0
,
*
item
=
0
,
*
omin
;
VALUE_TYPE
min
;
VALUE_TYPE
v
;
int
i
,
l
,
copied
=
1
;
int
copied
=
1
;
SetIteration
it
=
{
0
,
0
};
PER_USE_OR_RETURN
(
self
,
NULL
);
...
...
src/BTrees/BucketTemplate.c
View file @
4fe18710
...
...
@@ -82,7 +82,7 @@
****************************************************************************/
#define BUCKETTEMPLATE_C "$Id: BucketTemplate.c,v 1.1
2 2001/03/30 20:42:22 jim
Exp $\n"
#define BUCKETTEMPLATE_C "$Id: BucketTemplate.c,v 1.1
3 2001/04/02 16:57:40 jeremy
Exp $\n"
/*
** _bucket_get
...
...
@@ -336,7 +336,7 @@ static PyObject *
Mapping_update
(
PyObject
*
self
,
PyObject
*
args
)
{
PyObject
*
seq
=
0
,
*
o
,
*
t
,
*
v
,
*
tb
,
*
k
;
int
i
,
n
=
0
,
ind
;
int
i
,
ind
;
UNLESS
(
PyArg_ParseTuple
(
args
,
"|O:update"
,
&
seq
))
return
NULL
;
...
...
@@ -483,8 +483,6 @@ static int
Bucket_findRangeEnd
(
Bucket
*
self
,
PyObject
*
keyarg
,
int
low
,
int
*
offset
)
{
int
min
,
max
,
i
,
l
,
cmp
,
copied
=
1
;
Bucket
*
chase
;
Bucket
*
release
=
NULL
;
KEY_TYPE
key
;
COPY_KEY_FROM_ARG
(
key
,
keyarg
,
copied
);
...
...
@@ -872,8 +870,6 @@ bucket__p_deactivate(Bucket *self, PyObject *args)
static
PyObject
*
bucket_clear
(
Bucket
*
self
,
PyObject
*
args
)
{
int
i
;
PER_USE_OR_RETURN
(
self
,
NULL
);
if
(
self
->
len
)
...
...
@@ -951,7 +947,7 @@ err:
static
int
_bucket_setstate
(
Bucket
*
self
,
PyObject
*
args
)
{
PyObject
*
k
,
*
v
,
*
r
,
*
items
;
PyObject
*
k
,
*
v
,
*
items
;
Bucket
*
next
=
0
;
int
i
,
l
,
len
,
copied
=
1
;
KEY_TYPE
*
keys
;
...
...
@@ -1175,8 +1171,6 @@ static struct PyMethodDef Bucket_methods[] = {
static
void
Bucket_dealloc
(
Bucket
*
self
)
{
int
i
;
_bucket_clear
(
self
);
PER_DEL
(
self
);
...
...
src/BTrees/MergeTemplate.c
View file @
4fe18710
...
...
@@ -83,7 +83,7 @@
****************************************************************************/
#define MERGETEMPLATE_C "$Id: MergeTemplate.c,v 1.
3 2001/03/20 13:52:00 jim
Exp $\n"
#define MERGETEMPLATE_C "$Id: MergeTemplate.c,v 1.
4 2001/04/02 16:57:40 jeremy
Exp $\n"
/****************************************************************************
Set operations
...
...
@@ -121,7 +121,7 @@ bucket_merge(Bucket *s1, Bucket *s2, Bucket *s3)
{
Bucket
*
r
=
0
;
PyObject
*
s
;
SetIteration
i1
=
{
0
,
0
,
0
},
i2
=
{
0
,
0
,
0
},
i3
=
{
0
,
0
,
0
}
,
it
;
SetIteration
i1
=
{
0
,
0
,
0
},
i2
=
{
0
,
0
,
0
},
i3
=
{
0
,
0
,
0
};
int
cmp12
,
cmp13
,
cmp23
,
mapping
=
0
,
set
;
if
(
initSetIteration
(
&
i1
,
OBJECT
(
s1
),
0
,
&
mapping
)
<
0
)
return
NULL
;
...
...
src/BTrees/SetTemplate.c
View file @
4fe18710
...
...
@@ -83,7 +83,7 @@
****************************************************************************/
#define SETTEMPLATE_C "$Id: SetTemplate.c,v 1.1
0 2001/03/21 14:16:58 jim
Exp $\n"
#define SETTEMPLATE_C "$Id: SetTemplate.c,v 1.1
1 2001/04/02 16:57:40 jeremy
Exp $\n"
static
PyObject
*
Set_insert
(
Bucket
*
self
,
PyObject
*
args
)
...
...
@@ -150,7 +150,6 @@ _set_setstate(Bucket *self, PyObject *args)
Bucket
*
next
=
0
;
int
i
,
l
,
copied
=
1
;
KEY_TYPE
*
keys
;
VALUE_TYPE
*
values
;
UNLESS
(
PyArg_ParseTuple
(
args
,
"O|O"
,
&
items
,
&
next
))
return
-
1
;
...
...
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