X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=blobdiff_plain;f=uci.h;h=0ac4f30b385f5b4b53695548d322cc0fff9698c7;hp=5d28aa579fd2244e00a80b087dc8b8bec5715617;hb=e15efca6667b2673b4c1a5879a6917eab6800e58;hpb=0d182b4efac85dce968068bfe4509e52e9a30051 diff --git a/uci.h b/uci.h index 5d28aa5..0ac4f30 100644 --- a/uci.h +++ b/uci.h @@ -13,11 +13,13 @@ #include "option.h" #include "util.h" -// constants +// defines -const int OptionNb = 256; +#define OptionNb 256 -struct uci_t { +// types + +typedef struct { engine_t * engine; @@ -59,9 +61,9 @@ struct uci_t { int root_move_pos; int root_move_nb; bool multipv_mode; -}; +} uci_t; -enum dummy_event_t { +typedef enum { EVENT_NONE = 0, EVENT_UCI = 1 << 0, EVENT_READY = 1 << 1, @@ -71,7 +73,7 @@ enum dummy_event_t { EVENT_DEPTH = 1 << 5, EVENT_DRAW = 1 << 6, EVENT_RESIGN= 1 << 7 -}; +} dummy_event_t; // variables