pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/bastet Improve C++ portability.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/09e1ee61a0c0
branches:  trunk
changeset: 356206:09e1ee61a0c0
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Dec 22 11:36:35 2016 +0000

description:
Improve C++ portability.

diffstat:

 games/bastet/distinfo               |   3 ++-
 games/bastet/patches/patch-Well.hpp |  25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletions(-)

diffs (42 lines):

diff -r 450250752102 -r 09e1ee61a0c0 games/bastet/distinfo
--- a/games/bastet/distinfo     Thu Dec 22 10:03:07 2016 +0000
+++ b/games/bastet/distinfo     Thu Dec 22 11:36:35 2016 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.6 2016/10/15 00:45:15 kamil Exp $
+$NetBSD: distinfo,v 1.7 2016/12/22 11:36:35 joerg Exp $
 
 SHA1 (bastet-0.43.1.tar.gz) = 003e342df526211a9a811c2235a02b2d8288e020
 RMD160 (bastet-0.43.1.tar.gz) = dde16fd74747bbd9dcc3a9762c0e681b7c9318ce
 SHA512 (bastet-0.43.1.tar.gz) = b2b67cd5bcc015629bd679b2bce696bd9e944cd233c78a9d49f91d340cd57f36f17181ffee5637c5883d5d28d4a1e3378697c5015dfd1cdac55e4a893c025e6f
 Size (bastet-0.43.1.tar.gz) = 82802 bytes
 SHA1 (patch-Makefile) = e372e9c19166dbfb4b432e720a0c56990792297e
+SHA1 (patch-Well.hpp) = d4f84a24f39aae1a84d62ad3e33fb9466dc2bbbe
diff -r 450250752102 -r 09e1ee61a0c0 games/bastet/patches/patch-Well.hpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/bastet/patches/patch-Well.hpp       Thu Dec 22 11:36:35 2016 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-Well.hpp,v 1.1 2016/12/22 11:36:35 joerg Exp $
+
+friend declaration should not contain default arguments.
+
+--- Well.hpp.orig      2016-12-22 10:46:03.217308267 +0000
++++ Well.hpp
+@@ -30,7 +30,8 @@
+ #include <iostream>
+ 
+ namespace Bastet{
+-  
++  long Evaluate(const Well *w, int extralines = 0);
++
+   class GameOver{}; //used as an exception
+ 
+   class WellLine: public std::bitset<WellWidth>{
+@@ -66,7 +67,7 @@ namespace Bastet{
+     LinesCompleted Lock(BlockType t, const BlockPosition &p); //permanently adds a tetromino to the well; returns a bitset of 4 bits where return[i]==1 iff line (start of fb)+i is complete
+     void ClearLines(const LinesCompleted &lc); //removes the given lines from the well (whether they are completed or not)
+     int LockAndClearLines(BlockType t, const BlockPosition &p); //locks, clear lines, returns number of lines cleared
+-    friend long Evaluate(const Well *w, int extralines=0); //for BastetBlockChooser
++    friend long Evaluate(const Well *w, int extralines); //for BastetBlockChooser
+     std::string PrettyPrint() const;
+   };
+   



Home | Main Index | Thread Index | Old Index