diff options
Diffstat (limited to 'graphics/asymptote/genv.h')
-rw-r--r-- | graphics/asymptote/genv.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/graphics/asymptote/genv.h b/graphics/asymptote/genv.h index 014896e3e2..ad31574a5e 100644 --- a/graphics/asymptote/genv.h +++ b/graphics/asymptote/genv.h @@ -31,7 +31,7 @@ namespace trans { class genv : public gc { // The initializer functions for imports, indexed by filename. - typedef mem::map<CONST string,record *> importMap; + typedef mem::map<vm::importIndex_t,record *> importMap; importMap imap; // List of modules in translation. Used to detect and prevent infinite @@ -44,12 +44,21 @@ class genv : public gc { // Translate a module to build the record type. record *loadModule(symbol name, string s); + record *loadTemplatedModule( + symbol name, string s, mem::vector<absyntax::namedTyEntry*> *args + ); public: genv(); // Get an imported module, translating if necessary. record *getModule(symbol name, string s); + record *getTemplatedModule( + symbol name, + string s, + string sigHandle, + mem::vector<absyntax::namedTyEntry*> *args + ); // Uses the filename->record map to build a filename->initializer map to be // used at runtime. |