pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/gnome2-games Added a patch that replaces C++ com...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/acf3b8bb7582
branches:  trunk
changeset: 490624:acf3b8bb7582
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Mar 16 15:39:02 2005 +0000

description:
Added a patch that replaces C++ comments by C comments. Needed for
gcc-2.95.3. Approved by wiz.

diffstat:

 games/gnome2-games/distinfo         |   3 ++-
 games/gnome2-games/patches/patch-ad |  33 +++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 1 deletions(-)

diffs (50 lines):

diff -r e813137a6a54 -r acf3b8bb7582 games/gnome2-games/distinfo
--- a/games/gnome2-games/distinfo       Wed Mar 16 15:32:12 2005 +0000
+++ b/games/gnome2-games/distinfo       Wed Mar 16 15:39:02 2005 +0000
@@ -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 -r e813137a6a54 -r acf3b8bb7582 games/gnome2-games/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/gnome2-games/patches/patch-ad       Wed Mar 16 15:39:02 2005 +0000
@@ -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);
+       



Home | Main Index | Thread Index | Old Index