# HG changeset patch # User John W. Eaton # Date 1270835953 14400 # Node ID fcf6341a8cab698f72b8c49f9e6634579f83c94f # Parent f13bf183a003f1734783f224bf64437e7c47255d octave_char_matrix::mex_get_data: new function diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-04-09 John W. Eaton + + * ov-ch-mat.h (octave_char_matrix::mex_get_data): New function. + Addresses bug #29475. + 2010-04-09 Judd Storrs * utils.cc (isvarname): Keywords are not valid variable names. diff --git a/src/ov-ch-mat.h b/src/ov-ch-mat.h --- a/src/ov-ch-mat.h +++ b/src/ov-ch-mat.h @@ -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;