mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Dariusz Olszewski's changes to support compiling for PocketPC. This
is mostly done with ifdefs in windows.c; so mkfiles.pl generates a new makefile (Makefile.wce) and Recipe enables it, but it's hardly any different from Makefile.vc apart from a few definitions at the top of the files. Currently the PocketPC build is not enabled in the build script, but with any luck I'll be able to do so reasonably soon. [originally from svn r7337]
This commit is contained in:
9
latin.c
9
latin.c
@ -12,6 +12,11 @@
|
||||
|
||||
#include "latin.h"
|
||||
|
||||
static void assert_f(p)
|
||||
{
|
||||
assert(p);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------
|
||||
* Solver.
|
||||
*/
|
||||
@ -26,7 +31,7 @@ void latin_solver_place(struct latin_solver *solver, int x, int y, int n)
|
||||
int i, o = solver->o;
|
||||
|
||||
assert(n <= o);
|
||||
assert(cube(x,y,n));
|
||||
assert_f(cube(x,y,n));
|
||||
|
||||
/*
|
||||
* Rule out all other numbers in this square.
|
||||
@ -1188,7 +1193,7 @@ int latin_check(digit *sq, int order)
|
||||
lcp = snew(lcparams);
|
||||
lcp->elt = ELT(sq, c, r);
|
||||
lcp->count = 1;
|
||||
assert(add234(dict, lcp) == lcp);
|
||||
assert_f(add234(dict, lcp) == lcp);
|
||||
} else {
|
||||
lcp->count++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user