Mercurial > hg > octave-nkf
diff liboctave/file-stat.cc @ 3504:5eef8a2294bd
[project @ 2000-02-01 10:06:51 by jwe]
author | jwe |
---|---|
date | Tue, 01 Feb 2000 10:07:26 +0000 |
parents | cd454a6fa1a4 |
children | 7da18459c08b |
line wrap: on
line diff
--- a/liboctave/file-stat.cc +++ b/liboctave/file-stat.cc @@ -119,9 +119,9 @@ #endif } -extern "C" void mode_string (); +extern "C" void mode_string (unsigned short, char *); -string +std::string file_stat::mode_as_string (void) const { char buf[11]; @@ -130,14 +130,14 @@ buf[10] = '\0'; - return string (buf); + return std::string (buf); } // Has FILE been modified since TIME? Returns 1 for yes, 0 for no, // and -1 for any error. int -file_stat::is_newer (const string& file, const octave_time& time) +file_stat::is_newer (const std::string& file, const octave_time& time) { file_stat fs (file); @@ -162,6 +162,8 @@ if (status < 0) { + using namespace std; + fail = true; errmsg = strerror (errno); }