diff options
| author | Simon Tatham <anakin@pobox.com> | 2010-01-05 23:40:40 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2010-01-05 23:40:40 +0000 |
| commit | 13d7ff6ae5fd746461a4ef1cd01a6b5255692afb (patch) | |
| tree | 69b0b71a65fd5135cefc9c82144454d48785cc18 /latin.h | |
| parent | a7b220ff9a6b3cc4669565f9221071561f965f35 (diff) | |
| download | puzzles-13d7ff6ae5fd746461a4ef1cd01a6b5255692afb.zip puzzles-13d7ff6ae5fd746461a4ef1cd01a6b5255692afb.tar.gz puzzles-13d7ff6ae5fd746461a4ef1cd01a6b5255692afb.tar.bz2 puzzles-13d7ff6ae5fd746461a4ef1cd01a6b5255692afb.tar.xz | |
Add a facility in the latin.c solver diagnostics to allow a puzzle
to call the digit values by custom names.
[originally from svn r8811]
Diffstat (limited to 'latin.h')
| -rw-r--r-- | latin.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -19,6 +19,10 @@ struct latin_solver { unsigned char *row; /* o^2: row[y*cr+n-1] TRUE if n is in row y */ unsigned char *col; /* o^2: col[x*cr+n-1] TRUE if n is in col x */ + +#ifdef STANDALONE_SOLVER + char **names; /* o: names[n-1] gives name of 'digit' n */ +#endif }; #define cubepos(x,y,n) (((x)*solver->o+(y))*solver->o+(n)-1) #define cube(x,y,n) (solver->cube[cubepos(x,y,n)]) |