changeset 7177:57d2546ad8d5

[project @ 2007-11-14 22:21:35 by jwe]
author jwe
date Wed, 14 Nov 2007 22:21:36 +0000
parents 6525eb2fba0f
children 8cfdb0f24f41
files ChangeLog configure.in liboctave/oct-inttypes.h scripts/ChangeLog scripts/plot/patch.m src/ChangeLog src/Makefile.in src/mex.cc
diffstat 8 files changed, 25 insertions(+), 32 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Nov 14 20:42:07 2007 +0000
+++ b/ChangeLog	Wed Nov 14 22:21:36 2007 +0000
@@ -1,3 +1,7 @@
+2007-11-14  John W. Eaton  <jwe@octave.org>
+
+	* configure.in: Don't create Makefrag.bsd.
+
 2007-11-14  Joseph P. Skudlarek  <Jskud@Jskud.com>
 
 	* configure.in: Rework pcre.h tests to work with autoconf 2.59,
--- a/configure.in	Wed Nov 14 20:42:07 2007 +0000
+++ b/configure.in	Wed Nov 14 22:21:36 2007 +0000
@@ -29,7 +29,7 @@
 EXTERN_CXXFLAGS="$CXXFLAGS"
 
 AC_INIT
-AC_REVISION($Revision: 1.595 $)
+AC_REVISION($Revision: 1.596 $)
 AC_PREREQ(2.57)
 AC_CONFIG_SRCDIR([src/octave.cc])
 AC_CONFIG_HEADER(config.h)
@@ -1588,32 +1588,6 @@
   ;;
 esac
 
-bsd_gcc_kluge_targets_frag=/dev/null
-case "$canonical_host_type" in
-  *-*-386bsd* | *-*-openbsd* | *-*-netbsd* | *-*-freebsd*)
-    bsd_gcc_kluge_targets_frag=Makefrag.bsd
-    cat << \EOF > $bsd_gcc_kluge_targets_frag
-
-lex.o: lex.cc 
-	$(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $<
-
-pt-plot.o: pt-plot.cc
-	$(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $<
-
-symtab.o: symtab.cc
-	$(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $<
-
-toplev.o: toplev.cc
-	$(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $<
-
-unwind-prot.o: unwind-prot.cc 
-	$(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $<
-
-EOF
-  ;;
-esac
-AC_SUBST_FILE(bsd_gcc_kluge_targets_frag)
-
 ### Checks for other programs used for building, testing, installing,
 ### and running Octave.
 
--- a/liboctave/oct-inttypes.h	Wed Nov 14 20:42:07 2007 +0000
+++ b/liboctave/oct-inttypes.h	Wed Nov 14 22:21:36 2007 +0000
@@ -250,6 +250,8 @@
       OCTAVE_INT_FIT_TO_RANGE (- static_cast<double> (ival), T) : 0;
   }
 
+  operator T (void) const { return value (); }
+
   operator bool (void) const { return static_cast<bool> (value ()); }
 
   operator char (void) const { return static_cast<char> (value ()); }
--- a/scripts/ChangeLog	Wed Nov 14 20:42:07 2007 +0000
+++ b/scripts/ChangeLog	Wed Nov 14 22:21:36 2007 +0000
@@ -1,3 +1,8 @@
+2007-11-14  Michael Goffioul  <michael.goffioul@gmail.com>
+
+	* plot/patch.m: Handle arg may also be hggroup object.
+	Use ancestor to find parent axes object.
+
 2007-11-14  David Bateman  <dbateman@free.fr>
 
 	* plot/__contour__.m: Treat unclosed contours by adding NaN to
--- a/scripts/plot/patch.m	Wed Nov 14 20:42:07 2007 +0000
+++ b/scripts/plot/patch.m	Wed Nov 14 22:21:36 2007 +0000
@@ -38,12 +38,12 @@
 
   if (isscalar (varargin{1}) && ishandle (varargin{1}))
     h = varargin {1};
-    if (! strcmp (get (h, "type"), "axes"))
-      error ("patch: expecting first argument to be an axes object");
+    if (! strcmp (get (h, "type"), "axes") && ! strcmp (get (h, "type"), "hggroup"))
+      error ("patch: expecting first argument to be an axes or hggroup object");
     endif
     oldh = gca ();
     unwind_protect
-      axes (h);
+      axes (ancestor (h, "axes"));
       [tmp, fail] = __patch__ (h, varargin{2:end});
     unwind_protect_cleanup
       axes (oldh);
--- a/src/ChangeLog	Wed Nov 14 20:42:07 2007 +0000
+++ b/src/ChangeLog	Wed Nov 14 22:21:36 2007 +0000
@@ -1,5 +1,13 @@
+2007-11-14  David Bateman  <dbateman@free.fr>
+
+	* mex.cc (mxArray_sparse::mxArray_sparse (const mxArray_sparse&)):
+	Also ensure that pr and pi are correctly copied.
+
 2007-11-14  John W. Eaton  <jwe@octave.org>
 
+	* Makefile.in (@bsd_gcc_kluge_targets_frag@): Delete line for
+	Makefrag.bsd substitution.
+
 	* graphics.h.in (base_properties::tag): New property.
 	(base_properties::get_tag, base_properties::set_tag): New functions.
 	(root_figure::set, root_figure::get, figure::set, figure::get,
--- a/src/Makefile.in	Wed Nov 14 20:42:07 2007 +0000
+++ b/src/Makefile.in	Wed Nov 14 22:21:36 2007 +0000
@@ -408,8 +408,6 @@
 
 $(MAKEDEPS): stamp-prereq stamp-liboctave-prereq defaults.h oct-gperf.h oct-conf.h
 
-@bsd_gcc_kluge_targets_frag@
-
 check: all
 .PHONY: check
 
--- a/src/mex.cc	Wed Nov 14 20:42:07 2007 +0000
+++ b/src/mex.cc	Wed Nov 14 22:21:36 2007 +0000
@@ -1594,6 +1594,8 @@
 
   mxArray_sparse (const mxArray_sparse& val)
     : mxArray_matlab (val), nzmax (val.nzmax),
+      pr (malloc (nzmax * get_element_size ())),
+      pi (val.pi ? malloc (nzmax * get_element_size ()) : 0),
       ir (static_cast<mwIndex *> (malloc (nzmax * sizeof (mwIndex)))),
       jc (static_cast<mwIndex *> (malloc (nzmax * sizeof (mwIndex))))
   {