Mercurial > hg > octave-avbm
changeset 355:1752b1ef8bac
[project @ 1994-02-11 01:08:48 by jwe]
author | jwe |
---|---|
date | Fri, 11 Feb 1994 01:13:22 +0000 |
parents | 1a75146ef3bb |
children | 6675e5cc11d8 |
files | liboctave/Array.cc liboctave/Array.h src/SLStack.cc src/SLStack.h src/Stack.h |
diffstat | 5 files changed, 10 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/Array.cc +++ b/liboctave/Array.cc @@ -28,7 +28,7 @@ #include <assert.h> #if defined (__GNUG__) && defined (USE_EXTERNAL_TEMPLATES) -#pragma implementation "Array.h" +#pragma implementation #endif #include "Array.h"
--- a/liboctave/Array.h +++ b/liboctave/Array.h @@ -236,9 +236,10 @@ { public: - Proxy (DiagArray<T> *ref, int r, int c) : object (ref), i (r), j (c) { } + inline Proxy (DiagArray<T> *ref, int r, int c) + : object (ref), i (r), j (c) { } - const Proxy& operator = (const T& val) const + inline const Proxy& operator = (const T& val) const { if (i == j) { @@ -252,7 +253,7 @@ return *this; } - operator T () const + inline operator T () const { if (object) return object->get (i);
--- a/src/SLStack.cc +++ b/src/SLStack.cc @@ -26,7 +26,7 @@ #endif #if defined (__GNUG__) && defined (USE_EXTERNAL_TEMPLATES) -#pragma implementation "SLStack.h" +#pragma implementation #endif #include "SLStack.h"
--- a/src/SLStack.h +++ b/src/SLStack.h @@ -19,13 +19,13 @@ #if !defined (_SLStack_h) #define _SLStack_h 1 -#include "SLList.h" -#include "Stack.h" - #if defined (__GNUG__) && defined (USE_EXTERNAL_TEMPLATES) #pragma interface #endif +#include "SLList.h" +#include "Stack.h" + template <class T> class SLStack : public Stack<T> {