Cleanup: use 8 space indent for multi-line args
This commit is contained in:
@@ -69,9 +69,10 @@ static int bpy_bm_op_as_py_error(BMesh *bm)
|
||||
* \param htype Test \a value matches this type.
|
||||
* \param descr Description text.
|
||||
*/
|
||||
static int bpy_slot_from_py_elem_check(BPy_BMElem *value, BMesh *bm, const char htype,
|
||||
/* for error messages */
|
||||
const char *opname, const char *slot_name, const char *descr)
|
||||
static int bpy_slot_from_py_elem_check(
|
||||
BPy_BMElem *value, BMesh *bm, const char htype,
|
||||
/* for error messages */
|
||||
const char *opname, const char *slot_name, const char *descr)
|
||||
{
|
||||
if (!BPy_BMElem_Check(value) ||
|
||||
!(value->ele->head.htype & htype))
|
||||
@@ -107,10 +108,11 @@ static int bpy_slot_from_py_elem_check(BPy_BMElem *value, BMesh *bm, const char
|
||||
* \param htype_bmo The type(s) supported by the target slot.
|
||||
* \param descr Description text.
|
||||
*/
|
||||
static int bpy_slot_from_py_elemseq_check(BPy_BMGeneric *value, BMesh *bm,
|
||||
const char htype_py, const char htype_bmo,
|
||||
/* for error messages */
|
||||
const char *opname, const char *slot_name, const char *descr)
|
||||
static int bpy_slot_from_py_elemseq_check(
|
||||
BPy_BMGeneric *value, BMesh *bm,
|
||||
const char htype_py, const char htype_bmo,
|
||||
/* for error messages */
|
||||
const char *opname, const char *slot_name, const char *descr)
|
||||
{
|
||||
if (value->bm == NULL) {
|
||||
PyErr_Format(PyExc_TypeError,
|
||||
@@ -142,9 +144,10 @@ static int bpy_slot_from_py_elemseq_check(BPy_BMGeneric *value, BMesh *bm,
|
||||
/**
|
||||
* Use for giving py args to an operator.
|
||||
*/
|
||||
static int bpy_slot_from_py(BMesh *bm, BMOperator *bmop, BMOpSlot *slot, PyObject *value,
|
||||
/* the are just for exception messages */
|
||||
const char *opname, const char *slot_name)
|
||||
static int bpy_slot_from_py(
|
||||
BMesh *bm, BMOperator *bmop, BMOpSlot *slot, PyObject *value,
|
||||
/* the are just for exception messages */
|
||||
const char *opname, const char *slot_name)
|
||||
{
|
||||
switch (slot->slot_type) {
|
||||
case BMO_OP_SLOT_BOOL:
|
||||
|
||||
@@ -3757,10 +3757,11 @@ void bpy_bm_generic_invalidate(BPy_BMGeneric *self)
|
||||
*
|
||||
* The 'bm_r' value is assigned when empty, and used when set.
|
||||
*/
|
||||
void *BPy_BMElem_PySeq_As_Array(BMesh **r_bm, PyObject *seq, Py_ssize_t min, Py_ssize_t max, Py_ssize_t *r_size,
|
||||
const char htype,
|
||||
const bool do_unique_check, const bool do_bm_check,
|
||||
const char *error_prefix)
|
||||
void *BPy_BMElem_PySeq_As_Array(
|
||||
BMesh **r_bm, PyObject *seq, Py_ssize_t min, Py_ssize_t max, Py_ssize_t *r_size,
|
||||
const char htype,
|
||||
const bool do_unique_check, const bool do_bm_check,
|
||||
const char *error_prefix)
|
||||
{
|
||||
BMesh *bm = (r_bm && *r_bm) ? *r_bm : NULL;
|
||||
PyObject *seq_fast;
|
||||
|
||||
@@ -158,10 +158,11 @@ PyObject *BPy_BMIter_CreatePyObject(BMesh *bm);
|
||||
|
||||
PyObject *BPy_BMElem_CreatePyObject(BMesh *bm, BMHeader *ele); /* just checks type and creates v/e/f/l */
|
||||
|
||||
void *BPy_BMElem_PySeq_As_Array(BMesh **r_bm, PyObject *seq, Py_ssize_t min, Py_ssize_t max, Py_ssize_t *r_size,
|
||||
const char htype,
|
||||
const bool do_unique_check, const bool do_bm_check,
|
||||
const char *error_prefix);
|
||||
void *BPy_BMElem_PySeq_As_Array(
|
||||
BMesh **r_bm, PyObject *seq, Py_ssize_t min, Py_ssize_t max, Py_ssize_t *r_size,
|
||||
const char htype,
|
||||
const bool do_unique_check, const bool do_bm_check,
|
||||
const char *error_prefix);
|
||||
|
||||
PyObject *BPy_BMElem_Array_As_Tuple(BMesh *bm, BMHeader **elem, Py_ssize_t elem_len);
|
||||
PyObject *BPy_BMVert_Array_As_Tuple(BMesh *bm, BMVert **elem, Py_ssize_t elem_len);
|
||||
|
||||
Reference in New Issue
Block a user