pkgsrc-Changes archive

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

CVS commit: pkgsrc/games/bastet



Module Name:    pkgsrc
Committed By:   joerg
Date:           Thu Dec 22 11:36:35 UTC 2016

Modified Files:
        pkgsrc/games/bastet: distinfo
Added Files:
        pkgsrc/games/bastet/patches: patch-Well.hpp

Log Message:
Improve C++ portability.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/games/bastet/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/games/bastet/patches/patch-Well.hpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/bastet/distinfo
diff -u pkgsrc/games/bastet/distinfo:1.6 pkgsrc/games/bastet/distinfo:1.7
--- pkgsrc/games/bastet/distinfo:1.6    Sat Oct 15 00:45:15 2016
+++ pkgsrc/games/bastet/distinfo        Thu Dec 22 11:36:35 2016
@@ -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

Added files:

Index: pkgsrc/games/bastet/patches/patch-Well.hpp
diff -u /dev/null pkgsrc/games/bastet/patches/patch-Well.hpp:1.1
--- /dev/null   Thu Dec 22 11:36:35 2016
+++ pkgsrc/games/bastet/patches/patch-Well.hpp  Thu Dec 22 11:36:35 2016
@@ -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