summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorrillig <rillig>2005-03-16 15:39:02 +0000
committerrillig <rillig>2005-03-16 15:39:02 +0000
commita584f0bd6d6186dd4f1dd2f4f7849a6ea750ab7e (patch)
tree0967de853a468492c7756fa05f3c07465a3d5f6d /games
parente7103fc91a62c117514a824694fba4e129b292ab (diff)
downloadpkgsrc-a584f0bd6d6186dd4f1dd2f4f7849a6ea750ab7e.tar.gz
Added a patch that replaces C++ comments by C comments. Needed for
gcc-2.95.3. Approved by wiz.
Diffstat (limited to 'games')
-rw-r--r--games/gnome2-games/distinfo3
-rw-r--r--games/gnome2-games/patches/patch-ad33
2 files changed, 35 insertions, 1 deletions
diff --git a/games/gnome2-games/distinfo b/games/gnome2-games/distinfo
index f4fa1d432cf..09031d3e15b 100644
--- a/games/gnome2-games/distinfo
+++ b/games/gnome2-games/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.13 2005/02/23 23:11:58 agc Exp $
+$NetBSD: distinfo,v 1.14 2005/03/16 15:39:02 rillig Exp $
SHA1 (gnome-games-2.8.3.tar.bz2) = b05acd8d316358cbb32d2f11c559d7dc875e7692
RMD160 (gnome-games-2.8.3.tar.bz2) = c2a8d97e0f46c6aa5aeea1efa0b7b28789cd375f
Size (gnome-games-2.8.3.tar.bz2) = 5923240 bytes
SHA1 (patch-aa) = e74547a19267b1a39528d9556d115fff4f7cd21d
SHA1 (patch-ac) = e54f3fecee226f78edf17dc686c6bde2a25e36fd
+SHA1 (patch-ad) = fa7cacd10294f5622cfb6c400db9a26d9940d6de
diff --git a/games/gnome2-games/patches/patch-ad b/games/gnome2-games/patches/patch-ad
new file mode 100644
index 00000000000..2d67711f145
--- /dev/null
+++ b/games/gnome2-games/patches/patch-ad
@@ -0,0 +1,33 @@
+$NetBSD: patch-ad,v 1.1 2005/03/16 15:39:02 rillig Exp $
+
+Use C comments, not C++. Needed for gcc-2.95.3.
+
+--- iagno/othello.c.orig Wed Jan 12 10:21:32 2005
++++ iagno/othello.c Wed Mar 16 00:05:05 2005
+@@ -551,7 +551,7 @@ find_best_move(gint8 board[8][8], guint
+ memcpy (tboard, board, sizeof (gint8) * 8 * 8);
+ move_board(tboard, i, j, me, 0);
+
+- // assume that opponent takes best move
++ /* assume that opponent takes best move */
+ tmp_move = find_best_move(tboard, not_me, ply_depth-1,
+ -pass_thresh, -use_thresh, 0, 0);
+
+@@ -808,14 +808,14 @@ eval_board (gint8 board[8][8], guint me)
+ found_free = TRUE;
+ }
+
+- // check if a player is dead
++ /* check if a player is dead */
+ if (!found_me && found_not_me)
+ return (-10000);
+ else if (found_me && !found_not_me)
+ return (10000);
+
+- // if the game is finished, return the actual score rather than
+- // a huristic
++ /* if the game is finished, return the actual score rather than
++ * a huristic */
+ if (!found_free)
+ return (actual_score);
+