519
|
1 // Stack.cc -*- C++ -*- |
487
|
2 /* |
|
3 |
|
4 Copyright (C) 1993, 1994 John W. Eaton |
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
8 Octave is free software; you can redistribute it and/or modify it |
|
9 under the terms of the GNU General Public License as published by the |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
|
20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
|
21 |
|
22 */ |
|
23 |
|
24 // Maybe this will work with 2.6.x and beyond? |
|
25 |
|
26 #ifdef HAVE_CONFIG_H |
|
27 #include "config.h" |
|
28 #endif |
|
29 |
|
30 #if defined (__GNUG__) && defined (USE_EXTERNAL_TEMPLATES) |
|
31 #pragma implementation |
|
32 #endif |
|
33 |
|
34 #include <iostream.h> |
|
35 |
|
36 #include "Stack.h" |
|
37 |
|
38 template <class T> |
|
39 void |
|
40 Stack<T>::error (const char *msg) |
|
41 { |
|
42 cerr << msg; |
|
43 } |
|
44 |
|
45 #ifdef __GNUG__ |
|
46 #if defined (OCTAVE_SOURCE) && defined (USE_EXTERNAL_TEMPLATES) |
|
47 |
|
48 typedef Stack<int> stack_type_int; |
|
49 typedef Stack<char *> stack_type_p_char; |
|
50 |
|
51 #include "symtab.h" |
|
52 typedef Stack<symbol_def *> stack_type_p_symbol_def; |
|
53 |
|
54 #include "token.h" |
|
55 typedef Stack<token *> stack_type_p_token; |
|
56 |
584
|
57 #include "tree-base.h" |
|
58 #include "tree-expr.h" |
487
|
59 typedef Stack<tree_matrix *> stack_type_p_tree_matrix; |
|
60 |
|
61 #include "unwind-prot.h" |
|
62 typedef Stack<unwind_elem> stack_type_unwind_elem; |
|
63 |
|
64 #endif |
|
65 #endif |
|
66 |
|
67 /* |
|
68 ;;; Local Variables: *** |
|
69 ;;; mode: C++ *** |
|
70 ;;; page-delimiter: "^/\\*" *** |
|
71 ;;; End: *** |
|
72 */ |