version 1.4.30b
[polyglot.git] / board.h
diff --git a/board.h b/board.h
index 9a9a503..4223e83 100644 (file)
--- a/board.h
+++ b/board.h
 #include "square.h"\r
 #include "util.h"\r
 \r
-// constants\r
+// defines\r
 \r
-const int Empty = 0;\r
-\r
-const int SideH = 0;\r
-const int SideA = 1;\r
-const int SideNb = 2;\r
+#define Empty  0\r
+#define SideH  0\r
+#define SideA  1\r
+#define SideNb 2\r
 \r
 // types\r
 \r
-struct board_t {\r
+typedef struct {\r
 \r
    uint8 square[SquareNb];\r
    sint8 pos[SquareNb];\r
@@ -38,7 +37,7 @@ struct board_t {
    sint16 move_nb;\r
 \r
    uint64 key;\r
-};\r
+} board_t;\r
 \r
 // functions\r
 \r