]> gitweb.ps.run Git - toc/blobdiff - src/toc.h
pre change
[toc] / src / toc.h
index 95c24d8beb795b7926e7705dacd11f0de7bc7723..43ab1bad3831c508f50cf83868003b342d8860e8 100644 (file)
--- a/src/toc.h
+++ b/src/toc.h
@@ -96,7 +96,7 @@ std::ostream & operator<< (std::ostream & out, const Body & b)
   out << "{\n";\r
   indentation += 2;\r
 \r
-  for (auto v : b.variables)\r
+  for (auto v : b.ctx->variables)\r
   {\r
     indent(out);\r
     out << v << ";\n";\r
@@ -279,7 +279,7 @@ void tocProgram (std::ostream & out, const Program & p)
     tocFunction(out, f, true);\r
   }\r
 \r
-  for (auto v : p.variables)\r
+  for (auto v : p.ctx->variables)\r
   {\r
     out << v << ";\n";\r
   }\r
@@ -303,7 +303,7 @@ void tocNamespace  (std::ostream & out, const Namespace & n, bool stub)
   namespaces.push_back(n.name);\r
   if (!stub)\r
   {\r
-    for (auto v : n.variables)\r
+    for (auto v : n.ctx->variables)\r
     {\r
       out << v << ";\n";\r
     }\r