pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/basic256 Explicitly use local array type. Fix del...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/45426855b952
branches:  trunk
changeset: 652945:45426855b952
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jun 10 14:58:50 2015 +0000

description:
Explicitly use local array type. Fix deletes on arrays. Bump revision.

diffstat:

 lang/basic256/Makefile                      |   4 +-
 lang/basic256/distinfo                      |   5 ++-
 lang/basic256/patches/patch-Interpreter.cpp |  40 +++++++++++++++++++++++++++-
 3 files changed, 43 insertions(+), 6 deletions(-)

diffs (83 lines):

diff -r 7c6a79a71e7f -r 45426855b952 lang/basic256/Makefile
--- a/lang/basic256/Makefile    Wed Jun 10 14:57:52 2015 +0000
+++ b/lang/basic256/Makefile    Wed Jun 10 14:58:50 2015 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.27 2015/04/25 14:23:26 tnn Exp $
+# $NetBSD: Makefile,v 1.28 2015/06/10 14:58:50 joerg Exp $
 #
 
 DISTNAME=      basic256_0.9.6.71
 PKGNAME=       ${DISTNAME:S/_/-/}
-PKGREVISION=   17
+PKGREVISION=   18
 CATEGORIES=    lang
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=kidbasic/}
 EXTRACT_SUFX=  .tgz
diff -r 7c6a79a71e7f -r 45426855b952 lang/basic256/distinfo
--- a/lang/basic256/distinfo    Wed Jun 10 14:57:52 2015 +0000
+++ b/lang/basic256/distinfo    Wed Jun 10 14:58:50 2015 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.3 2013/05/04 12:48:33 joerg Exp $
+$NetBSD: distinfo,v 1.4 2015/06/10 14:58:50 joerg Exp $
 
 SHA1 (basic256_0.9.6.71.tgz) = 3a8ee26230d5b14b5f325c3b6e0db511534d785f
 RMD160 (basic256_0.9.6.71.tgz) = 1edd4a2eb153eb9712f8b33e1ff2a64ebf1ba883
 Size (basic256_0.9.6.71.tgz) = 7924162 bytes
-SHA1 (patch-Interpreter.cpp) = 01800b5cd85f7c947b20ad803e04730839007ef0
+SHA1 (patch-Interpreter.cpp) = 23e0c4d7b611dff4366dbd6859d8c4eddf9d31ad
 SHA1 (patch-RunController.cpp) = 7716844575a393900b9cab1e61abd6b18cf5b138
+SHA1 (patch-Variables.h) = a350770e86e8b6913c92785b893e72d6a641f0eb
diff -r 7c6a79a71e7f -r 45426855b952 lang/basic256/patches/patch-Interpreter.cpp
--- a/lang/basic256/patches/patch-Interpreter.cpp       Wed Jun 10 14:57:52 2015 +0000
+++ b/lang/basic256/patches/patch-Interpreter.cpp       Wed Jun 10 14:58:50 2015 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-Interpreter.cpp,v 1.1 2013/05/04 12:48:33 joerg Exp $
+$NetBSD: patch-Interpreter.cpp,v 1.2 2015/06/10 14:58:50 joerg Exp $
 
 Avoid overlap with std::mutex.
 
---- Interpreter.cpp.orig       2013-05-04 00:26:28.000000000 +0000
+--- Interpreter.cpp.orig       2012-08-06 14:57:58.000000000 +0000
 +++ Interpreter.cpp
 @@ -69,6 +69,8 @@ using namespace std;
  QMutex keymutex;
@@ -13,3 +13,39 @@
  extern QMutex mutex;
  extern QMutex debugmutex;
  extern QWaitCondition waitCond;
+@@ -2446,7 +2448,7 @@ Interpreter::execByteCode()
+                                       poly.drawPolygon(points, pairs);
+                                       poly.end();
+                                       if (!fastgraphics) waitForGraphics();
+-                                      delete points;
++                                      delete[] points;
+                               }
+                       } else {
+                               errornum = ERROR_POLYARRAY;
+@@ -2487,7 +2489,7 @@ Interpreter::execByteCode()
+                               poly.end();
+       
+                               if (!fastgraphics) waitForGraphics();
+-                              delete points;
++                              delete[] points;
+                       }
+               }
+               break;
+@@ -2538,7 +2540,7 @@ Interpreter::execByteCode()
+                                               poly.end();
+                                               if (!fastgraphics) waitForGraphics();
+ 
+-                                              delete points;
++                                              delete[] points;
+                                       }
+                               }
+                       } else {
+@@ -2608,7 +2610,7 @@ Interpreter::execByteCode()
+                                       poly.end();
+                                       
+                                       if (!fastgraphics) waitForGraphics();
+-                                      delete points;
++                                      delete[] points;
+                               }
+                       }
+               }



Home | Main Index | Thread Index | Old Index