diff options
author | jlam <jlam@pkgsrc.org> | 2000-03-26 08:29:25 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2000-03-26 08:29:25 +0000 |
commit | c1a19d047c10431f00fc65db8906952f687d16f7 (patch) | |
tree | 495c20aa428aa90adc45f1ec9724f4ab7303dcc9 /games/gnuchess/patches/patch-ab | |
parent | 45c2310c697ed4041bb13fde76a90eab3311f286 (diff) | |
download | pkgsrc-c1a19d047c10431f00fc65db8906952f687d16f7.tar.gz |
Update gnuchess to 5.00. From the GNU chess web page:
Version 5.00 is the current release. Version 5.00 shares no code with
versions 1.x through 4.x. The major motivation for this release is to
simplify chess code making it more pedantically accessible, use modern
data structures, make it easy to modify by less skilled programmers,
and increase understandability to non-programmer, skilled chess
experts.
Diffstat (limited to 'games/gnuchess/patches/patch-ab')
-rw-r--r-- | games/gnuchess/patches/patch-ab | 57 |
1 files changed, 11 insertions, 46 deletions
diff --git a/games/gnuchess/patches/patch-ab b/games/gnuchess/patches/patch-ab index 819ff1e9aed..23fda70571e 100644 --- a/games/gnuchess/patches/patch-ab +++ b/games/gnuchess/patches/patch-ab @@ -1,47 +1,12 @@ -$NetBSD: patch-ab,v 1.2 1999/11/17 23:06:22 tron Exp $ +$NetBSD: patch-ab,v 1.3 2000/03/26 08:29:25 jlam Exp $ ---- gnuan.c.orig Sat Apr 3 05:58:53 1999 -+++ gnuan.c Wed Nov 17 23:57:25 1999 -@@ -1348,12 +1348,12 @@ - fpout = stderr; - fprintf (fpout, "Input the file with the algebraic moves of the game.\n"); - fflush (fpout); -- gets (infilename); -+ fgets (infilename, 255, stdin); infilename[255] = '\0'; - fprintf (fpout, "\n"); - do - { - fprintf (fpout, "Input the search depth you want to use. (1 to 29)(- for depth from file)\n"); -- gets (inbuf); -+ fgets (inbuf, 256, stdin); inbuf[255] = '\0'; - search_depth = atoi (inbuf); - if (search_depth < 0) - { -@@ -1369,7 +1369,7 @@ - do - { - fprintf (fpout, "Input the maximum number of minutes per move you want to use.\n"); -- gets (inbuf); -+ fgets (inbuf, 256, stdin); inbuf[255] = '\0'; - max_minutes = atoi (inbuf); - if (max_minutes < 0) - { -@@ -1379,7 +1379,7 @@ - } - while ((max_minutes + max_seconds) < 1); - fprintf (fpout, "Post the search results(y/n).\n"); -- gets (inbuf); -+ fgets (inbuf, 256, stdin); inbuf[255] = '\0'; - if (inbuf[0] == 'y') - flag.post = true; - else -@@ -1559,7 +1559,8 @@ - while (true) - { - printf (">"); -- gets (GNUANinbuf1); -+ fgets (GNUANinbuf1, 128, stdin); -+ GNUANinbuf1[127] = '\0'; - p = GNUANinbuf1; - q = GNUANinbuf; - while (true) +--- book.h.orig Fri Oct 15 23:41:03 1999 ++++ book.h Thu Feb 17 23:11:33 2000 +@@ -23,5 +23,5 @@ + bug-gnu-chess@gnu.org + cracraft@ai.mit.edu, cracraft@stanfordalumni.org, cracraft@earthlink.net + */ +-#define BOOKSRC "book.pgn" +-#define BOOKBIN "book.dat" ++#define BOOKSRC LIBDIR "book.pgn" ++#define BOOKBIN LIBDIR "book.dat" |