Cleanup: move comments wrapped with MultiLine control statements
In some cases comments at the end of control statements were wrapped onto new lines which made it read as if they applied to the next line instead of the (now) previous line. Relocate comments to the previous line or in some cases the end of the line (before the brace) to avoid confusion. Note that in quite a few cases these blocks didn't read well even before MultiLine was used as comments after the brace caused wrapping across multiple lines in a way that didn't follow formatting used everywhere else.
This commit is contained in:
@@ -4134,9 +4134,9 @@ static PyObject *BPy_EnumProperty(PyObject *self, PyObject *args, PyObject *kw)
|
||||
default_py = NULL;
|
||||
}
|
||||
|
||||
/* items can be a list or a callable */
|
||||
if (PyFunction_Check(items))
|
||||
{ /* don't use PyCallable_Check because we need the function code for errors */
|
||||
/* Items can be a list or a callable.
|
||||
* NOTE: Don't use #PyCallable_Check because we need the function code for errors. */
|
||||
if (PyFunction_Check(items)) {
|
||||
PyCodeObject *f_code = (PyCodeObject *)PyFunction_GET_CODE(items);
|
||||
if (f_code->co_argcount != 2) {
|
||||
PyErr_Format(PyExc_ValueError,
|
||||
|
||||
@@ -2203,8 +2203,8 @@ static PyObject *Vector_imul(PyObject *v1, PyObject *v2)
|
||||
/* Element-wise product in-place. */
|
||||
mul_vn_vn(vec1->vec, vec2->vec, vec1->vec_num);
|
||||
}
|
||||
else if (vec1 && (((scalar = PyFloat_AsDouble(v2)) == -1.0f && PyErr_Occurred()) == 0))
|
||||
{ /* VEC *= FLOAT */
|
||||
else if (vec1 && (((scalar = PyFloat_AsDouble(v2)) == -1.0f && PyErr_Occurred()) == 0)) {
|
||||
/* VEC *= FLOAT */
|
||||
mul_vn_fl(vec1->vec, vec1->vec_num, scalar);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user