comparison anagram/support/suppinst.cpp @ 0:13d2b8934445

Import AnaGram (near-)release tree into Mercurial.
author David A. Holland
date Sat, 22 Dec 2007 17:52:45 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:13d2b8934445
1 /*
2 * AnaGram, A System for Syntax Directed Programming
3 * Copyright 1997-1999 Parsifal Software. All Rights Reserved.
4 * Copyright 2006 David A. Holland. All Rights Reserved.
5 * See the file COPYING for license and usage terms.
6 *
7 * suppinst.cpp - template instantiation
8 */
9
10 #include "agarray.h"
11 #include "agbaltree.h"
12 #include "agnotify.h"
13 #include "agstring.h"
14 #include "register.h"
15
16 //#define INCLUDE_LOGGING
17 #include "log.h"
18
19 #include "agarray-imp.h"
20 #include "agbaltree-imp.h"
21 #include "agstack-imp.h"
22 #include "register-imp.h"
23
24 ////////////////////////////////////////////////////////////
25
26 #ifdef __IBMCPP__
27 /* last pruned 20061022 */
28 /* last tested 20061022 */
29
30 // balanced tree
31 #pragma define(AgBalancedTree<int>)
32
33 // stack
34 #pragma define(AgStack<AgNotificationActionBase *>)
35 #pragma define(AgStack<AgNotifierBase*>)
36 #pragma define(AgStack<AgString>)
37 #pragma define(AgStack<char>)
38 #pragma define(AgStack<void *>)
39
40 #endif /* __IBMCPP__ */
41
42 ////////////////////////////////////////////////////////////
43
44 #ifdef __WATCOM_CPLUSPLUS__
45 /* last pruned 20061022 */
46 /* last tested who-knows-when */
47
48 // Watcom 10.6 doesn't seem to have any mechanism for forcing template
49 // expansions.
50
51 // balanced tree
52 typedef AgBalancedTree<int> foo1;
53
54 #endif /* __WATCOM_CPLUSPLUS__ */
55
56 ////////////////////////////////////////////////////////////
57
58 #ifdef _MSC_VER
59 /* last pruned 20061022 */
60 /* last tested who-knows-when */
61
62 // balanced tree
63 template class AgBalancedTree<int>;
64
65 // stack
66 template class AgStack<AgString>;
67 template class AgStack<char>;
68 template class AgStack<void *>;
69
70 #endif /* _MSC_VER */
71
72 ////////////////////////////////////////////////////////////
73
74 #ifdef __GNUC__
75 /* last pruned 20061022 */
76 /* last tested 20061022 */
77
78 // balanced tree
79 template class AgBalancedTree<int>;
80
81 // stack
82 template class AgStack<AgNotificationActionBase *>;
83 template class AgStack<AgNotifierBase *>;
84 template class AgStack<AgString>;
85 template class AgStack<char>;
86 template class AgStack<void *>;
87
88 #endif /* __GNUC__ */
89
90 ////////////////////////////////////////////////////////////
91
92 #ifdef __BCPLUSPLUS__
93 /* last pruned 20061022 */
94 /* last tested who-knows-when */
95
96 #pragma option -Jgd
97
98 // balanced tree
99 typedef AgBalancedTree<int> foo11;
100
101 // stack
102 typedef AgStack<AgString> foo21;
103 typedef AgStack<char> foo22;
104 typedef AgStack<void *> foo23;
105
106 #endif /* __BCPLUSPLUS__ */