X-Git-Url: http://winboard.nl/cgi-bin?p=gnushogi.git;a=blobdiff_plain;f=gnushogi%2Fbook.c;h=6df98e6988866aca0b0f8daa1664d9ad3d48cdf5;hp=547f3fd8f5e0e7292edb15c3e822236379445a31;hb=31a87931cd4644f17e21114612ae2f348660bac1;hpb=f3b4a51c52bb44d2da2865349388de5465aad9ac diff --git a/gnushogi/book.c b/gnushogi/book.c index 547f3fd..6df98e6 100644 --- a/gnushogi/book.c +++ b/gnushogi/book.c @@ -73,7 +73,7 @@ static ULONG bhashkey; * Generate move strings in different formats. */ -void +static void Balgbr(short f, short t, short flag) { short promoted = false; @@ -166,10 +166,8 @@ Balgbr(short f, short t, short flag) } - - #ifndef QUIETBOOKGEN -void +static void bkdisplay(char *s, int cnt, int moveno) { static short pnt; @@ -240,11 +238,9 @@ bkdisplay(char *s, int cnt, int moveno) } #endif /* SEMIQUIETBOOKGEN */ } - #endif /* QUIETBOOKGEN */ - /* * BVerifyMove(s, mv, moveno) * @@ -252,7 +248,7 @@ bkdisplay(char *s, int cnt, int moveno) * opponent. If a match is found, make the move on the board. */ -int +static int BVerifyMove(char *s, unsigned short *mv, int moveno) { static short pnt, tempb, tempc, tempsf, tempst, cnt; @@ -320,8 +316,6 @@ BVerifyMove(char *s, unsigned short *mv, int moveno) } - - /* * RESET() * @@ -329,7 +323,7 @@ BVerifyMove(char *s, unsigned short *mv, int moveno) * */ -void +static void RESET(void) { short l; @@ -365,9 +359,7 @@ RESET(void) } - -static -int +static int Vparse (FILE * fd, USHORT *mv, USHORT *flags, int moveno) { int c, i; @@ -891,7 +883,6 @@ GetOpenings(void) } - /* * OpeningBook(hint) * @@ -1056,6 +1047,3 @@ OpeningBook(unsigned short *hint) Book--; return false; } - - -