summaryrefslogtreecommitdiff
path: root/graphics/asymptote/genv.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-02-28 03:01:23 +0000
committerNorbert Preining <norbert@preining.info>2024-02-28 03:01:23 +0000
commit0afdc3e8c2d8e96d0cd0a5f05f1481a4eecc51d2 (patch)
tree805f2acf8e0115574bc5781d1dfb87fbe2e63ba8 /graphics/asymptote/genv.h
parenta64a01e8eaa2c096e7879421f075ebfa2a8bb7f0 (diff)
CTAN sync 202402280301
Diffstat (limited to 'graphics/asymptote/genv.h')
-rw-r--r--graphics/asymptote/genv.h11
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.