From 09aa8de52cb962f1ceebfb1fd44f2c54a924fc5c Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Mon, 22 Jul 2024 21:43:25 -0400 Subject: puzzles: resync with upstream This brings the puzzles source in sync with Simon's branch, commit fd304c5 (from March 2024), with some added Rockbox-specific compatibility changes: https://www.franklinwei.com/git/puzzles/commit/?h=rockbox-devel&id=516830d9d76bdfe64fe5ccf2a9b59c33f5c7c078 There are quite a lot of backend changes, including a new "Mosaic" puzzle. In addition, some new frontend changes were necessary: - New "Preferences" menu to access the user preferences system. - Enabled spacebar input for several games. Change-Id: I94c7df674089c92f32d5f07025f6a1059068af1e --- apps/plugins/puzzles/src/latin.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'apps/plugins/puzzles/src/latin.h') diff --git a/apps/plugins/puzzles/src/latin.h b/apps/plugins/puzzles/src/latin.h index bb172ec3c7..96a0480491 100644 --- a/apps/plugins/puzzles/src/latin.h +++ b/apps/plugins/puzzles/src/latin.h @@ -61,10 +61,13 @@ int latin_solver_forcing(struct latin_solver *solver, /* --- Solver allocation --- */ /* Fills in (and allocates members for) a latin_solver struct. - * Will allocate members of snew, but not snew itself + * Will allocate members of solver, but not solver itself * (allowing 'struct latin_solver' to be the first element in a larger - * struct, for example). */ -void latin_solver_alloc(struct latin_solver *solver, digit *grid, int o); + * struct, for example). + * + * latin_solver_alloc returns false if the digits already in the grid + * could not be legally placed. */ +bool latin_solver_alloc(struct latin_solver *solver, digit *grid, int o); void latin_solver_free(struct latin_solver *solver); /* Allocates scratch space (for _set and _forcing) */ -- cgit v1.2.3