Mercurial > hg > octave-lojdl
changeset 1350:5f63d83dd694
[project @ 1995-09-05 07:37:59 by jwe]
author | jwe |
---|---|
date | Tue, 05 Sep 1995 07:47:12 +0000 |
parents | 33cf1f36aec6 |
children | 8256c4c57419 |
files | liboctave/tempname.c src/file-io.cc src/help.cc src/input.cc src/oct-hist.cc src/pt-exp-base.cc src/pt-misc.cc src/pt-plot.cc src/sighandlers.cc src/sysdep.cc src/utils.cc src/variables.cc |
diffstat | 12 files changed, 44 insertions(+), 35 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/tempname.c +++ b/liboctave/tempname.c @@ -22,14 +22,17 @@ #ifndef HAVE_TEMPNAM -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif #include <errno.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> + +#ifdef HAVE_UNISTD_H +#include <sys/types.h> +#include <unistd.h> +#endif + #include <fcntl.h> #include "statdefs.h"
--- a/src/file-io.cc +++ b/src/file-io.cc @@ -39,19 +39,20 @@ #include <cstdlib> #include <cctype> +#include <strstream.h> + +#ifdef HAVE_UNISTD_H #include <sys/types.h> -#ifdef HAVE_UNISTD_H #include <unistd.h> #endif -#include <sys/wait.h> + #include <fcntl.h> -#include <strstream.h> - #include <DLList.h> #include "dMatrix.h" +#include "syswait.h" #include "statdefs.h" #include "file-io.h" #include "input.h"
--- a/src/help.cc +++ b/src/help.cc @@ -29,14 +29,14 @@ #include <cstdlib> #include <cstring> +#include <iostream.h> +#include <strstream.h> + +#ifdef HAVE_UNISTD_H #include <sys/types.h> -#ifdef HAVE_UNISTD_H #include <unistd.h> #endif -#include <iostream.h> -#include <strstream.h> - #include "tree-expr.h" #include "tree-const.h" #include "sighandlers.h"
--- a/src/input.cc +++ b/src/input.cc @@ -47,12 +47,13 @@ #include <iostream.h> #include <strstream.h> +#ifdef HAVE_UNISTD_H #include <sys/types.h> -#ifdef HAVE_UNISTD_H #include <unistd.h> #endif // This must come before anything that includes iostream.h... +// (This is apparently no longer true...) extern "C" { #include "readline/readline.h" @@ -64,6 +65,7 @@ // Yes, this sucks, but it avoids a conflict with another readline // function declared in iostream.h. +// (Apparently, there isn't one there now...) #if 0 #define LINE_SIZE 8192
--- a/src/oct-hist.cc +++ b/src/oct-hist.cc @@ -36,15 +36,16 @@ #include <cstdlib> #include <cstring> +#include <fstream.h> +#include <strstream.h> + +#ifdef HAVE_UNISTD_H #include <sys/types.h> -#ifdef HAVE_UNISTD_H #include <unistd.h> #endif + #include <fcntl.h> -#include <fstream.h> -#include <strstream.h> - #include "statdefs.h" #include "utils.h" #include "error.h"
--- a/src/pt-exp-base.cc +++ b/src/pt-exp-base.cc @@ -34,14 +34,14 @@ #include <cstdio> #include <cstring> +#include <iostream.h> +#include <strstream.h> + +#ifdef HAVE_UNISTD_H #include <sys/types.h> -#ifdef HAVE_UNISTD_H #include <unistd.h> #endif -#include <iostream.h> -#include <strstream.h> - #include "variables.h" #include "user-prefs.h" #include "dynamic-ld.h"
--- a/src/pt-misc.cc +++ b/src/pt-misc.cc @@ -29,13 +29,13 @@ #include <config.h> #endif +#include <iostream.h> + +#ifdef HAVE_UNISTD_H #include <sys/types.h> -#ifdef HAVE_UNISTD_H #include <unistd.h> #endif -#include <iostream.h> - #include "error.h" #include "tree-base.h" #include "tree-expr.h"
--- a/src/pt-plot.cc +++ b/src/pt-plot.cc @@ -31,13 +31,14 @@ #include <cstring> +#include <fstream.h> +#include <iostream.h> +#include <strstream.h> + +#ifdef HAVE_UNISTD_H #include <sys/types.h> -#ifdef HAVE_UNISTD_H #include <unistd.h> #endif -#include <iostream.h> -#include <strstream.h> -#include <fstream.h> #include "SLStack.h" #include "procstream.h"
--- a/src/sighandlers.cc +++ b/src/sighandlers.cc @@ -28,14 +28,14 @@ #include <csignal> #include <new> +#include <iostream.h> + +#ifdef HAVE_UNISTD_H #include <sys/types.h> -#ifdef HAVE_UNISTD_H #include <unistd.h> #endif -#include <sys/wait.h> -#include <iostream.h> - +#include "syswait.h" #include "sighandlers.h" #include "octave.h" #include "error.h"
--- a/src/sysdep.cc +++ b/src/sysdep.cc @@ -40,8 +40,8 @@ #include <cstdlib> #include <cstring> +#ifdef HAVE_UNISTD_H #include <sys/types.h> -#ifdef HAVE_UNISTD_H #include <unistd.h> #endif