From 31a87931cd4644f17e21114612ae2f348660bac1 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Wed, 19 Feb 2014 23:34:35 +0100 Subject: [PATCH] Book: mark more functions static. --- gnushogi/book.c | 22 +++++----------------- 1 files changed, 5 insertions(+), 17 deletions(-) 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; } - - - -- 1.7.0.4