Mercurial > hg > octave-terminal
changeset 10762:d53eb6249892
use scalar map in some syscalls
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 01 Jul 2010 10:01:56 +0200 |
parents | 12dfe91e9fab |
children | b397b8edd8c5 |
files | src/ChangeLog src/syscalls.cc |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2010-07-01 Jaroslav Hajek <highegg@gmail.com> + + * syscalls.cc (mk_stat_map, Funame): Use octave_scalar_map. + 2010-07-01 Jaroslav Hajek <highegg@gmail.com> * oct-map.h (octave_scalar_map::assign (const std::string&, const
--- a/src/syscalls.cc +++ b/src/syscalls.cc @@ -57,10 +57,10 @@ #include "variables.h" #include "input.h" -static Octave_map +static octave_scalar_map mk_stat_map (const base_file_stat& fs) { - Octave_map m; + octave_scalar_map m; m.assign ("dev", static_cast<double> (fs.dev ())); m.assign ("ino", fs.ino ()); @@ -1202,7 +1202,7 @@ { octave_uname sysinfo; - Octave_map m; + octave_scalar_map m; m.assign ("sysname", sysinfo.sysname ()); m.assign ("nodename", sysinfo.nodename ());