pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/yap Don't use false as pointer. Don't use default...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7b5a9df6aaba
branches:  trunk
changeset: 621851:7b5a9df6aaba
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Jul 19 12:51:56 2013 +0000

description:
Don't use false as pointer. Don't use default arguments in friend
definition.

diffstat:

 lang/yap/distinfo                                            |   4 +-
 lang/yap/patches/patch-packages_CLPBN_horus_HorusCli.cpp     |  22 ++++++++++++
 lang/yap/patches/patch-packages_swi-minisat2_C_SolverTypes.h |  13 +++++++
 3 files changed, 38 insertions(+), 1 deletions(-)

diffs (59 lines):

diff -r 39d50d8037b5 -r 7b5a9df6aaba lang/yap/distinfo
--- a/lang/yap/distinfo Fri Jul 19 12:51:10 2013 +0000
+++ b/lang/yap/distinfo Fri Jul 19 12:51:56 2013 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.16 2013/06/13 21:44:06 joerg Exp $
+$NetBSD: distinfo,v 1.17 2013/07/19 12:51:56 joerg Exp $
 
 SHA1 (yap-6.3.3.tar.gz) = d191e419e5cf74b11e003aae5fe148f3f2f26ac5
 RMD160 (yap-6.3.3.tar.gz) = 6c92880670d58b1e885cbb52709b61773db65808
@@ -11,4 +11,6 @@
 SHA1 (patch-aj) = 9d8c1cde65c52f963f72b4f5364e611db96e59c7
 SHA1 (patch-configure) = a88448bb21ba103fab3579dfec7e9dbc812491f3
 SHA1 (patch-configure.in) = cbe3f2f503ba56c953fa4454881ea4917f275460
+SHA1 (patch-packages_CLPBN_horus_HorusCli.cpp) = 82879fa9e998c993a10850bce729e658f73bec11
 SHA1 (patch-packages_pldoc_Makefile.in) = 821a281c2066f6ebb7e03e197e3e5eb32ac299e8
+SHA1 (patch-packages_swi-minisat2_C_SolverTypes.h) = 88ee9ab4dd7fc43e3433d02633513c204981ece2
diff -r 39d50d8037b5 -r 7b5a9df6aaba lang/yap/patches/patch-packages_CLPBN_horus_HorusCli.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/yap/patches/patch-packages_CLPBN_horus_HorusCli.cpp  Fri Jul 19 12:51:56 2013 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-packages_CLPBN_horus_HorusCli.cpp,v 1.1 2013/07/19 12:51:56 joerg Exp $
+
+--- packages/CLPBN/horus/HorusCli.cpp.orig     2013-07-19 10:05:58.000000000 +0000
++++ packages/CLPBN/horus/HorusCli.cpp
+@@ -121,7 +121,7 @@ readQueryAndEvidence (
+       }
+       VarId vid = Util::stringToUnsigned (arg);
+       VarNode* queryVar = fg.getVarNode (vid);
+-      if (queryVar == false) {
++      if (queryVar == NULL) {
+         cerr << "Error: unknow variable with id " ;
+         cerr << "`" << vid << "'."  << endl;
+         exit (EXIT_FAILURE);
+@@ -143,7 +143,7 @@ readQueryAndEvidence (
+       }
+       VarId vid = Util::stringToUnsigned (leftArg);
+       VarNode* observedVar = fg.getVarNode (vid);
+-      if (observedVar == false) {
++      if (observedVar == NULL) {
+         cerr << "Error: unknow variable with id " ;
+         cerr << "`" << vid << "'."  << endl;
+         exit (EXIT_FAILURE);
diff -r 39d50d8037b5 -r 7b5a9df6aaba lang/yap/patches/patch-packages_swi-minisat2_C_SolverTypes.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/yap/patches/patch-packages_swi-minisat2_C_SolverTypes.h      Fri Jul 19 12:51:56 2013 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-packages_swi-minisat2_C_SolverTypes.h,v 1.3 2013/07/19 12:51:56 joerg Exp $
+
+--- packages/swi-minisat2/C/SolverTypes.h.orig 2012-06-29 21:19:52.000000000 +0000
++++ packages/swi-minisat2/C/SolverTypes.h
+@@ -119,7 +119,7 @@ public:
+ 
+     // -- use this function instead:
+     template<class V>
+-    friend Clause* Clause_new(const V& ps, bool learnt = false);
++    friend Clause* Clause_new(const V& ps, bool learnt);
+ 
+     int          size        ()      const   { return size_etc >> 3; }
+     void         shrink      (int i)         { assert(i <= size()); size_etc = (((size_etc >> 3) - i) << 3) | (size_etc & 7); }



Home | Main Index | Thread Index | Old Index