summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-01-20 17:07:35 +0000
committerjoerg <joerg@pkgsrc.org>2012-01-20 17:07:35 +0000
commiteddec9c789f4b254ca1040633bf165a240b23fdc (patch)
treee660e2ec1f3a43a9775e74cbcd8fd5158b07d765 /games
parentc703e1e5665335c9d598d9d6dc817313e3dd980c (diff)
downloadpkgsrc-eddec9c789f4b254ca1040633bf165a240b23fdc.tar.gz
Rename local variable to not conflict with STL
Diffstat (limited to 'games')
-rw-r--r--games/exchess/distinfo4
-rw-r--r--games/exchess/patches/patch-ad30
2 files changed, 30 insertions, 4 deletions
diff --git a/games/exchess/distinfo b/games/exchess/distinfo
index 72561ee4d34..8ac051c3994 100644
--- a/games/exchess/distinfo
+++ b/games/exchess/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2011/11/25 21:52:33 joerg Exp $
+$NetBSD: distinfo,v 1.8 2012/01/20 17:07:35 joerg Exp $
SHA1 (EXCH314S.zip) = 7d8ffbd94dc86a97512826e611048a691c8c646d
RMD160 (EXCH314S.zip) = 0503200c210aaf7ddc69e1372392e8ea690505ea
@@ -6,7 +6,7 @@ Size (EXCH314S.zip) = 110676 bytes
SHA1 (patch-aa) = 43731240e32aaab2c7c32aac343ef31f5a220b5a
SHA1 (patch-ab) = a9385051ed9d482e02bbeff40b5d9552ebc56c9f
SHA1 (patch-ac) = cfc1beff8ae3b2e4c9620e8d49852ce80d848ad6
-SHA1 (patch-ad) = e3d5a89d78346ebc35818783af1f1d7e506ab78b
+SHA1 (patch-ad) = 6aa7b8eff073d68899fbd026bd16d92c0ddf1d82
SHA1 (patch-ae) = 9d374b888a6f431604f41c4421baa23d8ca775a1
SHA1 (patch-af) = 7eb0c780dea41b5d17a532f82a76b984eeefda2d
SHA1 (patch-ag) = 00bb9750c823aecd7fa44aacc1cf539e062055a9
diff --git a/games/exchess/patches/patch-ad b/games/exchess/patches/patch-ad
index 5b7aa76c4d0..a689208052e 100644
--- a/games/exchess/patches/patch-ad
+++ b/games/exchess/patches/patch-ad
@@ -1,4 +1,4 @@
-$NetBSD: patch-ad,v 1.3 2011/11/25 21:52:33 joerg Exp $
+$NetBSD: patch-ad,v 1.4 2012/01/20 17:07:35 joerg Exp $
--- main.cpp.orig 2000-04-01 07:46:20.000000000 +0000
+++ main.cpp
@@ -29,7 +29,15 @@ $NetBSD: patch-ad,v 1.3 2011/11/25 21:52:33 joerg Exp $
#else
#include <windows.h>
#include <time.h>
-@@ -56,7 +59,7 @@ position reset_pos;
+@@ -49,14 +52,14 @@ ofstream logfile;
+ int MAX_LOGS = 100;
+
+ // xboard flag
+-int xboard, post, ics, ALLEG = 0, hintflag = 0, count = 1;
++int xboard, post, ics, ALLEG = 0, hintflag = 0, my_count = 1;
+ int ponder_flag = 1, learn_bk, shout_book;
+ int no_book = 0; // count of moves without a book move
+ position reset_pos;
extern int ponder, last_ponder, learn_count, learned;
extern unsigned long TAB_SIZE, PAWN_SIZE;
@@ -65,3 +73,21 @@ $NetBSD: patch-ad,v 1.3 2011/11/25 21:52:33 joerg Exp $
if(logfile) break;
}
if(!logfile) {
+@@ -164,7 +158,7 @@ int main(int argc, char *argv[])
+
+ /* main loop */
+
+- while (count > 0)
++ while (my_count > 0)
+ {
+
+ // find a hint move, check book first then look in pv
+@@ -745,7 +739,7 @@ void parse_command()
+ else if(!strcmp(response, "nopost")) { post = 0; }
+ else if(!strcmp(response, "probe")) { cout << probe_tb(&game_pos,0) << "\n"; }
+ else if(!strcmp(response, "save") || !strcmp(response, "SR")) { save_game(); }
+- else if(!strcmp(response, "quit")) { game_over = 1; count = 0; }
++ else if(!strcmp(response, "quit")) { game_over = 1; my_count = 0; }
+ else if(!strcmp(response, "performance")) { performance(); }
+ else if(!strcmp(response, "setboard"))
+ { cin >> inboard >> ms >> castle >> ep; mttc = omttc; game_over = 0;