X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=option.h;h=7a842e678f8359f1501a6963c033d3f4a0ad0bdc;hb=c6505b9bddf0ed2f461a473d4be40c98608d9866;hp=aa3190c322661849db9068240494ccee19f1e307;hpb=ac968003c13bde5c86ffa19f8819e436b5bc03e6;p=polyglot.git diff --git a/option.h b/option.h index aa3190c..7a842e6 100644 --- a/option.h +++ b/option.h @@ -15,14 +15,19 @@ #define XBOARD (1<<0) #define UCI (1<<1) #define PG (1<<2) +#define XBSEL (1<<3) #define OptionNb 256 -#define IS_BUTTON(opt) (my_string_case_equal(opt->type,"button") || \ - my_string_case_equal(opt->type,"save") || \ - my_string_case_equal(opt->type,"reset")) \ +#define IS_BUTTON(str) (my_string_case_equal(str,"button") || \ + my_string_case_equal(str,"save") || \ + my_string_case_equal(str,"reset")) \ -#define IS_SPIN(opt) (my_string_case_equal(opt->type,"spin") || \ - my_string_case_equal(opt->type,"slider")) \ +#define IS_SPIN(str) (my_string_case_equal(str,"spin") || \ + my_string_case_equal(str,"slider")) \ + +#define IS_STRING(str) (my_string_case_equal(str,"string") || \ + my_string_case_equal(str,"path") || \ + my_string_case_equal(str,"file")) \ // types