From 13d7ff6ae5fd746461a4ef1cd01a6b5255692afb Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 5 Jan 2010 23:40:40 +0000 Subject: 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] --- latin.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'latin.h') diff --git a/latin.h b/latin.h index 4ec6954..a1b5873 100644 --- a/latin.h +++ b/latin.h @@ -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)]) -- cgit v1.1