# HG changeset patch # User jwe # Date 1185218620 0 # Node ID 963a19576024c2b2d6d2d78b7b35160d954201a0 # Parent bb5958d3510a583c99116b0d088edebc7e1545d6 [project @ 2007-07-23 19:23:39 by jwe] diff -r bb5958d3510a -r 963a19576024 src/ChangeLog --- a/src/ChangeLog Mon Jul 23 17:28:15 2007 +0000 +++ b/src/ChangeLog Mon Jul 23 19:23:40 2007 +0000 @@ -1,3 +1,8 @@ +2007-07-23 Aquil H. Abdullah + + * mex.cc (mxCreateStructArray): Declare second arg as const. + * mexproto.h (mxCreateStructArray): Ditto. + 2007-07-20 David Bateman * zfstream.cc (BUFSIZE): Increase default buffer size to 256kB diff -r bb5958d3510a -r 963a19576024 src/mex.cc --- a/src/mex.cc Mon Jul 23 17:28:15 2007 +0000 +++ b/src/mex.cc Mon Jul 23 19:23:40 2007 +0000 @@ -2495,7 +2495,7 @@ } mxArray * -mxCreateStructArray (mwSize ndims, mwSize *dims, int num_keys, const char **keys) +mxCreateStructArray (mwSize ndims, const mwSize *dims, int num_keys, const char **keys) { return maybe_mark_array (new mxArray (ndims, dims, num_keys, keys)); } diff -r bb5958d3510a -r 963a19576024 src/mexproto.h --- a/src/mexproto.h Mon Jul 23 17:28:15 2007 +0000 +++ b/src/mexproto.h Mon Jul 23 19:23:40 2007 +0000 @@ -123,7 +123,7 @@ extern OCTINTERP_API mxArray *mxCreateSparse (mwSize m, mwSize n, mwSize nzmax, mxComplexity flag); extern OCTINTERP_API mxArray *mxCreateSparseLogicalMatrix (mwSize m, mwSize n, mwSize nzmax); extern OCTINTERP_API mxArray *mxCreateString (const char *str); -extern OCTINTERP_API mxArray *mxCreateStructArray (mwSize ndims, mwSize *dims, int num_keys, const char **keys); +extern OCTINTERP_API mxArray *mxCreateStructArray (mwSize ndims, const mwSize *dims, int num_keys, const char **keys); extern OCTINTERP_API mxArray *mxCreateStructMatrix (mwSize rows, mwSize cols, int num_keys, const char **keys); // Copy constructor.