Mercurial > hg > octave-terminal
changeset 2579:6e1d6e02fd8c
[project @ 1996-12-10 05:55:22 by jwe]
author | jwe |
---|---|
date | Tue, 10 Dec 1996 05:56:09 +0000 |
parents | 0f37e1edb234 |
children | fa7dd5fc7c59 |
files | src/SLList.cc src/SLStack-tm.cc src/SLStack.cc src/Stack.cc |
diffstat | 4 files changed, 45 insertions(+), 50 deletions(-) [+] |
line wrap: on
line diff
--- a/src/SLList.cc +++ b/src/SLList.cc @@ -26,9 +26,6 @@ #include "SLList.h" -// I'm not sure if putting this here is really necessary, but it -// shouldn't hurt. - template <class T> SLList<T>::~SLList (void) {
deleted file mode 100644 --- a/src/SLStack-tm.cc +++ /dev/null @@ -1,46 +0,0 @@ -/* - -Copyright (C) 1993, 1994, 1995 John W. Eaton - -This file is part of Octave. - -Octave is free software; you can redistribute it and/or modify it -under the terms of the GNU General Public License as published by the -Free Software Foundation; either version 2, or (at your option) any -later version. - -Octave is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -for more details. - -You should have received a copy of the GNU General Public License -along with Octave; see the file COPYING. If not, write to the Free -Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -*/ - -// Instantiate Stacks of tree_matrix* values. - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - -#include "SLList.h" - -#include "SLStack.h" - -#include "pt-mat.h" - -template class SLNode<tree_matrix *>; -template class SLList<tree_matrix *>; - -template class Stack<tree_matrix *>; -template class SLStack<tree_matrix *>; - -/* -;;; Local Variables: *** -;;; mode: C++ *** -;;; page-delimiter: "^/\\*" *** -;;; End: *** -*/
new file mode 100644 --- /dev/null +++ b/src/SLStack.cc @@ -0,0 +1,42 @@ +// This may look like C code, but it is really -*- C++ -*- +/* +Copyright (C) 1988, 1992 Free Software Foundation + written by Doug Lea (dl@rocky.oswego.edu) + +This file is part of the GNU C++ Library. This library is free +software; you can redistribute it and/or modify it under the terms of +the GNU Library General Public License as published by the Free +Software Foundation; either version 2 of the License, or (at your +option) any later version. This library is distributed in the hope +that it will be useful, but WITHOUT ANY WARRANTY; without even the +implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +PURPOSE. See the GNU Library General Public License for more details. +You should have received a copy of the GNU Library General Public +License along with this library; if not, write to the Free Software +Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +*/ + +#if defined (__GNUG__) +#pragma implementation +#endif + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include "SLStack.h" + +template <class T> +SLStack<T>::operator = (const SLStack<T>& s) +{ + if (this != &s) + p = s.p; + + return *this; +} + +/* +;;; Local Variables: *** +;;; mode: C++ *** +;;; End: *** +*/