X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=blobdiff_plain;f=option.h;h=050ae0e05984a28d1020b1dd4785048c8317f3c7;hp=c57438c09239b255ff678f68a2492ac2f2223c52;hb=e15efca6667b2673b4c1a5879a6917eab6800e58;hpb=0d182b4efac85dce968068bfe4509e52e9a30051 diff --git a/option.h b/option.h index c57438c..050ae0e 100644 --- a/option.h +++ b/option.h @@ -8,19 +8,16 @@ #include "util.h" -// constants - -const int VarNb = 16; - // defines -#define XBOARD 1 -#define UCI 2 -#define PG 4 +#define VarNb 16 +#define XBOARD (1<<0) +#define UCI (1<<1) +#define PG (1<<2) // types -struct option_t { // TODO: put back in more logical order +typedef struct { // TODO: put back in more logical order const char * name; const char * type; const char * min; @@ -30,7 +27,7 @@ struct option_t { // TODO: put back in more logical order int var_nb; const char * var[VarNb]; int mode; -}; +} option_t; // variables