X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=option.h;h=7a842e678f8359f1501a6963c033d3f4a0ad0bdc;hb=5b56e51eeae04c352b95b1706b9d69b61feba3e9;hp=a4cff3b17d10d20c0f06a5d557ce56d5302a5d8e;hpb=5eed4adb3552562329c0b0b460c8851efb1a38bb;p=polyglot.git diff --git a/option.h b/option.h index a4cff3b..7a842e6 100644 --- a/option.h +++ b/option.h @@ -15,8 +15,20 @@ #define XBOARD (1<<0) #define UCI (1<<1) #define PG (1<<2) +#define XBSEL (1<<3) #define OptionNb 256 +#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(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 typedef struct { // TODO: put back in more logical order