[Pkg-octave-commit] [SCM] octave-ann branch, master, updated. d27be0e0f7611e5189f7c4b4bc9b73b602f049f5

Rafael Laboissiere rafael at debian.org
Sat May 16 14:41:50 UTC 2009


The following commit has been merged in the master branch:
commit d27be0e0f7611e5189f7c4b4bc9b73b602f049f5
Author: Rafael Laboissiere <rafael at debian.org>
Date:   Sat May 16 16:38:23 2009 +0200

    At load time, warn about crash at "clear all"

diff --git a/debian/patches/series b/debian/patches/series
index dc16f40..6b5573c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ cope-with-null-args.diff
 remove-own-pts.diff
 extend-after-exception.diff
 autoload-no.diff
+warn-clear-all-at-init.diff
diff --git a/debian/patches/warn-clear-all-at-init.diff b/debian/patches/warn-clear-all-at-init.diff
new file mode 100644
index 0000000..0102885
--- /dev/null
+++ b/debian/patches/warn-clear-all-at-init.diff
@@ -0,0 +1,20 @@
+Issue a warning when the package is loaded.
+See Bug#523085 and Bug#528078 for details.
+
+ -- Rafael Laboissiere <rafael at debian.org>  Fri, 15 May 2009 19:22:37 +0200
+
+--- a/src/ann/bindings/ann.i
++++ b/src/ann/bindings/ann.i
+@@ -14,6 +14,12 @@
+ #include <ANN/ANNx.h>
+ %}
+ 
++%init %{
++  warning ("You loaded the ann module.\n"
++           "A call to \"clear all\" from now on will make Octave crash.\n"
++	   "You have been warned.");
++%}
++
+ // take matrix in place of (ANNpointArray pa,int n,int dd)
+ %typemap(typecheck,precedence=SWIG_TYPECHECK_INTEGER) (ANNpointArray pa,int n,int dd) {
+    $1 = (*$input).is_matrix_type() ? 1 : 0;

-- 
octave-ann



More information about the Pkg-octave-commit mailing list