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	Mon Dec 09 20:42:23 1996 +0000
+++ b/src/SLList.cc	Tue Dec 10 05:56:09 1996 +0000
@@ -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)
 {
--- a/src/SLStack-tm.cc	Mon Dec 09 20:42:23 1996 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -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: ***
-*/
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/SLStack.cc	Tue Dec 10 05:56:09 1996 +0000
@@ -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: ***
+*/
--- a/src/Stack.cc	Mon Dec 09 20:42:23 1996 +0000
+++ b/src/Stack.cc	Tue Dec 10 05:56:09 1996 +0000
@@ -20,7 +20,9 @@
 
 */
 
-// Maybe this will work with 2.6.x and beyond?
+#if defined (__GNUG__)
+#pragma implementation
+#endif
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>