changeset 10503:fcf6341a8cab

octave_char_matrix::mex_get_data: new function
author John W. Eaton <jwe@octave.org>
date Fri, 09 Apr 2010 13:59:13 -0400
parents f13bf183a003
children 33940de7c082
files src/ChangeLog src/ov-ch-mat.h
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Apr 09 09:54:19 2010 -0400
+++ b/src/ChangeLog	Fri Apr 09 13:59:13 2010 -0400
@@ -1,3 +1,8 @@
+2010-04-09  John W. Eaton  <jwe@octave.org>
+
+	* ov-ch-mat.h (octave_char_matrix::mex_get_data): New function.
+	Addresses bug #29475.
+
 2010-04-09  Judd Storrs  <jstorrs@gmail.com>
 
 	* utils.cc (isvarname): Keywords are not valid variable names.
--- a/src/ov-ch-mat.h	Fri Apr 09 09:54:19 2010 -0400
+++ b/src/ov-ch-mat.h	Fri Apr 09 13:59:13 2010 -0400
@@ -144,6 +144,10 @@
 
   void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const;
 
+  // Unsafe.  This function exists to support the MEX interface.
+  // You should not use it anywhere else.
+  void *mex_get_data (void) const { return matrix.mex_get_data (); }
+
   mxArray *as_mxArray (void) const;
 
   octave_value map (unary_mapper_t umap) const;