diff options
Diffstat (limited to 'Build/source/utils/asymptote/symbol.cc')
-rw-r--r-- | Build/source/utils/asymptote/symbol.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/symbol.cc b/Build/source/utils/asymptote/symbol.cc new file mode 100644 index 00000000000..0f9a506e839 --- /dev/null +++ b/Build/source/utils/asymptote/symbol.cc @@ -0,0 +1,24 @@ +/***** + * symbol.cc + * Andy Hammerlindl 2002/06/18 + * + * Creates symbols from strings so that multiple calls for a symbol of + * the same string will return a pointer to the same object. + *****/ + +#include <cstdio> +#include "symbol.h" + + + +namespace sym { + +GCInit symbol::initialize; + +mem::map<CONST string,symbol> symbol::dict; +symbol *symbol::initsym=symbol::specialTrans(string("operator init")); +symbol *symbol::castsym=symbol::specialTrans(string("operator cast")); +symbol *symbol::ecastsym=symbol::specialTrans(string("operator ecast")); + +} // namespace sym + |