X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=blobdiff_plain;f=option.h;h=aa3190c322661849db9068240494ccee19f1e307;hp=a4cff3b17d10d20c0f06a5d557ce56d5302a5d8e;hb=ac968003c13bde5c86ffa19f8819e436b5bc03e6;hpb=cb9522491af43508c47cb927247e3b5769b9259b diff --git a/option.h b/option.h index a4cff3b..aa3190c 100644 --- a/option.h +++ b/option.h @@ -17,6 +17,13 @@ #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_SPIN(opt) (my_string_case_equal(opt->type,"spin") || \ + my_string_case_equal(opt->type,"slider")) \ + // types typedef struct { // TODO: put back in more logical order