ext/common.h in chess-0.3.1 vs ext/common.h in chess-0.3.2

- old
+ new

@@ -11,14 +11,20 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> -// Macros +// Boolean definition + +#ifndef RUBY_BACKWARD2_BOOL_H #define FALSE 0 #define TRUE 1 +typedef unsigned short bool; +#endif +// Macros + #define A1 0 #define B1 1 #define C1 2 #define D1 3 #define E1 4 @@ -92,11 +98,9 @@ #define WHITE_WON 0 #define BLACK_WON 1 #define DRAW 2 #define IN_PROGRESS 3 - -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);