Mercurial > hg > octave-nkf
diff liboctave/dir-ops.h @ 1929:908f5b6676d7
[project @ 1996-02-11 22:05:08 by jwe]
author | jwe |
---|---|
date | Sun, 11 Feb 1996 22:05:23 +0000 |
parents | 1b43d3c06c04 |
children | 1b57120c997b |
line wrap: on
line diff
--- a/liboctave/dir-ops.h +++ b/liboctave/dir-ops.h @@ -28,8 +28,6 @@ #include "str-vec.h" -struct DIR; - class dir_entry { @@ -45,7 +43,9 @@ dir_entry& operator = (const dir_entry& d) { - copy (d); + if (this != &d) + copy (d); + return *this; } @@ -68,8 +68,10 @@ // Name of the directory. string name; - // A pointer to the contents of the directory. - DIR *dir; + // A pointer to the contents of the directory. We use void here to + // avoid possible conflicts with the way some systems declare the + // type DIR. + void *dir; // TRUE means the open for this directory failed. bool fail;