From bfb7b1ab9d2c85a256c42c006060ffe7c2652638 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 12 Mar 2025 16:40:07 +0100 Subject: Revert API change --- python/nissy_module.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'python/nissy_module.c') diff --git a/python/nissy_module.c b/python/nissy_module.c index 6511382..29facc4 100644 --- a/python/nissy_module.c +++ b/python/nissy_module.c @@ -315,7 +315,6 @@ PyDoc_STRVAR(solve_doc, "Parameters:\n" " - cube: a cube in B32 format\n" " - solver: the solver to use\n" -" - options: extra options for the chosen solver\n" " - minmoves: the minimum number of moves to use\n" " - maxmoves: the maximum number of moves to use\n" " - maxsolution: the maximum number of solutions to return\n" @@ -332,21 +331,20 @@ solve(PyObject *self, PyObject *args) long long result; unsigned nissflag, minmoves, maxmoves, maxsolutions; int optimal, i, j, k, threads; - const char *cube, *solver, *options; + const char *cube, *solver; char solutions[MAX_SOLUTIONS_SIZE]; long long stats[NISSY_SIZE_SOLVE_STATS]; PyByteArrayObject *data; PyObject *list, *item; - if (!PyArg_ParseTuple(args, "sssIIIIiiY", &cube, &solver, &options, - &nissflag, &minmoves, &maxmoves, &maxsolutions, &optimal, - &threads, &data)) + if (!PyArg_ParseTuple(args, "ssIIIIiiY", &cube, &solver, &nissflag, + &minmoves, &maxmoves, &maxsolutions, &optimal, &threads, &data)) return NULL; Py_BEGIN_ALLOW_THREADS - result = nissy_solve(cube, solver, options, nissflag, minmoves, - maxmoves, maxsolutions, optimal, threads, data->ob_alloc, - data->ob_bytes, MAX_SOLUTIONS_SIZE, solutions, stats); + result = nissy_solve(cube, solver, nissflag, minmoves, maxmoves, + maxsolutions, optimal, threads, data->ob_alloc, data->ob_bytes, + MAX_SOLUTIONS_SIZE, solutions, stats); Py_END_ALLOW_THREADS if(!check_error(result)) { -- cgit v1.3