diff options
Diffstat (limited to 'src/solvers/solutions.h')
| -rw-r--r-- | src/solvers/solutions.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/solvers/solutions.h b/src/solvers/solutions.h index 182ae18..cdb1fdb 100644 --- a/src/solvers/solutions.h +++ b/src/solvers/solutions.h | |||
| @@ -1,11 +1,10 @@ | |||
| 1 | STATIC void solution_moves_reset(solution_moves_t [static 1]); | 1 | STATIC void solution_moves_reset(solution_moves_t [static 1]); |
| 2 | STATIC void solution_moves_transform(solution_moves_t [static 1], uint8_t); | 2 | STATIC void solution_moves_transform(solution_moves_t [static 1], uint8_t); |
| 3 | STATIC void solution_moves_reorient(solution_moves_t [static 1], uint8_t); | 3 | STATIC void solution_moves_reorient(solution_moves_t [static 1], uint8_t); |
| 4 | STATIC bool solution_list_init( | 4 | STATIC bool solution_list_init(solution_list_t [static 1], size_t, char *); |
| 5 | solution_list_t [static 1], size_t n, char [n]); | ||
| 6 | STATIC bool solution_moves_equal( | 5 | STATIC bool solution_moves_equal( |
| 7 | const solution_moves_t [static 1], const solution_moves_t [static 1]); | 6 | const solution_moves_t [static 1], const solution_moves_t [static 1]); |
| 8 | STATIC bool solution_moves_is_duplicate(size_t n, const solution_moves_t[n+1]); | 7 | STATIC bool solution_moves_is_duplicate(size_t, const solution_moves_t *); |
| 9 | STATIC bool appendchar(solution_list_t [static 1], char); | 8 | STATIC bool appendchar(solution_list_t [static 1], char); |
| 10 | STATIC bool appendnormal( | 9 | STATIC bool appendnormal( |
| 11 | const solution_moves_t [static 1], solution_list_t [static 1]); | 10 | const solution_moves_t [static 1], solution_list_t [static 1]); |
| @@ -50,7 +49,7 @@ solution_moves_reorient(solution_moves_t moves[static 1], uint8_t or) | |||
| 50 | } | 49 | } |
| 51 | 50 | ||
| 52 | STATIC bool | 51 | STATIC bool |
| 53 | solution_list_init(solution_list_t sols[static 1], size_t n, char buf[n]) | 52 | solution_list_init(solution_list_t sols[static 1], size_t n, char *buf) |
| 54 | { | 53 | { |
| 55 | if (n == 0) | 54 | if (n == 0) |
| 56 | return false; | 55 | return false; |
| @@ -88,7 +87,7 @@ solution_moves_equal( | |||
| 88 | } | 87 | } |
| 89 | 88 | ||
| 90 | STATIC bool | 89 | STATIC bool |
| 91 | solution_moves_is_duplicate(size_t n, const solution_moves_t s[n+1]) | 90 | solution_moves_is_duplicate(size_t n, const solution_moves_t *s) |
| 92 | { | 91 | { |
| 93 | size_t i; | 92 | size_t i; |
| 94 | 93 | ||
