# HG changeset patch # User jwe # Date 781110806 0 # Node ID 0a9ac29dfd4da6024f4e208fadb10a5f571999d4 # Parent daf899e42dfcb5caca217f6c5e056b3c259ca631 [project @ 1994-10-02 15:13:26 by jwe] diff --git a/src/Map.cc b/src/Map.cc --- a/src/Map.cc +++ b/src/Map.cc @@ -38,10 +38,6 @@ #include "config.h" #endif -#if defined (__GNUG__) && defined (USE_EXTERNAL_TEMPLATES) -#pragma implementation -#endif - #include #include "Map.h" @@ -112,8 +108,7 @@ // table entry. Not terrible, but not wonderful either. template -static inline -int +static int goodCHptr (CHNode *t) { return ((((unsigned) t) & 1) == 0); @@ -121,15 +116,14 @@ // This sucks, but avoids g++ 2.6.0 `type unification failed' errors. -void * +static void * index_to_CHptr (int i) { return (void *) ((i << 1) + 1); } template -static inline -int +static int CHptr_to_index (CHNode *t) { return ((unsigned) t) >> 1; @@ -281,27 +275,9 @@ return v; } -#if defined (__GNUG__) && defined (USE_EXTERNAL_TEMPLATES) -#if defined (OCTAVE_SOURCE) - -#include "tree-const.h" -typedef Map map_type_tree_constant; -typedef CHNode chnode_type_tree_constant; -typedef CHMap chmap_type_tree_constant; - -#elif defined (USER_TYPEDEFS) - -// Users can generate their own .o files with their own types, as many -// times as they like. USER_TYPEDEFS should be defined to be the name -// of an include file that contains typdefs for the desired types. -// -// For example, if my-types.h contains typedefs for the Map types -// you are interested in, you might compile this file with the command -// -// g++ -fexternal-templates -DUSE_EXTERNAL_TEMPLATES \ -// -DUSER_TYPEDEFS=\"my-types.h\" - -#include USER_TYPEDEFS - -#endif -#endif +/* +;;; Local Variables: *** +;;; mode: C++ *** +;;; page-delimiter: "^/\\*" *** +;;; End: *** +*/ diff --git a/src/Map.h b/src/Map.h --- a/src/Map.h +++ b/src/Map.h @@ -37,10 +37,6 @@ #if ! defined (octave_Map_h) #define octave_Map_h 1 -#if defined (__GNUG__) && defined (USE_EXTERNAL_TEMPLATES) -#pragma interface -#endif - #include #include "utils.h" @@ -156,10 +152,6 @@ int OK (void) const; }; -#if defined (__GNUG__) && ! defined (USE_EXTERNAL_TEMPLATES) -#include "Map.cc" -#endif - #endif /* diff --git a/src/SLStack.cc b/src/SLStack.cc --- a/src/SLStack.cc +++ b/src/SLStack.cc @@ -25,10 +25,6 @@ #include "config.h" #endif -#if defined (__GNUG__) && defined (USE_EXTERNAL_TEMPLATES) -#pragma implementation -#endif - #include "SLStack.h" template @@ -116,28 +112,6 @@ p.clear (); } -#ifdef __GNUG__ -#if defined (OCTAVE_SOURCE) && defined (USE_EXTERNAL_TEMPLATES) - -typedef SLStack slstack_type_int; -typedef SLStack slstack_type_p_char; - -#include "symtab.h" -typedef SLStack slstack_type_p_symbol_def; - -#include "token.h" -typedef SLStack slstack_type_p_token; - -#include "tree-base.h" -#include "tree-expr.h" -typedef SLStack slstack_type_p_tree_matrix; - -#include "unwind-prot.h" -typedef SLStack slstack_type_unwind_elem; - -#endif -#endif - /* ;;; Local Variables: *** ;;; mode: C++ *** diff --git a/src/SLStack.h b/src/SLStack.h --- a/src/SLStack.h +++ b/src/SLStack.h @@ -19,10 +19,6 @@ #if !defined (_SLStack_h) #define _SLStack_h 1 -#if defined (__GNUG__) && defined (USE_EXTERNAL_TEMPLATES) -#pragma interface -#endif - #include "SLList.h" #include "Stack.h" @@ -54,10 +50,6 @@ int OK (void); }; -#if defined (__GNUG__) && ! defined (USE_EXTERNAL_TEMPLATES) -#include "SLStack.cc" -#endif - #endif /* diff --git a/src/Stack.cc b/src/Stack.cc --- a/src/Stack.cc +++ b/src/Stack.cc @@ -27,10 +27,6 @@ #include "config.h" #endif -#if defined (__GNUG__) && defined (USE_EXTERNAL_TEMPLATES) -#pragma implementation -#endif - #include #include "Stack.h" @@ -42,28 +38,6 @@ cerr << msg; } -#ifdef __GNUG__ -#if defined (OCTAVE_SOURCE) && defined (USE_EXTERNAL_TEMPLATES) - -typedef Stack stack_type_int; -typedef Stack stack_type_p_char; - -#include "symtab.h" -typedef Stack stack_type_p_symbol_def; - -#include "token.h" -typedef Stack stack_type_p_token; - -#include "tree-base.h" -#include "tree-expr.h" -typedef Stack stack_type_p_tree_matrix; - -#include "unwind-prot.h" -typedef Stack stack_type_unwind_elem; - -#endif -#endif - /* ;;; Local Variables: *** ;;; mode: C++ *** diff --git a/src/Stack.h b/src/Stack.h --- a/src/Stack.h +++ b/src/Stack.h @@ -20,10 +20,6 @@ #ifndef _Stack_h #define _Stack_h 1 -#if defined (__GNUG__) && defined (USE_EXTERNAL_TEMPLATES) -//#pragma interface -#endif - template class Stack