* Generate move strings in different formats.
*/
-void
+static void
Balgbr(short f, short t, short flag)
{
short promoted = false;
}
-
-
#ifndef QUIETBOOKGEN
-void
+static void
bkdisplay(char *s, int cnt, int moveno)
{
static short pnt;
}
#endif /* SEMIQUIETBOOKGEN */
}
-
#endif /* QUIETBOOKGEN */
-
/*
* BVerifyMove(s, mv, 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;
}
-
-
/*
* RESET()
*
*
*/
-void
+static void
RESET(void)
{
short l;
}
-
-static
-int
+static int
Vparse (FILE * fd, USHORT *mv, USHORT *flags, int moveno)
{
int c, i;
#define WriteAdmin() \
{ \
- lseek(gfd, 0, 0); \
+ lseek(gfd, 0, SEEK_SET); \
write(gfd, (char *)&ADMIN, sizeof_gdxadmin); \
}
{ \
if (mustwrite ) \
{ \
- lseek(gfd, currentoffset, 0); \
+ lseek(gfd, currentoffset, SEEK_SET); \
write(gfd, (char *)&DATA, sizeof_gdxdata); \
mustwrite = false; \
} \
static int ReadAdmin(void)
{
- lseek(gfd, 0, 0);
+ lseek(gfd, 0, SEEK_SET);
return (sizeof_gdxadmin == read(gfd, (char *)&ADMIN, sizeof_gdxadmin));
}
static int ReadData(struct gdxdata *DATA)
{
- lseek(gfd, currentoffset, 0);
+ lseek(gfd, currentoffset, SEEK_SET);
return (sizeof_gdxdata == read(gfd, (char *)DATA, sizeof_gdxdata));
}
}
-
/*
* OpeningBook(hint)
*
Book--;
return false;
}
-
-
-