Mercurial > hg > octave-terminal
changeset 8950:d865363208d6
include <iosfwd> instead of <iostream> in header files
line wrap: on
line diff
--- a/liboctave/Array.h +++ b/liboctave/Array.h @@ -29,8 +29,8 @@ #include <cassert> #include <cstddef> -#include <iostream> #include <algorithm> +#include <iosfwd> #include "dim-vector.h" #include "idx-vector.h"
--- a/liboctave/ArrayN.h +++ b/liboctave/ArrayN.h @@ -25,12 +25,12 @@ #if !defined (octave_ArrayN_h) #define octave_ArrayN_h 1 -#include <iostream> - #include <cassert> #include <climits> #include <cstdlib> +#include <iosfwd> + #include "Array.h" #include "Array2.h" #include "lo-error.h"
--- a/liboctave/Bounds.h +++ b/liboctave/Bounds.h @@ -24,7 +24,7 @@ #if !defined (octave_Bounds_h) #define octave_Bounds_h 1 -#include <iostream> +#include <iosfwd> #include "dColVector.h"
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,17 @@ +2009-03-10 John W. Eaton <jwe@octave.org> + + * Array.h, ArrayN.h, Bounds.h, CmplxAEPBAL.h, CmplxCHOL.h, + CmplxGEPBAL.h, CmplxHESS.h, CmplxQR.h, CmplxQRP.h, CmplxSCHUR.h, + CmplxSVD.h, CollocWt.h, EIG.h, FEGrid.h, LinConst.h, Range.h, + Sparse.h, SparseCmplxQR.h, SparseQR.h, dbleAEPBAL.h, dbleCHOL.h, + dbleGEPBAL.h, dbleHESS.h, dbleQR.h, dbleQRP.h, dbleSCHUR.h, + dbleSVD.h, dim-vector.h, fCmplxAEPBAL.h, fCmplxCHOL.h, + fCmplxGEPBAL.h, fCmplxHESS.h, fCmplxQR.h, fCmplxQRP.h, + fCmplxSCHUR.h, fCmplxSVD.h, fEIG.h, floatAEPBAL.h, floatCHOL.h, + floatGEPBAL.h, floatHESS.h, floatQR.h, floatQRP.h, floatSCHUR.h, + floatSVD.h, idx-vector.h, lo-utils.h, oct-inttypes.h, + oct-spparms.h, str-vec.h: Include <iosfwd> instead of <iosstream>. + 2009-03-10 Jaroslav Hajek <highegg@gmail.com> * mx-inlines.cc (OP_CUMMINMAX_FCN2): r -> r0 where appropriate.
--- a/liboctave/CmplxAEPBAL.h +++ b/liboctave/CmplxAEPBAL.h @@ -25,7 +25,7 @@ #if !defined (octave_ComplexAEPBALANCE_h) #define octave_ComplexAEPBALANCE_h 1 -#include <iostream> +#include <iosfwd> #include <string> #include "base-aepbal.h"
--- a/liboctave/CmplxCHOL.h +++ b/liboctave/CmplxCHOL.h @@ -25,7 +25,7 @@ #if !defined (octave_ComplexCHOL_h) #define octave_ComplexCHOL_h 1 -#include <iostream> +#include <iosfwd> #include "CMatrix.h" #include "CColVector.h"
--- a/liboctave/CmplxGEPBAL.h +++ b/liboctave/CmplxGEPBAL.h @@ -24,7 +24,7 @@ #if !defined (octave_ComplexGEPBALANCE_h) #define octave_ComplexGEPBALANCE_h 1 -#include <iostream> +#include <iosfwd> #include <string> #include "CMatrix.h"
--- a/liboctave/CmplxHESS.h +++ b/liboctave/CmplxHESS.h @@ -24,7 +24,7 @@ #if !defined (octave_ComplexHESS_h) #define octave_ComplexHESS_h 1 -#include <iostream> +#include <iosfwd> #include "CMatrix.h"
--- a/liboctave/CmplxQR.h +++ b/liboctave/CmplxQR.h @@ -25,7 +25,7 @@ #if !defined (octave_ComplexQR_h) #define octave_ComplexQR_h 1 -#include <iostream> +#include <iosfwd> #include "CMatrix.h" #include "CColVector.h"
--- a/liboctave/CmplxQRP.h +++ b/liboctave/CmplxQRP.h @@ -24,7 +24,7 @@ #if !defined (octave_ComplexQRP_h) #define octave_ComplexQRP_h 1 -#include <iostream> +#include <iosfwd> #include "CmplxQR.h" #include "PermMatrix.h"
--- a/liboctave/CmplxSCHUR.h +++ b/liboctave/CmplxSCHUR.h @@ -24,7 +24,7 @@ #if !defined (octave_ComplexSCHUR_h) #define octave_ComplexSCHUR_h 1 -#include <iostream> +#include <iosfwd> #include <string> #include "CMatrix.h"
--- a/liboctave/CmplxSVD.h +++ b/liboctave/CmplxSVD.h @@ -24,7 +24,7 @@ #if !defined (octave_ComplexSVD_h) #define octave_ComplexSVD_h 1 -#include <iostream> +#include <iosfwd> #include "dDiagMatrix.h" #include "CMatrix.h"
--- a/liboctave/CollocWt.h +++ b/liboctave/CollocWt.h @@ -24,7 +24,7 @@ #if !defined (octave_CollocWt_h) #define octave_CollocWt_h 1 -#include <iostream> +#include <iosfwd> #include "dMatrix.h" #include "dColVector.h"
--- a/liboctave/EIG.h +++ b/liboctave/EIG.h @@ -24,7 +24,7 @@ #if !defined (octave_EIG_h) #define octave_EIG_h 1 -#include <iostream> +#include <iosfwd> #include "dMatrix.h" #include "CMatrix.h"
--- a/liboctave/FEGrid.h +++ b/liboctave/FEGrid.h @@ -24,7 +24,7 @@ #if !defined (octave_FEGrid_h) #define octave_FEGrid_h 1 -#include <iostream> +#include <iosfwd> #include "dColVector.h"
--- a/liboctave/LinConst.h +++ b/liboctave/LinConst.h @@ -24,7 +24,7 @@ #if !defined (octave_LinConst_h) #define octave_LinConst_h 1 -#include <iostream> +#include <iosfwd> class ColumnVector;
--- a/liboctave/Range.h +++ b/liboctave/Range.h @@ -24,7 +24,7 @@ #if !defined (octave_Range_h) #define octave_Range_h 1 -#include <iostream> +#include <iosfwd> #include "dMatrix.h" #include "oct-sort.h"
--- a/liboctave/Sparse.h +++ b/liboctave/Sparse.h @@ -28,7 +28,7 @@ #include <cassert> #include <cstddef> -#include <iostream> +#include <iosfwd> #include "Array.h" #include "Array2.h"
--- a/liboctave/SparseCmplxQR.h +++ b/liboctave/SparseCmplxQR.h @@ -23,7 +23,7 @@ #if !defined (sparse_cmplx_QR_h) #define sparse_cmplx_QR_h 1 -#include <iostream> +#include <iosfwd> #include "dMatrix.h" #include "CMatrix.h"
--- a/liboctave/SparseQR.h +++ b/liboctave/SparseQR.h @@ -23,7 +23,7 @@ #if !defined (sparse_QR_h) #define sparse_QR_h 1 -#include <iostream> +#include <iosfwd> #include "dMatrix.h" #include "CMatrix.h"
--- a/liboctave/dbleAEPBAL.h +++ b/liboctave/dbleAEPBAL.h @@ -25,7 +25,7 @@ #if !defined (octave_AEPBALANCE_h) #define octave_AEPBALANCE_h 1 -#include <iostream> +#include <iosfwd> #include <string> #include "base-aepbal.h"
--- a/liboctave/dbleCHOL.h +++ b/liboctave/dbleCHOL.h @@ -25,7 +25,7 @@ #if !defined (octave_CHOL_h) #define octave_CHOL_h 1 -#include <iostream> +#include <iosfwd> #include "dMatrix.h" #include "dColVector.h"
--- a/liboctave/dbleGEPBAL.h +++ b/liboctave/dbleGEPBAL.h @@ -24,7 +24,7 @@ #if !defined (octave_GEPBALANCE_h) #define octave_GEPBALANCE_h 1 -#include <iostream> +#include <iosfwd> #include <string> #include "dMatrix.h"
--- a/liboctave/dbleHESS.h +++ b/liboctave/dbleHESS.h @@ -24,7 +24,7 @@ #if !defined (octave_HESS_h) #define octave_HESS_h 1 -#include <iostream> +#include <iosfwd> #include "dMatrix.h"
--- a/liboctave/dbleQR.h +++ b/liboctave/dbleQR.h @@ -25,7 +25,7 @@ #if !defined (octave_QR_h) #define octave_QR_h 1 -#include <iostream> +#include <iosfwd> #include "dMatrix.h" #include "dColVector.h"
--- a/liboctave/dbleQRP.h +++ b/liboctave/dbleQRP.h @@ -24,7 +24,7 @@ #if !defined (octave_QRP_h) #define octave_QRP_h 1 -#include <iostream> +#include <iosfwd> #include "dbleQR.h" #include "PermMatrix.h"
--- a/liboctave/dbleSCHUR.h +++ b/liboctave/dbleSCHUR.h @@ -24,7 +24,7 @@ #if !defined (octave_SCHUR_h) #define octave_SCHUR_h 1 -#include <iostream> +#include <iosfwd> #include <string> #include "dMatrix.h"
--- a/liboctave/dbleSVD.h +++ b/liboctave/dbleSVD.h @@ -24,7 +24,7 @@ #if !defined (octave_SVD_h) #define octave_SVD_h 1 -#include <iostream> +#include <iosfwd> #include "dDiagMatrix.h" #include "dMatrix.h"
--- a/liboctave/dim-vector.h +++ b/liboctave/dim-vector.h @@ -24,6 +24,7 @@ #define octave_dim_vector_h 1 #include <cassert> + #include <sstream> #include <string>
--- a/liboctave/fCmplxAEPBAL.h +++ b/liboctave/fCmplxAEPBAL.h @@ -25,7 +25,7 @@ #if !defined (octave_FloatComplexAEPBALANCE_h) #define octave_FloatComplexAEPBALANCE_h 1 -#include <iostream> +#include <iosfwd> #include <string> #include "base-aepbal.h"
--- a/liboctave/fCmplxCHOL.h +++ b/liboctave/fCmplxCHOL.h @@ -25,7 +25,7 @@ #if !defined (octave_FloatComplexCHOL_h) #define octave_FloatComplexCHOL_h 1 -#include <iostream> +#include <iosfwd> #include "fCMatrix.h" #include "fCColVector.h"
--- a/liboctave/fCmplxGEPBAL.h +++ b/liboctave/fCmplxGEPBAL.h @@ -24,7 +24,7 @@ #if !defined (octave_FloatComplexGEPBALANCE_h) #define octave_FloatComplexGEPBALANCE_h 1 -#include <iostream> +#include <iosfwd> #include <string> #include "fMatrix.h"
--- a/liboctave/fCmplxHESS.h +++ b/liboctave/fCmplxHESS.h @@ -24,7 +24,7 @@ #if !defined (octave_FloatComplexHESS_h) #define octave_FloatComplexHESS_h 1 -#include <iostream> +#include <iosfwd> #include "fCMatrix.h"
--- a/liboctave/fCmplxQR.h +++ b/liboctave/fCmplxQR.h @@ -27,7 +27,7 @@ #if !defined (octave_FloatComplexQR_h) #define octave_FloatComplexQR_h 1 -#include <iostream> +#include <iosfwd> #include "fCMatrix.h" #include "fCColVector.h"
--- a/liboctave/fCmplxQRP.h +++ b/liboctave/fCmplxQRP.h @@ -24,7 +24,7 @@ #if !defined (octave_FloatComplexQRP_h) #define octave_FloatComplexQRP_h 1 -#include <iostream> +#include <iosfwd> #include "fCmplxQR.h" #include "PermMatrix.h"
--- a/liboctave/fCmplxSCHUR.h +++ b/liboctave/fCmplxSCHUR.h @@ -24,7 +24,7 @@ #if !defined (octave_FloatComplexSCHUR_h) #define octave_FloatComplexSCHUR_h 1 -#include <iostream> +#include <iosfwd> #include <string> #include "fCMatrix.h"
--- a/liboctave/fCmplxSVD.h +++ b/liboctave/fCmplxSVD.h @@ -24,7 +24,7 @@ #if !defined (octave_FloatComplexSVD_h) #define octave_FloatComplexSVD_h 1 -#include <iostream> +#include <iosfwd> #include "fDiagMatrix.h" #include "fCMatrix.h"
--- a/liboctave/fEIG.h +++ b/liboctave/fEIG.h @@ -24,7 +24,7 @@ #if !defined (octave_float_EIG_h) #define octave_float_EIG_h 1 -#include <iostream> +#include <iosfwd> #include "fMatrix.h" #include "fCMatrix.h"
--- a/liboctave/floatAEPBAL.h +++ b/liboctave/floatAEPBAL.h @@ -25,7 +25,7 @@ #if !defined (octave_FloatAEPBALANCE_h) #define octave_FloatAEPBALANCE_h 1 -#include <iostream> +#include <iosfwd> #include <string> #include "base-aepbal.h"
--- a/liboctave/floatCHOL.h +++ b/liboctave/floatCHOL.h @@ -25,7 +25,7 @@ #if !defined (octave_FloatCHOL_h) #define octave_FloatCHOL_h 1 -#include <iostream> +#include <iosfwd> #include "fMatrix.h" #include "fColVector.h"
--- a/liboctave/floatGEPBAL.h +++ b/liboctave/floatGEPBAL.h @@ -24,7 +24,7 @@ #if !defined (octave_FloatGEPBALANCE_h) #define octave_FloatGEPBALANCE_h 1 -#include <iostream> +#include <iosfwd> #include <string> #include "fMatrix.h"
--- a/liboctave/floatHESS.h +++ b/liboctave/floatHESS.h @@ -24,7 +24,7 @@ #if !defined (octave_FloatHESS_h) #define octave_FloatHESS_h 1 -#include <iostream> +#include <iosfwd> #include "fMatrix.h"
--- a/liboctave/floatQR.h +++ b/liboctave/floatQR.h @@ -25,7 +25,7 @@ #if !defined (octave_FloatQR_h) #define octave_FloatQR_h 1 -#include <iostream> +#include <iosfwd> #include "fMatrix.h" #include "fColVector.h"
--- a/liboctave/floatQRP.h +++ b/liboctave/floatQRP.h @@ -24,7 +24,7 @@ #if !defined (octave_FloatQRP_h) #define octave_FloatQRP_h 1 -#include <iostream> +#include <iosfwd> #include "floatQR.h" #include "PermMatrix.h"
--- a/liboctave/floatSCHUR.h +++ b/liboctave/floatSCHUR.h @@ -24,7 +24,7 @@ #if !defined (octave_FloatSCHUR_h) #define octave_FloatSCHUR_h 1 -#include <iostream> +#include <iosfwd> #include <string> #include "fMatrix.h"
--- a/liboctave/floatSVD.h +++ b/liboctave/floatSVD.h @@ -24,7 +24,7 @@ #if !defined (octave_FloatSVD_h) #define octave_FloatSVD_h 1 -#include <iostream> +#include <iosfwd> #include "fDiagMatrix.h" #include "fMatrix.h"
--- a/liboctave/idx-vector.h +++ b/liboctave/idx-vector.h @@ -25,9 +25,10 @@ #if !defined (octave_idx_vector_h) #define octave_idx_vector_h 1 -#include <iostream> +#include <cassert> + #include <algorithm> -#include <cassert> +#include <iosfwd> #include "dim-vector.h" #include "oct-inttypes.h"
--- a/liboctave/lo-utils.h +++ b/liboctave/lo-utils.h @@ -26,7 +26,7 @@ #include <cstdio> -#include <iostream> +#include <iosfwd> #include <string> #include "oct-cmplx.h"
--- a/liboctave/oct-inttypes.h +++ b/liboctave/oct-inttypes.h @@ -28,7 +28,7 @@ #include <cstdlib> #include <limits> -#include <iostream> +#include <iosfwd> #include "lo-traits.h" #include "lo-math.h"
--- a/liboctave/oct-spparms.h +++ b/liboctave/oct-spparms.h @@ -27,7 +27,7 @@ #include <cassert> #include <cstddef> -#include <iostream> +#include <iosfwd> #include "str-vec.h" #include "dColVector.h"
--- a/liboctave/str-vec.h +++ b/liboctave/str-vec.h @@ -24,7 +24,7 @@ #if !defined (octave_str_vec_h) #define octave_str_vec_h 1 -#include <iostream> +#include <iosfwd> #include <list> #include <string>
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,21 @@ +2009-03-10 John W. Eaton <jwe@octave.org> + + * c-file-ptr-stream.cc, dynamic-ld.cc, error.cc, lex.l, pager.cc, + zfstream.cc: Include <iostream>. + * zfstream.h: Include <iosfwd> instead of <istream> and <ostream>. + * c-file-ptr-stream.h, help.h, load-path.h, load-save.h, + ls-ascii-helper.h, oct-iostrm.h, oct-stream.h, ov-base-diag.h, + ov-base-int.h, ov-base-mat.h, ov-base-scalar.h, ov-base-sparse.h, + ov-base.h, ov-bool-mat.h, ov-bool-sparse.h, ov-bool.h, ov-cell.h, + ov-ch-mat.h, ov-class.h, ov-colon.h, ov-complex.h, ov-cs-list.h, + ov-cx-mat.h, ov-cx-sparse.h, ov-fcn-handle.h, ov-fcn-inline.h, + ov-float.h, ov-flt-complex.h, ov-flt-cx-mat.h, ov-flt-re-mat.h, + ov-intx.h, ov-list.h, ov-range.h, ov-re-mat.h, ov-re-sparse.h, + ov-scalar.h, ov-str-mat.h, ov-struct.h, ov.h, pager.h, + pr-output.h, procstream.h, pt-assign.h, pt-cell.h, pt-const.h, + pt-fcn-handle.h, pt-id.h, pt-mat.h, pt.h, utils.h: + Include <iosfwd> instead of <iosstream>. + 2009-03-10 Jaroslav Hajek <highegg@gmail.com> * data.cc (Fsize_equal): Allow single argument call.
--- a/src/c-file-ptr-stream.cc +++ b/src/c-file-ptr-stream.cc @@ -25,6 +25,8 @@ #include <config.h> #endif +#include <iostream> + #include "c-file-ptr-stream.h" #ifndef SEEK_SET
--- a/src/c-file-ptr-stream.h +++ b/src/c-file-ptr-stream.h @@ -24,9 +24,10 @@ #if !defined (octave_c_file_ptr_stream_h) #define octave_c_file_ptr_stream_h 1 -#include <iostream> #include <cstdio> +#include <iosfwd> + class c_file_ptr_buf : public std::streambuf {
--- a/src/dynamic-ld.cc +++ b/src/dynamic-ld.cc @@ -25,6 +25,7 @@ #include <config.h> #endif +#include <iostream> #include <list> #include "oct-env.h"
--- a/src/error.cc +++ b/src/error.cc @@ -28,6 +28,7 @@ #include <cstdarg> #include <cstring> +#include <iostream> #include <sstream> #include <string>
--- a/src/help.h +++ b/src/help.h @@ -24,7 +24,7 @@ #if !defined (octave_help_h) #define octave_help_h 1 -#include <iostream> +#include <iosfwd> #include <string> class string_vector;
--- a/src/lex.l +++ b/src/lex.l @@ -40,6 +40,7 @@ #include <cctype> #include <cstring> +#include <iostream> #include <set> #include <sstream> #include <string>
--- a/src/load-path.h +++ b/src/load-path.h @@ -23,7 +23,7 @@ #if !defined (octave_load_path_h) #define octave_load_path_h 1 -#include <iostream> +#include <iosfwd> #include <list> #include <map> #include <string>
--- a/src/load-save.h +++ b/src/load-save.h @@ -24,8 +24,7 @@ #if !defined (octave_load_save_h) #define octave_load_save_h 1 -#include <iostream> - +#include <iosfwd> #include <string> class octave_value;
--- a/src/ls-ascii-helper.h +++ b/src/ls-ascii-helper.h @@ -23,7 +23,7 @@ #if !defined (octave_ls_ascii_helper_h) #define octave_ls_ascii_helper_h 1 -#include <iostream> +#include <iosfwd> #include <string> extern OCTINTERP_API void
--- a/src/oct-iostrm.h +++ b/src/oct-iostrm.h @@ -24,7 +24,7 @@ #if !defined (octave_octave_iostream_h) #define octave_octave_iostream_h 1 -#include <iostream> +#include <iosfwd> #include "oct-stream.h"
--- a/src/oct-stream.h +++ b/src/oct-stream.h @@ -29,7 +29,7 @@ class octave_value; class octave_value_list; -#include <iostream> +#include <iosfwd> #include <sstream> #include <string> #include <map>
--- a/src/ov-base-diag.h +++ b/src/ov-base-diag.h @@ -25,7 +25,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-base-int.h +++ b/src/ov-base-int.h @@ -25,7 +25,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-base-mat.h +++ b/src/ov-base-mat.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-base-scalar.h +++ b/src/ov-base-scalar.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "lo-mappers.h"
--- a/src/ov-base-sparse.h +++ b/src/ov-base-sparse.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "str-vec.h"
--- a/src/ov-base.h +++ b/src/ov-base.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <list> #include <string>
--- a/src/ov-bool-mat.h +++ b/src/ov-bool-mat.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-bool-sparse.h +++ b/src/ov-bool-sparse.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-bool.h +++ b/src/ov-bool.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "lo-utils.h"
--- a/src/ov-cell.h +++ b/src/ov-cell.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-ch-mat.h +++ b/src/ov-ch-mat.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-class.h +++ b/src/ov-class.h @@ -25,7 +25,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-colon.h +++ b/src/ov-colon.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-complex.h +++ b/src/ov-complex.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "lo-ieee.h"
--- a/src/ov-cs-list.h +++ b/src/ov-cs-list.h @@ -25,7 +25,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-cx-mat.h +++ b/src/ov-cx-mat.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-cx-sparse.h +++ b/src/ov-cx-sparse.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-fcn-handle.h +++ b/src/ov-fcn-handle.h @@ -23,7 +23,7 @@ #if !defined (octave_fcn_handle_h) #define octave_fcn_handle_h 1 -#include <iostream> +#include <iosfwd> #include <string> #include "oct-alloc.h"
--- a/src/ov-fcn-inline.h +++ b/src/ov-fcn-inline.h @@ -23,7 +23,7 @@ #if !defined (octave_fcn_inline_h) #define octave_fcn_inline_h 1 -#include <iostream> +#include <iosfwd> #include <string> #include "oct-alloc.h"
--- a/src/ov-float.h +++ b/src/ov-float.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "lo-ieee.h"
--- a/src/ov-flt-complex.h +++ b/src/ov-flt-complex.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "lo-ieee.h"
--- a/src/ov-flt-cx-mat.h +++ b/src/ov-flt-cx-mat.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-flt-re-mat.h +++ b/src/ov-flt-re-mat.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-intx.h +++ b/src/ov-intx.h @@ -22,7 +22,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-list.h +++ b/src/ov-list.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-range.h +++ b/src/ov-range.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "Range.h"
--- a/src/ov-re-mat.h +++ b/src/ov-re-mat.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-re-sparse.h +++ b/src/ov-re-sparse.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-scalar.h +++ b/src/ov-scalar.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "lo-ieee.h"
--- a/src/ov-str-mat.h +++ b/src/ov-str-mat.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov-struct.h +++ b/src/ov-struct.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include "mx-base.h"
--- a/src/ov.h +++ b/src/ov.h @@ -26,7 +26,7 @@ #include <cstdlib> -#include <iostream> +#include <iosfwd> #include <string> #include <list>
--- a/src/pager.cc +++ b/src/pager.cc @@ -26,6 +26,7 @@ #endif #include <fstream> +#include <iostream> #include <string> #include "cmd-edit.h"
--- a/src/pager.h +++ b/src/pager.h @@ -24,7 +24,7 @@ #if !defined (octave_pager_h) #define octave_pager_h 1 -#include <iostream> +#include <iosfwd> #include <sstream> #include <string>
--- a/src/parse.y +++ b/src/parse.y @@ -39,6 +39,7 @@ #include <cstdlib> #endif +#include <iostream> #include <map> #include <sstream>
--- a/src/pr-output.h +++ b/src/pr-output.h @@ -24,7 +24,7 @@ #if !defined (octave_pr_output_h) #define octave_pr_output_h 1 -#include <iostream> +#include <iosfwd> #include "oct-cmplx.h"
--- a/src/procstream.cc +++ b/src/procstream.cc @@ -25,6 +25,8 @@ #include <config.h> #endif +#include <iostream> + #include "procstream.h" procstreambase::procstreambase (const std::string& command, int mode)
--- a/src/procstream.h +++ b/src/procstream.h @@ -24,7 +24,7 @@ #if !defined (octave_procstream_h) #define octave_procstream_h 1 -#include <iostream> +#include <iosfwd> #include <string> #ifdef HAVE_SYS_TYPES_H
--- a/src/pt-assign.h +++ b/src/pt-assign.h @@ -24,7 +24,7 @@ #if !defined (octave_tree_assign_h) #define octave_tree_assign_h 1 -#include <iostream> +#include <iosfwd> #include <string> class tree_argument_list;
--- a/src/pt-cell.h +++ b/src/pt-cell.h @@ -24,7 +24,7 @@ #if !defined (octave_tree_cell_h) #define octave_tree_cell_h 1 -#include <iostream> +#include <iosfwd> class octave_value; class octave_value_list;
--- a/src/pt-const.h +++ b/src/pt-const.h @@ -24,7 +24,7 @@ #if !defined (octave_tree_const_h) #define octave_tree_const_h 1 -#include <iostream> +#include <iosfwd> #include <string> #include "oct-alloc.h"
--- a/src/pt-fcn-handle.h +++ b/src/pt-fcn-handle.h @@ -23,7 +23,7 @@ #if !defined (octave_tree_fcn_handle_h) #define octave_fcn_handle_h 1 -#include <iostream> +#include <iosfwd> #include <string> #include "pt-bp.h"
--- a/src/pt-id.h +++ b/src/pt-id.h @@ -24,7 +24,7 @@ #if !defined (octave_tree_identifier_h) #define octave_tree_identifier_h 1 -#include <iostream> +#include <iosfwd> #include <string> class octave_value;
--- a/src/pt-mat.h +++ b/src/pt-mat.h @@ -24,7 +24,7 @@ #if !defined (octave_tree_mat_h) #define octave_tree_mat_h 1 -#include <iostream> +#include <iosfwd> class octave_value; class octave_value_list;
--- a/src/pt.h +++ b/src/pt.h @@ -26,7 +26,7 @@ #include <string> -#include <iostream> +#include <iosfwd> class octave_function; class tree_walker;
--- a/src/utils.h +++ b/src/utils.h @@ -26,7 +26,7 @@ #include <cstdarg> -#include <iostream> +#include <iosfwd> #include <string> #include "dMatrix.h"