Mercurial > hg > octave-terminal
changeset 11053:c33b7054f1f9
in recent Octave_map -> octave_scalar_map changes, use GETFIELD to access map elements, not CONTENTS
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 29 Sep 2010 12:57:43 -0400 |
parents | b099acf06b55 |
children | 3b8817c91e31 |
files | src/ChangeLog src/DLD-FUNCTIONS/__glpk__.cc src/DLD-FUNCTIONS/amd.cc src/DLD-FUNCTIONS/luinc.cc |
diffstat | 4 files changed, 16 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +2010-09-29 John W. Eaton <jwe@octave.org> + + * DLD-FUNCTIONS/__glpk__.cc (OCTAVE_GLPK_GET_REAL_PARAM, + OCTAVE_GLPK_GET_INT_PARAM): Use GETFIELD to access map fields, + not CONTENTS. + * DLD-FUNCTIONS/amd.cc (Famd): Likewise. + * DLD-FUNCTIONS/luinc.cc (Fluinc): Likewise. + 2010-09-29 John W. Eaton <jwe@octave.org> * DLD-FUNCTIONS/urlwrite.cc (F__ftp_dir__): Use octave_scalar_map
--- a/src/DLD-FUNCTIONS/__glpk__.cc +++ b/src/DLD-FUNCTIONS/__glpk__.cc @@ -418,7 +418,7 @@ #define OCTAVE_GLPK_GET_REAL_PARAM(NAME, IDX) \ do \ { \ - octave_value tmp = PARAM.contents (NAME); \ + octave_value tmp = PARAM.getfield (NAME); \ \ if (tmp.is_defined ()) \ { \ @@ -444,7 +444,7 @@ #define OCTAVE_GLPK_GET_INT_PARAM(NAME, VAL) \ do \ { \ - octave_value tmp = PARAM.contents (NAME); \ + octave_value tmp = PARAM.getfield (NAME); \ \ if (tmp.is_defined ()) \ { \
--- a/src/DLD-FUNCTIONS/amd.cc +++ b/src/DLD-FUNCTIONS/amd.cc @@ -144,11 +144,11 @@ { octave_value tmp; - tmp = arg1.contents ("dense"); + tmp = arg1.getfield ("dense"); if (tmp.is_defined ()) Control[AMD_DENSE] = tmp.double_value (); - tmp = arg1.contents ("aggressive"); + tmp = arg1.getfield ("aggressive"); if (tmp.is_defined ()) Control[AMD_AGGRESSIVE] = tmp.double_value (); }
--- a/src/DLD-FUNCTIONS/luinc.cc +++ b/src/DLD-FUNCTIONS/luinc.cc @@ -127,11 +127,11 @@ { octave_value tmp; - tmp = map.contents ("droptol"); + tmp = map.getfield ("droptol"); if (tmp.is_defined ()) droptol = tmp.double_value (); - tmp = map.contents ("milu"); + tmp = map.getfield ("milu"); if (tmp.is_defined ()) { double val = tmp.double_value (); @@ -139,7 +139,7 @@ milu = (val == 0. ? false : true); } - tmp = map.contents ("udiag"); + tmp = map.getfield ("udiag"); if (tmp.is_defined ()) { double val = tmp.double_value (); @@ -147,7 +147,7 @@ udiag = (val == 0. ? false : true); } - tmp = map.contents ("thresh"); + tmp = map.getfield ("thresh"); if (tmp.is_defined ()) { thresh = tmp.matrix_value ();