Mercurial > hg > octave-lyh
diff src/oct-hist.cc @ 3551:4833e231e05b
[project @ 2000-02-03 02:30:44 by jwe]
author | jwe |
---|---|
date | Thu, 03 Feb 2000 02:30:44 +0000 |
parents | 71bd2d124119 |
children | 4b1a93f83264 |
line wrap: on
line diff
--- a/src/oct-hist.cc +++ b/src/oct-hist.cc @@ -114,7 +114,7 @@ if (! env_file.empty ()) { - fstream f (env_file.c_str (), (std::ios::in | std::ios::out)); + std::fstream f (env_file.c_str (), (std::ios::in | std::ios::out)); if (f) { @@ -227,7 +227,7 @@ // caller should free the storage. static char * -edit_history_readline (fstream& stream) +edit_history_readline (std::fstream& stream) { char c; int line_len = 128; @@ -405,7 +405,7 @@ std::string name = file_ops::tempnam ("", "oct-"); - fstream file (name.c_str (), std::ios::out); + std::fstream file (name.c_str (), std::ios::out); if (! file) { @@ -457,7 +457,7 @@ // Write the commands to the history file since parse_and_execute // disables command line history while it executes. - fstream file (name.c_str (), std::ios::in); + std::fstream file (name.c_str (), std::ios::in); char *line; int first = 1;