summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/types.h b/types.h
index 1f6a337..4bea917 100644
--- a/types.h
+++ b/types.h
@@ -762,6 +762,12 @@ typedef struct Evaluator {
bool enabled;
} Evaluator;
+typedef struct Package {
+ Identifier name;
+ Identifiers idents;
+ Statement *stmts;
+} Package;
+
typedef struct Typer {
Allocator *allocr;
Evaluator *evalr;
@@ -776,13 +782,9 @@ typedef struct Typer {
ErrCtx *err_ctx;
/* for checking for problematic struct circular dependencies */
bool *is_reference_stack;
+ Package **pkgs; /* all packages which have been imported */
} Typer;
-typedef struct Package {
- Identifier name;
- Identifiers idents;
-} Package;
-
typedef struct Exporter {
FILE *out; /* .top (toc package) to output to */
bool started;