X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=option.h;h=17468ba4a423b274c115bfa3ff2d30ce0eebd5f1;hb=bb6c47f77f59067c358579a71cefa1ae65180a30;hp=a4cff3b17d10d20c0f06a5d557ce56d5302a5d8e;hpb=5eed4adb3552562329c0b0b460c8851efb1a38bb;p=polyglot.git diff --git a/option.h b/option.h index a4cff3b..17468ba 100644 --- a/option.h +++ b/option.h @@ -17,6 +17,17 @@ #define PG (1<<2) #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