Mercurial > hg > octave-nkf
diff src/variables.cc @ 1766:e8e76be43e79
[project @ 1996-01-23 03:33:34 by jwe]
author | jwe |
---|---|
date | Tue, 23 Jan 1996 03:34:14 +0000 |
parents | 3a9462b655f1 |
children | e6d79e281f7d |
line wrap: on
line diff
--- a/src/variables.cc +++ b/src/variables.cc @@ -49,6 +49,7 @@ #include "dirfns.h" #include "dynamic-ld.h" #include "error.h" +#include "file-ops.h" #include "help.h" #include "input.h" #include "lex.h" @@ -57,7 +58,6 @@ #include "toplev.h" #include "pager.h" #include "parse.h" -#include "statdefs.h" #include "symtab.h" #include "sysdep.h" #include "pt-const.h" @@ -283,8 +283,9 @@ } else { - struct stat buf; - if (stat (name.c_str (), &buf) == 0 && S_ISREG (buf.st_mode)) + file_stat fs (name); + + if (fs && fs.is_reg ()) retval = 2.0; } }