# HG changeset patch # User jwe # Date 763247283 0 # Node ID e02d6b6643947fefe4d4326f92754a690739f031 # Parent 3dc943e34d9ace12da583f730a911fac8a72e3ce [project @ 1994-03-09 21:08:03 by jwe] diff -r 3dc943e34d9a -r e02d6b664394 liboctave/Array.h --- a/liboctave/Array.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/Array.h Wed Mar 09 21:08:03 1994 +0000 @@ -21,8 +21,10 @@ */ -#if !defined (_Array_h) -#define _Array_h 1 +#if !defined (octave_Array_h) +#define octave_Array_h 1 + +extern "C++" { #include "lo-error.h" @@ -358,6 +360,8 @@ #include "Array.cc" #endif +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/Bounds.h --- a/liboctave/Bounds.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/Bounds.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // Bounds.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_Bounds_h) -#define _Bounds_h 1 +#if !defined (octave_Bounds_h) +#define octave_Bounds_h 1 + +extern "C++" { class ostream; @@ -82,6 +84,8 @@ }; +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/CollocWt.h --- a/liboctave/CollocWt.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/CollocWt.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // CollocWt.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_CollocWt_h) -#define _CollocWt_h 1 +#if !defined (octave_CollocWt_h) +#define octave_CollocWt_h 1 + +extern "C++" { class ostream; @@ -138,6 +140,8 @@ inline Matrix CollocWt::second (void) { if (!initialized) init (); return B; } +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/DAE.h --- a/liboctave/DAE.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/DAE.h Wed Mar 09 21:08:03 1994 +0000 @@ -21,8 +21,10 @@ */ -#if !defined (_DAE_h) -#define _DAE_h 1 +#if !defined (octave_DAE_h) +#define octave_DAE_h 1 + +extern "C++" { #include "ODE.h" #include "DAEFunc.h" @@ -85,4 +87,13 @@ }; +} // extern "C++" + #endif + +/* +;;; Local Variables: *** +;;; mode: C++ *** +;;; page-delimiter: "^/\\*" *** +;;; End: *** +*/ diff -r 3dc943e34d9a -r e02d6b664394 liboctave/DAEFunc.h --- a/liboctave/DAEFunc.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/DAEFunc.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // DAEFunc.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_DAEFunc_h) -#define _DAEFunc_h 1 +#if !defined (octave_DAEFunc_h) +#define octave_DAEFunc_h 1 + +extern "C++" { #include "Matrix.h" @@ -71,4 +73,13 @@ DAEJacFunc jac; }; +} // extern "C++" + #endif + +/* +;;; Local Variables: *** +;;; mode: C++ *** +;;; page-delimiter: "^/\\*" *** +;;; End: *** +*/ diff -r 3dc943e34d9a -r e02d6b664394 liboctave/FEGrid.h --- a/liboctave/FEGrid.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/FEGrid.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // FEGrid.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_FEGrid_h) -#define _FEGrid_h 1 +#if !defined (octave_FEGrid_h) +#define octave_FEGrid_h 1 + +extern "C++" { class ostream; @@ -81,6 +83,8 @@ inline Vector FEGrid::element_boundaries (void) const { return elem; } +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/FSQP.h --- a/liboctave/FSQP.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/FSQP.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // FSQP.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_FSQP_h) -#define _FSQP_h 1 +#if !defined (octave_FSQP_h) +#define octave_FSQP_h 1 + +extern "C++" { #ifndef FSQP_MISSING @@ -41,6 +43,8 @@ #endif /* FSQP_MISSING */ +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/LP.h --- a/liboctave/LP.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/LP.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // LP.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_LP_h) -#define _LP_h 1 +#if !defined (octave_LP_h) +#define octave_LP_h 1 + +extern "C++" { #include "Matrix.h" #include "Bounds.h" @@ -54,6 +56,8 @@ LinConst lc; }; +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/LPsolve.h --- a/liboctave/LPsolve.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/LPsolve.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // LPsolve.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_LPsolve_h) -#define _LPsolve_h 1 +#if !defined (octave_LPsolve_h) +#define octave_LPsolve_h 1 + +extern "C++" { #include "Matrix.h" #include "LP.h" @@ -57,6 +59,8 @@ void set_default_options (void); }; +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/LinConst.h --- a/liboctave/LinConst.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/LinConst.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // LinConst.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_LinConst_h) -#define _LinConst_h 1 +#if !defined (octave_LinConst_h) +#define octave_LinConst_h 1 + +extern "C++" { #include @@ -123,6 +125,8 @@ return *this; } +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/MArray.h --- a/liboctave/MArray.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/MArray.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // Template array classes with like-type math ops -*- C++ -*- /* -Copyright (C) 1993 John W. Eaton +Copyright (C) 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_MArray_h) -#define _MArray_h 1 +#if !defined (octave_MArray_h) +#define octave_MArray_h 1 + +extern "C++" { #include "Array.h" @@ -203,6 +205,8 @@ #include "MArray.cc" #endif +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/Matrix.h --- a/liboctave/Matrix.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/Matrix.h Wed Mar 09 21:08:03 1994 +0000 @@ -28,8 +28,10 @@ */ -#if !defined (_Matrix_h) -#define _Matrix_h 1 +#if !defined (octave_Matrix_h) +#define octave_Matrix_h 1 + +extern "C++" { #include #include @@ -2449,6 +2451,8 @@ return r; } +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/NLConst.h --- a/liboctave/NLConst.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/NLConst.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // NLConst.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_NLConst_h) -#define _NLConst_h 1 +#if !defined (octave_NLConst_h) +#define octave_NLConst_h 1 + +extern "C++" { #include "Matrix.h" #include "Bounds.h" @@ -49,6 +51,8 @@ }; +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/NLEqn.h --- a/liboctave/NLEqn.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/NLEqn.h Wed Mar 09 21:08:03 1994 +0000 @@ -21,8 +21,10 @@ */ -#if !defined (_NLEqn_h) -#define _NLEqn_h 1 +#if !defined (octave_NLEqn_h) +#define octave_NLEqn_h 1 + +extern "C++" { #include "Matrix.h" #include "NLFunc.h" @@ -89,6 +91,8 @@ void error (const char* msg); }; +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/NLFunc.h --- a/liboctave/NLFunc.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/NLFunc.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // NLFunc.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_NLFunc_h) -#define _NLFunc_h 1 +#if !defined (octave_NLFunc_h) +#define octave_NLFunc_h 1 + +extern "C++" { #include "Matrix.h" @@ -59,6 +61,8 @@ jacobian_fcn jac; }; +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/NLP.h --- a/liboctave/NLP.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/NLP.h Wed Mar 09 21:08:03 1994 +0000 @@ -21,8 +21,10 @@ */ -#if !defined (_NLP_h) -#define _NLP_h 1 +#if !defined (octave_NLP_h) +#define octave_NLP_h 1 + +extern "C++" { #include "Matrix.h" #include "Objective.h" @@ -128,6 +130,8 @@ return x.capacity (); } +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/NPSOL.h --- a/liboctave/NPSOL.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/NPSOL.h Wed Mar 09 21:08:03 1994 +0000 @@ -21,8 +21,10 @@ */ -#if !defined (_NPSOL_h) -#define _NPSOL_h 1 +#if !defined (octave_NPSOL_h) +#define octave_NPSOL_h 1 + +extern "C++" { #ifndef NPSOL_MISSING @@ -188,6 +190,8 @@ #endif /* NPSOL_MISSING */ +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/ODE.h --- a/liboctave/ODE.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/ODE.h Wed Mar 09 21:08:03 1994 +0000 @@ -21,8 +21,10 @@ */ -#if !defined (_ODE_h) -#define _ODE_h 1 +#if !defined (octave_ODE_h) +#define octave_ODE_h 1 + +extern "C++" { class ostream; @@ -129,6 +131,8 @@ }; +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/ODEFunc.h --- a/liboctave/ODEFunc.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/ODEFunc.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // ODEFunc.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_ODEFunc_h) -#define _ODEFunc_h 1 +#if !defined (octave_ODEFunc_h) +#define octave_ODEFunc_h 1 + +extern "C++" { #include "Matrix.h" @@ -63,9 +65,9 @@ ODERHSFunc fun; ODEJacFunc jac; +}; -private: -}; +} // extern "C++" #endif diff -r 3dc943e34d9a -r e02d6b664394 liboctave/Objective.h --- a/liboctave/Objective.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/Objective.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // Objective.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_Objective_h) -#define _Objective_h 1 +#if !defined (octave_Objective_h) +#define octave_Objective_h 1 + +extern "C++" { #include "Matrix.h" @@ -60,6 +62,8 @@ }; +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/QLD.h --- a/liboctave/QLD.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/QLD.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // QLD.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_QLD_h) -#define _QLD_h 1 +#if !defined (octave_QLD_h) +#define octave_QLD_h 1 + +extern "C++" { #include "Matrix.h" #include "QP.h" @@ -89,6 +91,8 @@ return *this; } +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/QP.h --- a/liboctave/QP.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/QP.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // QP.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_QP_h) -#define _QP_h 1 +#if !defined (octave_QP_h) +#define octave_QP_h 1 + +extern "C++" { #include "Matrix.h" #include "Bounds.h" @@ -71,6 +73,8 @@ Matrix make_h_symmetric (void); }; +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/QPSOL.h --- a/liboctave/QPSOL.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/QPSOL.h Wed Mar 09 21:08:03 1994 +0000 @@ -21,8 +21,10 @@ */ -#if !defined (_QPSOL_h) -#define _QPSOL_h 1 +#if !defined (octave_QPSOL_h) +#define octave_QPSOL_h 1 + +extern "C++" { #ifndef QPSOL_MISSING @@ -122,6 +124,8 @@ #endif /* QPSOL_MISSING */ +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/Quad.h --- a/liboctave/Quad.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/Quad.h Wed Mar 09 21:08:03 1994 +0000 @@ -21,8 +21,10 @@ */ -#if !defined (_Quad_h) -#define _Quad_h 1 +#if !defined (octave_Quad_h) +#define octave_Quad_h 1 + +extern "C++" { #include "Matrix.h" @@ -132,6 +134,8 @@ IntegralType type; }; +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/Range.h --- a/liboctave/Range.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/Range.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // Range.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_Range_h) -#define _Range_h 1 +#if !defined (octave_Range_h) +#define octave_Range_h 1 + +extern "C++" { class istream; class ostream; @@ -108,6 +110,8 @@ inline void Range::set_limit (double l) { rng_limit = l; } inline void Range::set_inc (double i) { rng_inc = i; } +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/f77-fcn.h --- a/liboctave/f77-fcn.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/f77-fcn.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // f77-uscore.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,8 @@ */ -#if !defined (_f77_uscore_h) -#define _f77_uscore_h 1 +#if !defined (octave_f77_uscore_h) +#define octave_f77_uscore_h 1 #if defined (F77_APPEND_UNDERSCORE) #define F77_FCN(f) f##_ diff -r 3dc943e34d9a -r e02d6b664394 liboctave/lo-error.h --- a/liboctave/lo-error.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/lo-error.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // error.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_liboctave_error_h) -#define _liboctave_error_h 1 +#if !defined (octave_liboctave_error_h) +#define octave_liboctave_error_h 1 + +extern "C++" { // Tell g++ that fatal doesn't return; @@ -41,6 +43,8 @@ extern void set_liboctave_error_handler (liboctave_error_handler f); +} // extern "C++" + #endif /* diff -r 3dc943e34d9a -r e02d6b664394 liboctave/mx-kludge.h --- a/liboctave/mx-kludge.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/mx-kludge.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // kludge.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -30,6 +30,8 @@ // When templates work more reliably in g++, this will be replaced by // the MArray class. +extern "C++" { + #ifdef KLUDGE_VECTORS /* @@ -131,6 +133,8 @@ #undef DO_VV_OP #undef NEG_V +} // extern "C++" + /* ;;; Local Variables: *** ;;; mode: C++ *** diff -r 3dc943e34d9a -r e02d6b664394 liboctave/sun-utils.h --- a/liboctave/sun-utils.h Wed Mar 09 00:33:24 1994 +0000 +++ b/liboctave/sun-utils.h Wed Mar 09 21:08:03 1994 +0000 @@ -1,7 +1,7 @@ // sun-utils.h -*- C++ -*- /* -Copyright (C) 1992, 1993 John W. Eaton +Copyright (C) 1992, 1993, 1994 John W. Eaton This file is part of Octave. @@ -21,8 +21,10 @@ */ -#if !defined (_sun_utils_h) -#define _sun_utils_h 1 +#if !defined (octave_sun_utils_h) +#define octave_sun_utils_h 1 + +extern "C++" { #ifdef sun @@ -77,6 +79,8 @@ #endif +} // extern "C++" + /* ;;; Local Variables: *** ;;; mode: C++ ***