version 1.4.30b
[polyglot.git] / uci.h
diff --git a/uci.h b/uci.h
index 5d28aa5..0ac4f30 100644 (file)
--- a/uci.h
+++ b/uci.h
 #include "option.h"\r
 #include "util.h"\r
 \r
-// constants\r
+// defines\r
 \r
-const int OptionNb = 256;\r
+#define OptionNb 256\r
 \r
-struct uci_t {\r
+// types\r
+\r
+typedef struct {\r
 \r
    engine_t * engine;\r
 \r
@@ -59,9 +61,9 @@ struct uci_t {
    int root_move_pos;\r
    int root_move_nb;\r
    bool multipv_mode;\r
-};\r
+} uci_t;\r
 \r
-enum dummy_event_t {\r
+typedef enum {\r
    EVENT_NONE  = 0,\r
    EVENT_UCI   = 1 << 0,\r
    EVENT_READY = 1 << 1,\r
@@ -71,7 +73,7 @@ enum dummy_event_t {
    EVENT_DEPTH = 1 << 5,\r
    EVENT_DRAW  = 1 << 6,\r
    EVENT_RESIGN= 1 << 7\r
-};\r
+} dummy_event_t;\r
 \r
 // variables\r
 \r