Mercurial > ~dholland > hg > ag > index.cgi
comparison anagram/guisupport/gsinst.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 * gsinst.cpp - template instantiation | |
8 */ | |
9 | |
10 #include "agbaltree.h" | |
11 #include "agmap.h" | |
12 #include "agstring.h" | |
13 #include "data.h" | |
14 #include "mrule.h" | |
15 #include "sparse.h" | |
16 | |
17 //struct HelpTopic; // from help.h | |
18 | |
19 //#define INCLUDE_LOGGING | |
20 #include "log.h" | |
21 | |
22 | |
23 #include "agbaltree-imp.h" | |
24 | |
25 | |
26 #ifdef __IBMCPP__ | |
27 | |
28 //#pragma define(AgBalancedTree<AgMap<AgString, Log::Switch>::Wrapper>) | |
29 //#pragma define(AgBalancedTree<AgMap<AgString, HelpTopic *>::Wrapper>) | |
30 #pragma define(AgBalancedTree<MarkedRule>) | |
31 #pragma define(AgBalancedTree<Triple<int> >) | |
32 #pragma define(AgBalancedTree<OrderedPair<int> >) | |
33 #pragma define(AgBalancedTree<AgArray<int> >) | |
34 #pragma define(AgBalancedTree<AgSparseIntArray::Pair>) | |
35 | |
36 #endif | |
37 | |
38 | |
39 #ifdef __BCPLUSPLUS__ | |
40 #pragma option -Jgd | |
41 | |
42 typedef AgBalancedTree<AgMap<AgString, Log::Switch>::Wrapper> fake1; | |
43 typedef AgBalancedTree<AgMap<AgString, Log::Switch>::Wrapper> fake2; | |
44 //typedef AgBalancedTree<IntegerPair> fake3; | |
45 typedef AgBalancedTree<MarkedRule> fake4; | |
46 typedef AgBalancedTree<Triple<int> > fake5; | |
47 typedef AgBalancedTree<OrderedPair<int> > fake8; | |
48 typedef AgBalancedTree<AgArray<int> > fake6a; | |
49 typedef AgBalancedTree<AgSparseIntArray::Pair> fake7; | |
50 | |
51 #endif | |
52 | |
53 | |
54 #ifdef __WATCOM_CPLUSPLUS__ | |
55 | |
56 typedef AgBalancedTree<AgMap<AgString, Log::Switch>::Wrapper> abtjunk1; | |
57 //typedef AgBalancedTree<IntegerPair> abtjunk2; | |
58 typedef AgBalancedTree<MarkedRule> abtjunk3; | |
59 typedef AgBalancedTree<Triple<int> > abtjunk4; | |
60 typedef AgBalancedTree<OrderedPair<int> > fake8; | |
61 typedef AgBalancedTree<AgArray<int> > abtjunk5a; | |
62 typedef AgBalancedTree<AgSparseIntArray::Pair> fake7; | |
63 | |
64 #endif | |
65 | |
66 | |
67 #ifdef _MSC_VER | |
68 | |
69 template class AgBalancedTree<AgMap<AgString, Log::Switch>::Wrapper>; | |
70 //template class AgBalancedTree<IntegerPair>; | |
71 template class AgBalancedTree<MarkedRule>; | |
72 template class AgBalancedTree<Triple<int> >; | |
73 template class AgBalancedTree<OrderedPair<int> >; | |
74 template class AgBalancedTree<AgArray<int> >; | |
75 template class AgBalancedTree<AgSparseIntArray::Pair>; | |
76 | |
77 #endif | |
78 | |
79 | |
80 #ifdef __GNUC__ | |
81 | |
82 template class AgIndexedContainer<AgArray<int> >; | |
83 //template class AgBalancedTree<AgMap<AgString, Log::Switch>::Wrapper>; | |
84 //template class AgBalancedTree<IntegerPair>; | |
85 template class AgBalancedTree<MarkedRule>; | |
86 template class AgBalancedTree<AgSparseIntArray::Pair>; | |
87 | |
88 #endif | |
89 |