Mercurial > hg > octave-nkf
diff src/load-save.cc @ 3552:41daa489833a
[project @ 2000-02-03 03:05:28 by jwe]
author | jwe |
---|---|
date | Thu, 03 Feb 2000 03:05:31 +0000 |
parents | ab7fa5a8f23f |
children | 2e5d35d7f60c |
line wrap: on
line diff
--- a/src/load-save.cc +++ b/src/load-save.cc @@ -80,7 +80,7 @@ LS_BINARY, LS_MAT_ASCII, LS_MAT_BINARY, - LS_UNKNOWN, + LS_UNKNOWN }; // Return TRUE if S is a valid identifier. @@ -988,7 +988,7 @@ static void get_lines_and_columns (std::istream& is, const std::string& filename, int& nr, int& nc) { - streampos pos = is.tellg (); + std::streampos pos = is.tellg (); int file_line_number = 0; @@ -1464,8 +1464,8 @@ oct_mach_info::float_format& flt_fmt, bool quiet = false) { - int magic_len = 10; - char magic [magic_len+1]; + const int magic_len = 10; + char magic[magic_len+1]; is.read (magic, magic_len); magic[magic_len] = '\0'; if (strncmp (magic, "Octave-1-L", magic_len) == 0) @@ -1827,7 +1827,7 @@ unsigned mode = std::ios::in; if (format == LS_BINARY || format == LS_MAT_BINARY) - mode |= std::ios::bin; + mode |= std::ios::binary; std::ifstream file (fname.c_str (), mode); @@ -2541,7 +2541,7 @@ unsigned mode = std::ios::out|std::ios::trunc; if (format == LS_BINARY || format == LS_MAT_BINARY) - mode |= std::ios::bin; + mode |= std::ios::binary; std::ofstream file (fname, mode); @@ -2708,7 +2708,7 @@ unsigned mode = std::ios::out; if (format == LS_BINARY || format == LS_MAT_BINARY) - mode |= std::ios::bin; + mode |= std::ios::binary; mode |= append ? std::ios::ate : std::ios::trunc;