Mercurial > octave
diff liboctave/system/dir-ops.h @ 21926:24215a16f3b2
hide dirent.h header
* liboctave/wrappers/dirent-wrappers.c,
liboctave/wrappers/dirent-wrappers.h: New files.
* liboctave/wrappers/module.mk: Update.
* dir-ops.cc, dir-ops.h: Use new wrapper functions.
(dir_entry::close): Return status.
(dir_entry::max_name_length): New function.
* kpse.cc: Use octave::sys::dir_entry::max_name_length function
instead of NAME_MAX macro.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 16 Jun 2016 10:02:49 -0400 |
parents | 949cb46e6bdb |
children | bac0d6f07a3e |
line wrap: on
line diff
--- a/liboctave/system/dir-ops.h Thu Jun 16 08:42:29 2016 -0700 +++ b/liboctave/system/dir-ops.h Thu Jun 16 10:02:49 2016 -0400 @@ -68,7 +68,7 @@ string_vector read (void); - void close (void); + bool close (void); bool ok (void) const { return dir && ! fail; } @@ -76,6 +76,8 @@ std::string error (void) const { return ok () ? "" : errmsg; } + static unsigned int max_name_length (void); + private: // Name of the directory.