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