changeset 6787:963a19576024

[project @ 2007-07-23 19:23:39 by jwe]
author jwe
date Mon, 23 Jul 2007 19:23:40 +0000
parents bb5958d3510a
children c81a0f3f5a82
files src/ChangeLog src/mex.cc src/mexproto.h
diffstat 3 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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  <aquil.abdullah@gmail.com>
+
+	* mex.cc (mxCreateStructArray): Declare second arg as const.
+	* mexproto.h (mxCreateStructArray): Ditto.
+
 2007-07-20  David Bateman  <dbateman@free.fr>
 
         * zfstream.cc (BUFSIZE): Increase default buffer size to 256kB
--- 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));
 }
--- 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.