From bfb938031e56719b8bbc93b1d1a6ce0ee5edfafc Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Sun, 25 May 2014 11:55:25 +0200 Subject: [PATCH] Stop using "false" for bitfields. --- gnushogi/book.c | 4 ++-- gnushogi/commondsp.c | 4 ++-- gnushogi/cursesdsp.c | 6 +++--- gnushogi/rawdsp.c | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gnushogi/book.c b/gnushogi/book.c index 745f86f..478e69f 100644 --- a/gnushogi/book.c +++ b/gnushogi/book.c @@ -299,9 +299,9 @@ BVerifyMove(char *s, unsigned short *mv, int moveno) *mv = (xnode.f << 8) | xnode.t; if (is_promoted[board[xnode.t]] ) - Balgbr(xnode.f | 0x80, xnode.t, false); + Balgbr(xnode.f | 0x80, xnode.t, 0); else - Balgbr(xnode.f, xnode.t, false); + Balgbr(xnode.f, xnode.t, 0); return true; } diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index f49ab16..6c73be9 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -335,7 +335,7 @@ VerifyMove(char *s, VerifyMove_mode iop, unsigned short *mv) } *mv = (xnode.f << 8) | xnode.t; - algbr(xnode.f, xnode.t, false); + algbr(xnode.f, xnode.t, 0); /* in force mode, check for mate conditions */ if (flag.force) @@ -1522,7 +1522,7 @@ InputCommand(char *command) ft = time0; /* Save reference time for the player. */ fflush(stdout); - algbr((short) hint >> 8, (short) hint & 0xff, false); + algbr((short) hint >> 8, (short) hint & 0xff, 0); strcpy(s, mvstr[0]); if (flag.post) diff --git a/gnushogi/cursesdsp.c b/gnushogi/cursesdsp.c index 76650a6..751f2a8 100644 --- a/gnushogi/cursesdsp.c +++ b/gnushogi/cursesdsp.c @@ -117,7 +117,7 @@ ClearMessage(void) static void Curses_ShowCurrentMove(short pnt, short f, short t) { - algbr(f, t, false); + algbr(f, t, 0); gotoXY(TAB, 7); printw("(%2d) %5s ", pnt, mvstr[0]); } @@ -293,7 +293,7 @@ Curses_ShowResults(short score, unsigned short *bstline, char ch) } algbr((short) bstline[ply] >> 8, - (short) bstline[ply] & 0xFF, false); + (short) bstline[ply] & 0xFF, 0); printw("%5s ", mvstr[0]); } @@ -980,7 +980,7 @@ Curses_GiveHint(void) if (hint) { - algbr((short) (hint >> 8), (short) (hint & 0xFF), false); + algbr((short) (hint >> 8), (short) (hint & 0xFF), 0); strcpy(s, "try "); strcat(s, mvstr[0]); Curses_ShowMessage(s); diff --git a/gnushogi/rawdsp.c b/gnushogi/rawdsp.c index 033d93b..3b33adc 100644 --- a/gnushogi/rawdsp.c +++ b/gnushogi/rawdsp.c @@ -102,7 +102,7 @@ Raw_ShowLine(unsigned short *bstline) if ((i > 1) && (i % 8 == 1)) printf("\n "); - algbr((short)(bstline[i] >> 8), (short)(bstline[i] & 0xFF), false); + algbr((short)(bstline[i] >> 8), (short)(bstline[i] & 0xFF), 0); printf("%5s ", mvstr[0]); } @@ -685,7 +685,7 @@ Raw_GiveHint(void) { if (hint) { - algbr((short) (hint >> 8), (short) (hint & 0xFF), false); + algbr((short) (hint >> 8), (short) (hint & 0xFF), 0); printf("Hint: %s\n", mvstr[0]); } else -- 2.11.4.GIT