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
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
Kirill Smelkov
ZEO
Commits
b08f8e50
Commit
b08f8e50
authored
May 07, 2011
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated indentation.
parent
ec66d629
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
905 additions
and
905 deletions
+905
-905
src/BTrees/BucketTemplate.c
src/BTrees/BucketTemplate.c
+905
-905
No files found.
src/BTrees/BucketTemplate.c
View file @
b08f8e50
...
...
@@ -10,7 +10,7 @@
WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
FOR A PARTICULAR PURPOSE
****************************************************************************/
****************************************************************************/
#define BUCKETTEMPLATE_C "$Id$\n"
...
...
@@ -46,7 +46,7 @@
} \
(INDEX) = _i; \
(ABSENT) = _cmp; \
}
}
/*
** _bucket_get
...
...
@@ -96,7 +96,7 @@ _bucket_get(Bucket *self, PyObject *keyarg, int has_key)
PyErr_SetObject
(
PyExc_KeyError
,
keyarg
);
}
Done:
Done:
PER_UNUSE
(
self
);
return
r
;
...
...
@@ -164,7 +164,7 @@ Bucket_grow(Bucket *self, int newsize, int noval)
self
->
size
=
newsize
;
return
0
;
Overflow:
Overflow:
PyErr_NoMemory
();
return
-
1
;
}
...
...
@@ -418,7 +418,7 @@ _bucket_set(Bucket *self, PyObject *keyarg, PyObject *v,
if
(
PER_CHANGED
(
self
)
>=
0
)
result
=
1
;
Done:
Done:
PER_UNUSE
(
self
);
return
result
;
}
...
...
@@ -602,7 +602,7 @@ Bucket_deleteNextBucket(Bucket *self)
}
result
=
0
;
Done:
Done:
PER_UNUSE
(
self
);
return
result
;
}
...
...
@@ -642,7 +642,7 @@ Done:
If low false, sets *offset to 1, returns 1.
The 1, 3 and 5 examples are the same when exclude_equal is true.
*/
*/
static
int
Bucket_findRangeEnd
(
Bucket
*
self
,
PyObject
*
keyarg
,
int
low
,
int
exclude_equal
,
int
*
offset
)
...
...
@@ -679,7 +679,7 @@ Bucket_findRangeEnd(Bucket *self, PyObject *keyarg, int low, int exclude_equal,
if
(
result
)
*
offset
=
i
;
Done:
Done:
PER_UNUSE
(
self
);
return
result
;
}
...
...
@@ -1039,7 +1039,7 @@ bucket__p_deactivate(Bucket *self, PyObject *args, PyObject *keywords)
if
(
args
&&
PyTuple_GET_SIZE
(
args
)
>
0
)
{
PyErr_SetString
(
PyExc_TypeError
,
"_p_deactivate takes not
positional arguments"
);
"_p_deactivate takes no
positional arguments"
);
return
NULL
;
}
if
(
keywords
)
{
...
...
@@ -1088,7 +1088,7 @@ bucket_clear(Bucket *self, PyObject *args)
Py_INCREF
(
Py_None
);
return
Py_None
;
err:
err:
PER_UNUSE
(
self
);
return
NULL
;
}
...
...
@@ -1338,7 +1338,7 @@ bucket_pop(Bucket *self, PyObject *args)
if
(
Bucket_length
(
self
)
==
0
)
PyErr_SetString
(
PyExc_KeyError
,
"pop(): Bucket is empty"
);
return
NULL
;
}
}
/* Search bucket self for key. This is the sq_contains slot of the
* PySequenceMethods.
...
...
@@ -1409,7 +1409,7 @@ buildBucketIter(Bucket *self, PyObject *args, PyObject *kw, char kind)
result
=
BTreeIter_new
(
items
);
/* win or lose, we're done */
Py_DECREF
(
items
);
Done:
Done:
PER_UNUSE
(
self
);
return
(
PyObject
*
)
result
;
}
...
...
@@ -1487,7 +1487,7 @@ _bucket__p_resolveConflict(PyObject *ob_type, PyObject *s[3])
else
result
=
bucket_merge
(
b
[
0
],
b
[
1
],
b
[
2
]);
Done:
Done:
Py_XDECREF
(
meth
);
Py_XDECREF
(
a
);
Py_XDECREF
(
b
[
0
]);
...
...
@@ -1667,7 +1667,7 @@ bucket_traverse(Bucket *self, visitproc visit, void *arg)
VISIT
(
self
->
next
);
Done:
Done:
return
err
;
#undef VISIT
...
...
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