summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index d16d44a..3b58f8f 100644
--- a/main.c
+++ b/main.c
@@ -130,9 +130,12 @@ int main(int argc, char **argv) {
Typer tr;
Evaluator ev;
- Exporter exptr;
+ Exporter exptr = {0};
evalr_create(&ev, &tr, &main_allocr);
typer_create(&tr, &ev, &err_ctx, &main_allocr, &idents);
+#ifdef TOC_DEBUG
+ exptr.export_all_ident_names = true;
+#endif
tr.exptr = &exptr;
if (!block_enter(NULL, f.stmts, SCOPE_CHECK_REDECL)) /* enter global scope */