Commit 94c2f2bf authored by Jim Fulton's avatar Jim Fulton

Consistent indentation.

parent 283addf7
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
FOR A PARTICULAR PURPOSE FOR A PARTICULAR PURPOSE
****************************************************************************/ ****************************************************************************/
#define BTREETEMPLATE_C "$Id$\n" #define BTREETEMPLATE_C "$Id$\n"
...@@ -125,10 +125,10 @@ BTree_check_inner(BTree *self, Bucket *nextbucket) ...@@ -125,10 +125,10 @@ BTree_check_inner(BTree *self, Bucket *nextbucket)
result = 0; result = 0;
goto Done; goto Done;
Error: Error:
PyErr_SetString(PyExc_AssertionError, errormsg); PyErr_SetString(PyExc_AssertionError, errormsg);
result = -1; result = -1;
Done: Done:
/* No point updating access time -- this isn't a "real" use. */ /* No point updating access time -- this isn't a "real" use. */
PER_ALLOW_DEACTIVATION(self); PER_ALLOW_DEACTIVATION(self);
if (activated_child) { if (activated_child) {
...@@ -214,7 +214,7 @@ _BTree_get(BTree *self, PyObject *keyarg, int has_key) ...@@ -214,7 +214,7 @@ _BTree_get(BTree *self, PyObject *keyarg, int has_key)
} }
} }
Done: Done:
PER_UNUSE(self); PER_UNUSE(self);
return result; return result;
} }
...@@ -785,7 +785,7 @@ _BTree_set(BTree *self, PyObject *keyarg, PyObject *value, ...@@ -785,7 +785,7 @@ _BTree_set(BTree *self, PyObject *keyarg, PyObject *value,
memmove(d, d+1, (self->len - min) * sizeof(BTreeItem)); memmove(d, d+1, (self->len - min) * sizeof(BTreeItem));
changed = 1; changed = 1;
Done: Done:
#ifdef PERSISTENT #ifdef PERSISTENT
if (changed) { if (changed) {
if (PER_CHANGED(self) < 0) goto Error; if (PER_CHANGED(self) < 0) goto Error;
...@@ -794,7 +794,7 @@ Done: ...@@ -794,7 +794,7 @@ Done:
PER_UNUSE(self); PER_UNUSE(self);
return status; return status;
Error: Error:
assert(PyErr_Occurred()); assert(PyErr_Occurred());
if (self_was_empty) { if (self_was_empty) {
/* BTree_grow may have left the BTree in an invalid state. Make /* BTree_grow may have left the BTree in an invalid state. Make
...@@ -888,7 +888,7 @@ BTree_clear(BTree *self) ...@@ -888,7 +888,7 @@ BTree_clear(BTree *self)
Py_INCREF(Py_None); Py_INCREF(Py_None);
return Py_None; return Py_None;
err: err:
PER_UNUSE(self); PER_UNUSE(self);
return NULL; return NULL;
} }
...@@ -1334,7 +1334,7 @@ BTree_findRangeEnd(BTree *self, PyObject *keyarg, int low, int exclude_equal, ...@@ -1334,7 +1334,7 @@ BTree_findRangeEnd(BTree *self, PyObject *keyarg, int low, int exclude_equal,
else else
result = 0; /* simply not found */ result = 0; /* simply not found */
Done: Done:
if (self_got_rebound) { if (self_got_rebound) {
PER_UNUSE(self); PER_UNUSE(self);
} }
...@@ -2039,7 +2039,7 @@ BTree_traverse(BTree *self, visitproc visit, void *arg) ...@@ -2039,7 +2039,7 @@ BTree_traverse(BTree *self, visitproc visit, void *arg)
VISIT(self->firstbucket); VISIT(self->firstbucket);
Done: Done:
return err; return err;
#undef VISIT #undef VISIT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment