From 7f83e1b208e87e3808b268303bb633a8fda203f5 Mon Sep 17 00:00:00 2001 From: Patrick Schönberger Date: Wed, 4 Aug 2021 15:05:42 +0200 Subject: pre change --- src/toc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/toc.h') diff --git a/src/toc.h b/src/toc.h index 95c24d8..43ab1ba 100644 --- a/src/toc.h +++ b/src/toc.h @@ -96,7 +96,7 @@ std::ostream & operator<< (std::ostream & out, const Body & b) out << "{\n"; indentation += 2; - for (auto v : b.variables) + for (auto v : b.ctx->variables) { indent(out); out << v << ";\n"; @@ -279,7 +279,7 @@ void tocProgram (std::ostream & out, const Program & p) tocFunction(out, f, true); } - for (auto v : p.variables) + for (auto v : p.ctx->variables) { out << v << ";\n"; } @@ -303,7 +303,7 @@ void tocNamespace (std::ostream & out, const Namespace & n, bool stub) namespaces.push_back(n.name); if (!stub) { - for (auto v : n.variables) + for (auto v : n.ctx->variables) { out << v << ";\n"; } -- cgit v1.2.3