X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=option.h;h=050ae0e05984a28d1020b1dd4785048c8317f3c7;hb=9d90dc40cca05e03cafd0519e17f15b1d7441e37;hp=c57438c09239b255ff678f68a2492ac2f2223c52;hpb=e7a2abd9bd4fce9ebbd70793b00d9d5f99886348;p=polyglot.git 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