diff options
Diffstat (limited to 'src/solvers/generic/generic.h')
| -rw-r--r-- | src/solvers/generic/generic.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/solvers/generic/generic.h b/src/solvers/generic/generic.h index 41d995a..1e0299b 100644 --- a/src/solvers/generic/generic.h +++ b/src/solvers/generic/generic.h | |||
| @@ -9,14 +9,14 @@ typedef struct { | |||
| 9 | uint8_t (*estimate)(cube_t); | 9 | uint8_t (*estimate)(cube_t); |
| 10 | } dfsarg_generic_t; | 10 | } dfsarg_generic_t; |
| 11 | 11 | ||
| 12 | _static void solve_generic_appendsolution(dfsarg_generic_t *); | 12 | STATIC void solve_generic_appendsolution(dfsarg_generic_t *); |
| 13 | _static int solve_generic_dfs(dfsarg_generic_t *); | 13 | STATIC int solve_generic_dfs(dfsarg_generic_t *); |
| 14 | _static int64_t solve_generic(cube_t, const char *, int8_t, int8_t, int64_t, | 14 | STATIC int64_t solve_generic(cube_t, const char *, int8_t, int8_t, int64_t, |
| 15 | int8_t, char *, uint8_t (*)(cube_t)); | 15 | int8_t, char *, uint8_t (*)(cube_t)); |
| 16 | _static uint8_t estimate_simple(cube_t); | 16 | STATIC uint8_t estimate_simple(cube_t); |
| 17 | _static int64_t solve_simple(cube_t, int8_t, int8_t, int64_t, int8_t, char *); | 17 | STATIC int64_t solve_simple(cube_t, int8_t, int8_t, int64_t, int8_t, char *); |
| 18 | 18 | ||
| 19 | _static void | 19 | STATIC void |
| 20 | solve_generic_appendsolution(dfsarg_generic_t *arg) | 20 | solve_generic_appendsolution(dfsarg_generic_t *arg) |
| 21 | { | 21 | { |
| 22 | int strl; | 22 | int strl; |
| @@ -29,7 +29,7 @@ solve_generic_appendsolution(dfsarg_generic_t *arg) | |||
| 29 | (*arg->nsols)++; | 29 | (*arg->nsols)++; |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | _static int | 32 | STATIC int |
| 33 | solve_generic_dfs(dfsarg_generic_t *arg) | 33 | solve_generic_dfs(dfsarg_generic_t *arg) |
| 34 | { | 34 | { |
| 35 | dfsarg_generic_t nextarg; | 35 | dfsarg_generic_t nextarg; |
| @@ -64,7 +64,7 @@ solve_generic_dfs(dfsarg_generic_t *arg) | |||
| 64 | return ret; | 64 | return ret; |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | _static int64_t | 67 | STATIC int64_t |
| 68 | solve_generic( | 68 | solve_generic( |
| 69 | cube_t cube, | 69 | cube_t cube, |
| 70 | const char *nisstype, | 70 | const char *nisstype, |
| @@ -128,13 +128,13 @@ solve_generic( | |||
| 128 | return ret; | 128 | return ret; |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | _static uint8_t | 131 | STATIC uint8_t |
| 132 | estimate_simple(cube_t cube) | 132 | estimate_simple(cube_t cube) |
| 133 | { | 133 | { |
| 134 | return issolved(cube) ? 0 : 1; | 134 | return issolved(cube) ? 0 : 1; |
| 135 | } | 135 | } |
| 136 | 136 | ||
| 137 | _static int64_t | 137 | STATIC int64_t |
| 138 | solve_simple( | 138 | solve_simple( |
| 139 | cube_t cube, | 139 | cube_t cube, |
| 140 | int8_t minmoves, | 140 | int8_t minmoves, |
