1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

piece_type_to_char() default argument in declaration

Default argument should be in declaration where it
is visible through header include, not in definition.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2008-11-30 00:38:33 +01:00
parent cff3a6d33e
commit 9d1e4d041d
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ const SquareDelta PawnPush[2] = {
static const char PieceChars[] = " pnbrqk";
char piece_type_to_char(PieceType pt, bool upcase = false) {
char piece_type_to_char(PieceType pt, bool upcase) {
return upcase? toupper(PieceChars[pt]) : PieceChars[pt];
}

View file

@ -124,7 +124,7 @@ inline SquareDelta pawn_push(Color c) {
//// Prototypes
////
extern char piece_type_to_char(PieceType pt, bool upcase);
extern char piece_type_to_char(PieceType pt, bool upcase = false);
extern PieceType piece_type_from_char(char c);
extern bool piece_is_ok(Piece pc);
extern bool piece_type_is_ok(PieceType pt);