aboutsummaryrefslogtreecommitdiff
path: root/games/gnuchess
diff options
context:
space:
mode:
authorMatthew Hunt <mph@FreeBSD.org>1998-12-28 22:55:35 +0000
committerMatthew Hunt <mph@FreeBSD.org>1998-12-28 22:55:35 +0000
commit0abb6a96673b29218721b231016cdaa9633f657d (patch)
treea49cc8a4f5d9ad7bfb7c214ad7df8e7e885375d8 /games/gnuchess
parent0ad76c3a2a43b6c2a6f0b2e6b7caf88e93a1764c (diff)
downloadports-0abb6a96673b29218721b231016cdaa9633f657d.tar.gz
ports-0abb6a96673b29218721b231016cdaa9633f657d.zip
Notes
Diffstat (limited to 'games/gnuchess')
-rw-r--r--games/gnuchess/Makefile8
-rw-r--r--games/gnuchess/distinfo2
-rw-r--r--games/gnuchess/files/patch-aa269
3 files changed, 130 insertions, 149 deletions
diff --git a/games/gnuchess/Makefile b/games/gnuchess/Makefile
index 2a55cade70af..0c3e43fd9562 100644
--- a/games/gnuchess/Makefile
+++ b/games/gnuchess/Makefile
@@ -1,13 +1,13 @@
# New ports collection makefile for: Gnu Chess
-# Version required: 4.0pl77
+# Version required: 4.0pl79
# Date created: 04 July 1996
# Whom: markm
#
-# $Id: Makefile,v 1.3 1996/11/18 10:23:11 asami Exp $
+# $Id: Makefile,v 1.4 1996/11/18 13:58:39 asami Exp $
#
-DISTNAME= gnuchess-4.0.pl77
-PKGNAME= gnuchess-4.0.77
+DISTNAME= gnuchess-4.0.pl79
+PKGNAME= gnuchess-4.0.79
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GNU}
diff --git a/games/gnuchess/distinfo b/games/gnuchess/distinfo
index 6065f5ffec68..e142661d1dd4 100644
--- a/games/gnuchess/distinfo
+++ b/games/gnuchess/distinfo
@@ -1 +1 @@
-MD5 (gnuchess-4.0.pl77.tar.gz) = 0d6d3b248bed324e2cb73b63faab2b22
+MD5 (gnuchess-4.0.pl79.tar.gz) = 54be6bdcc55d36387213389369f78ec0
diff --git a/games/gnuchess/files/patch-aa b/games/gnuchess/files/patch-aa
index 0ad4488baedd..7dc910538816 100644
--- a/games/gnuchess/files/patch-aa
+++ b/games/gnuchess/files/patch-aa
@@ -1,144 +1,125 @@
-diff --minimal -c orig/gnuchess-4.0.pl77/src/dspcom.c gnuchess-4.0.pl77/src/dspcom.c
-*** orig/gnuchess-4.0.pl77/src/dspcom.c Sun May 19 23:38:47 1996
---- dspcom.c Sat Feb 15 00:29:12 1997
-***************
-*** 1099,1105 ****
- #ifdef NONDSP
- s[0] = sx[0] = '\0';
- while (!sx[0])
-! (void) gets (sx);
- #else
- fflush (stdout);
- #ifdef MSDOS
---- 1099,1105 ----
- #ifdef NONDSP
- s[0] = sx[0] = '\0';
- while (!sx[0])
-! (void) fgets (sx, 80, stdin);
- #else
- fflush (stdout);
- #ifdef MSDOS
-diff --minimal -c orig/gnuchess-4.0.pl77/src/gnuan.c gnuchess-4.0.pl77/src/gnuan.c
-*** orig/gnuchess-4.0.pl77/src/gnuan.c Sun May 19 23:39:56 1996
---- gnuan.c Sat Feb 15 00:28:24 1997
-***************
-*** 1347,1358 ****
- fpout = stderr;
- fprintf (fpout, "Input the file with the algebraic moves of the game.\n");
- fflush (fpout);
-! gets (infilename);
- fprintf (fpout, "\n");
- do
- {
- fprintf (fpout, "Input the search depth you want to use. (1 to 29)(- for depth from file)\n");
-! gets (inbuf);
- search_depth = atoi (inbuf);
- if (search_depth < 0)
- {
---- 1347,1358 ----
- fpout = stderr;
- fprintf (fpout, "Input the file with the algebraic moves of the game.\n");
- fflush (fpout);
-! fgets (infilename, 255, stdin);
- fprintf (fpout, "\n");
- do
- {
- fprintf (fpout, "Input the search depth you want to use. (1 to 29)(- for depth from file)\n");
-! fgets (inbuf, 256, stdin);
- search_depth = atoi (inbuf);
- if (search_depth < 0)
- {
-***************
-*** 1368,1374 ****
- do
- {
- fprintf (fpout, "Input the maximum number of minutes per move you want to use.\n");
-! gets (inbuf);
- max_minutes = atoi (inbuf);
- if (max_minutes < 0)
- {
---- 1368,1374 ----
- do
- {
- fprintf (fpout, "Input the maximum number of minutes per move you want to use.\n");
-! fgets (inbuf, 256, stdin);
- max_minutes = atoi (inbuf);
- if (max_minutes < 0)
- {
-***************
-*** 1378,1384 ****
- }
- while ((max_minutes + max_seconds) < 1);
- fprintf (fpout, "Post the search results(y/n).\n");
-! gets (inbuf);
- if (inbuf[0] == 'y')
- flag.post = true;
- else
---- 1378,1384 ----
- }
- while ((max_minutes + max_seconds) < 1);
- fprintf (fpout, "Post the search results(y/n).\n");
-! fgets (inbuf, 256, stdin);
- if (inbuf[0] == 'y')
- flag.post = true;
- else
-***************
-*** 1558,1564 ****
- while (true)
- {
- printf (">");
-! gets (GNUANinbuf1);
- p = GNUANinbuf1;
- q = GNUANinbuf;
- while (true)
---- 1558,1564 ----
- while (true)
- {
- printf (">");
-! fgets (GNUANinbuf1, 128, stdin);
- p = GNUANinbuf1;
- q = GNUANinbuf;
- while (true)
-diff --minimal -c orig/gnuchess-4.0.pl77/src/nondsp.c gnuchess-4.0.pl77/src/nondsp.c
-*** orig/gnuchess-4.0.pl77/src/nondsp.c Sun May 19 23:40:31 1996
---- nondsp.c Sat Feb 15 00:25:49 1997
-***************
-*** 264,273 ****
-
- NewGame ();
-
-! gets (s); /* skip "setup" command */
- for (r = 7; r >= 0; r--)
- {
-! gets (s);
- for (c = 0; c <= 7; c++)
- {
- ch = s[c];
---- 264,273 ----
-
- NewGame ();
-
-! fgets (s, 80, stdin); /* skip "setup" command */
- for (r = 7; r >= 0; r--)
- {
-! fgets (s, 80, stdin);
- for (c = 0; c <= 7; c++)
- {
- ch = s[c];
-***************
-*** 617,623 ****
- if (!T[0])
- {
- printz (CP[61]);
-! gets (T);
- }
- strcat (T, "XX");
- /* skip whitespace */
---- 617,623 ----
- if (!T[0])
- {
- printz (CP[61]);
-! fgets (T, 64, stdin);
- }
- strcat (T, "XX");
- /* skip whitespace */
+diff -udr ../../gnuchess-4.0.pl79/src/dspcom.c ./src/dspcom.c
+--- ../../gnuchess-4.0.pl79/src/dspcom.c Mon Sep 28 08:41:19 1998
++++ ./src/dspcom.c Thu Dec 10 23:40:57 1998
+@@ -1099,14 +1099,14 @@
+ #ifdef NONDSP
+ s[0] = sx[0] = '\0';
+ while (!sx[0])
+- (void) gets (sx);
++ (void) fgets (sx, 80, stdin); sx[79] = '\0';
+ #else
+ fflush (stdout);
+ #ifdef MSDOS
+ s[0] = '\0';
+ eof = ( gets (sx) == NULL );
+ #else
+ eof = ( getstr (sx) == ERR );
+ #endif
+ #endif
+ sscanf (sx, "%s", s);
+diff -udr ../../gnuchess-4.0.pl79/src/gnuan.c ./src/gnuan.c
+--- ../../gnuchess-4.0.pl79/src/gnuan.c Mon Sep 28 08:41:21 1998
++++ ./src/gnuan.c Thu Dec 10 23:39:26 1998
+@@ -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)
+@@ -1724,7 +1725,7 @@
+ move_percent[black] = ((float) same_moves[black]) * 200 / (float) (GNUANmovecnt + (GNUANmovecnt % 2 ? 1 : 0));
+ fprintf (fpout, "\n White's percentage was %5.2f%%. Black's percentage was %5.2f%%.\n", move_percent[white], move_percent[black]);
+ time (&end_time);
+- elapsed_time = difftime(end_time - start_time);
++ elapsed_time = difftime(end_time, start_time);
+ fprintf (fpout, "\n Elapsed time was %ld seconds.\n", elapsed_time);
+ fclose (fpin);
+ fclose (fpout);
+diff -udr ../../gnuchess-4.0.pl79/src/nondsp.c ./src/nondsp.c
+--- ../../gnuchess-4.0.pl79/src/nondsp.c Mon Sep 28 08:41:22 1998
++++ ./src/nondsp.c Thu Dec 10 23:39:26 1998
+@@ -264,10 +264,11 @@
+
+ NewGame ();
+
+- gets (s); /* skip "setup" command */
++ fgets (s, 80, stdin); /* skip "setup" command */
++ s[79] = '\0';
+ for (r = 7; r >= 0; r--)
+ {
+- gets (s);
++ fgets (s, 80, stdin); s[79] = '\0';
+ for (c = 0; c <= 7; c++)
+ {
+ ch = s[c];
+@@ -617,7 +618,7 @@
+ if (!T[0])
+ {
+ printz (CP[61]);
+- gets (T);
++ fgets (T, 64, stdin); T[63] = '\0';
+ }
+ strcat (T, "XX");
+ /* skip whitespace */
+diff -udr ../../gnuchess-4.0.pl79/src/search.c ./src/search.c
+--- ../../gnuchess-4.0.pl79/src/search.c Mon Sep 28 08:41:23 1998
++++ ./src/search.c Thu Dec 10 23:39:26 1998
+@@ -174,7 +174,7 @@
+ while (true)
+ {
+ printf ("debug?");
+- gets (b);
++ fgets (b, 32, stdin); b[31] = '\0';
+ if (b[0] == 'p')
+ traceply = atoi (&b[1]);
+ else if (b[0] == '\0')
+diff -udr ../../gnuchess-4.0.pl79/src/uxdsp.c ./src/uxdsp.c
+--- ../../gnuchess-4.0.pl79/src/uxdsp.c Mon Sep 28 08:41:25 1998
++++ ./src/uxdsp.c Thu Dec 10 23:41:35 1998
+@@ -773,9 +773,9 @@
+ refresh ();
+ #ifdef MSDOS
+ T[0] = '\0';
+ gets (T);
+ #else
+ getstr (T);
+ #endif
+ }
+ strcat (T, "XX");