Skip to content

Commit b0650a1

Browse files
committed
declare variables one per line in cpython function definition
1 parent e410c99 commit b0650a1

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

python/_tskitmodule.c

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10666,19 +10666,29 @@ TreeSequence_k_way_ld_matrix(TreeSequence *self, PyObject *args, PyObject *kwds,
1066610666
PyObject *ret = NULL;
1066710667
static char *kwlist[] = { "sample_set_sizes", "sample_sets", "indexes", "row_sites",
1066810668
"col_sites", "row_positions", "column_positions", "mode", NULL };
10669-
10670-
PyObject *row_sites = NULL, *col_sites = NULL, *row_positions = NULL,
10671-
*col_positions = NULL, *sample_set_sizes = NULL, *sample_sets = NULL,
10672-
*indexes = NULL;
10673-
PyArrayObject *row_sites_array = NULL, *col_sites_array = NULL,
10674-
*row_positions_array = NULL, *col_positions_array = NULL,
10675-
*sample_sets_array = NULL, *sample_set_sizes_array = NULL,
10676-
*indexes_array = NULL, *result_matrix = NULL;
10677-
tsk_id_t *row_sites_parsed = NULL, *col_sites_parsed = NULL;
10678-
double *row_positions_parsed = NULL, *col_positions_parsed = NULL;
10669+
PyObject *row_sites = NULL;
10670+
PyObject *col_sites = NULL;
10671+
PyObject *row_positions = NULL;
10672+
PyObject *col_positions = NULL;
10673+
PyObject *sample_set_sizes = NULL;
10674+
PyObject *sample_sets = NULL;
10675+
PyObject *indexes = NULL;
10676+
PyArrayObject *row_sites_array = NULL;
10677+
PyArrayObject *col_sites_array = NULL;
10678+
PyArrayObject *row_positions_array = NULL;
10679+
PyArrayObject *col_positions_array = NULL;
10680+
PyArrayObject *sample_sets_array = NULL;
10681+
PyArrayObject *sample_set_sizes_array = NULL;
10682+
PyArrayObject *indexes_array = NULL;
10683+
PyArrayObject *result_matrix = NULL;
10684+
tsk_id_t *row_sites_parsed = NULL;
10685+
tsk_id_t *col_sites_parsed = NULL;
10686+
double *row_positions_parsed = NULL;
10687+
double *col_positions_parsed = NULL;
1067910688
npy_intp *shape, result_dim[3] = { 0, 0, 0 };
1068010689
char *mode = NULL;
10681-
tsk_size_t num_sample_sets, num_set_index_tuples;
10690+
tsk_size_t num_sample_sets;
10691+
tsk_size_t num_set_index_tuples;
1068210692
tsk_flags_t options = 0;
1068310693
int err;
1068410694

0 commit comments

Comments
 (0)