ext/common.h in chess-0.0.3 vs ext/common.h in chess-0.0.4
- old
+ new
@@ -88,23 +88,23 @@
#define WHITE_SHORT_CASTLING 1
#define WHITE_LONG_CASTLING 2
#define BLACK_SHORT_CASTLING 3
#define BLACK_LONG_CASTLING 4
-#define WHITE_WINS 0
-#define BLACK_WINS 1
+#define WHITE_WON 0
+#define BLACK_WON 1
#define DRAW 2
#define IN_PROGRESS 3
-typedef int bool;
+typedef unsigned short bool;
char square_to_file (int square);
char square_to_rank (int square);
int coord_to_square (const char *coord);
char* square_to_coord (int square);
char* ft_to_full_move (int from, int to, char promote_in);
char* result_to_s (unsigned short int r);
char* castling_to_s (short int castling);
char* en_passant_to_s (short int en_passant);
-bool compare (const void * a, const void * b);
+int compare (const void *a, const void *b);
#endif
\ No newline at end of file