Mercurial > hg > octave-nkf
diff liboctave/file-stat.h @ 8689:ddbe87599331
base_file_stat::is_XXX: return false if object is not initialized
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 05 Feb 2009 17:38:24 -0500 |
parents | 424ba638d8f1 |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/liboctave/file-stat.h +++ b/liboctave/file-stat.h @@ -79,8 +79,10 @@ ~base_file_stat (void) { } - // File status and info. These should only be called for objects - // that are already properly initialized. + // File status and info. The is_XXX functions will return false for + // file_stat objects that are not properly initialized. The others + // should all return 0 (or the equivalent, for the given object) + // which is likely not meaningful. bool is_blk (void) const; bool is_chr (void) const;