Mercurial > hg > octave-nkf
changeset 8690:6e9887f9cf9f
file-stat.cc: use EXISTS instead of OK in previuos change
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 05 Feb 2009 19:39:38 -0500 |
parents | ddbe87599331 |
children | 7838271ee25c |
files | liboctave/ChangeLog liboctave/file-stat.cc |
diffstat | 2 files changed, 10 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,5 +1,8 @@ 2009-02-05 John W. Eaton <jwe@octave.org> + * file-stat.cc (base_file_stat::is_sock): + Use EXISTS instead of OK in previous change. + * file-stat.cc (base_file_stat::is_blk, base_file_stat::is_chr, base_file_stat::is_dir, base_file_stat::is_fifo, base_file_stat::is_lnk, base_file_stat::is_reg,
--- a/liboctave/file-stat.cc +++ b/liboctave/file-stat.cc @@ -54,43 +54,43 @@ bool base_file_stat::is_blk (void) const { - return ok () && is_blk (fs_mode); + return exists () && is_blk (fs_mode); } bool base_file_stat::is_chr (void) const { - return ok () && is_chr (fs_mode); + return exists () && is_chr (fs_mode); } bool base_file_stat::is_dir (void) const { - return ok () && is_dir (fs_mode); + return exists () && is_dir (fs_mode); } bool base_file_stat::is_fifo (void) const { - return ok () && is_fifo (fs_mode); + return exists () && is_fifo (fs_mode); } bool base_file_stat::is_lnk (void) const { - return ok () && is_lnk (fs_mode); + return exists () && is_lnk (fs_mode); } bool base_file_stat::is_reg (void) const { - return ok () && is_reg (fs_mode); + return exists () && is_reg (fs_mode); } bool base_file_stat::is_sock (void) const { - return ok () && is_sock (fs_mode); + return exists () && is_sock (fs_mode); } bool