##// END OF EJS Templates
cext: move braces for control statements to same line...
Gregory Szorc -
r34438:ce26a138 default
parent child Browse files
Show More
@@ -96,14 +96,12 b' static PyObject *b85decode(PyObject *sel'
96 dst = PyBytes_AsString(out);
96 dst = PyBytes_AsString(out);
97
97
98 i = 0;
98 i = 0;
99 while (i < len)
99 while (i < len) {
100 {
101 acc = 0;
100 acc = 0;
102 cap = len - i - 1;
101 cap = len - i - 1;
103 if (cap > 4)
102 if (cap > 4)
104 cap = 4;
103 cap = 4;
105 for (j = 0; j < cap; i++, j++)
104 for (j = 0; j < cap; i++, j++) {
106 {
107 c = b85dec[(int)*text++] - 1;
105 c = b85dec[(int)*text++] - 1;
108 if (c < 0)
106 if (c < 0)
109 return PyErr_Format(
107 return PyErr_Format(
@@ -112,8 +110,7 b' static PyObject *b85decode(PyObject *sel'
112 (int)i);
110 (int)i);
113 acc = acc * 85 + c;
111 acc = acc * 85 + c;
114 }
112 }
115 if (i++ < len)
113 if (i++ < len) {
116 {
117 c = b85dec[(int)*text++] - 1;
114 c = b85dec[(int)*text++] - 1;
118 if (c < 0)
115 if (c < 0)
119 return PyErr_Format(
116 return PyErr_Format(
@@ -136,8 +133,7 b' static PyObject *b85decode(PyObject *sel'
136 acc *= 85;
133 acc *= 85;
137 if (cap && cap < 4)
134 if (cap && cap < 4)
138 acc += 0xffffff >> (cap - 1) * 8;
135 acc += 0xffffff >> (cap - 1) * 8;
139 for (j = 0; j < cap; j++)
136 for (j = 0; j < cap; j++) {
140 {
141 acc = (acc << 8) | (acc >> 24);
137 acc = (acc << 8) | (acc >> 24);
142 *dst++ = acc;
138 *dst++ = acc;
143 }
139 }
@@ -445,8 +445,7 b' static Py_ssize_t add_roots_get_min(inde'
445 iter = PyObject_GetIter(list);
445 iter = PyObject_GetIter(list);
446 if (iter == NULL)
446 if (iter == NULL)
447 return -2;
447 return -2;
448 while ((iter_item = PyIter_Next(iter)))
448 while ((iter_item = PyIter_Next(iter))) {
449 {
450 iter_item_long = PyInt_AS_LONG(iter_item);
449 iter_item_long = PyInt_AS_LONG(iter_item);
451 Py_DECREF(iter_item);
450 Py_DECREF(iter_item);
452 if (iter_item_long < min_idx)
451 if (iter_item_long < min_idx)
General Comments 0
You need to be logged in to leave comments. Login now