abouttreesummaryrefslogcommitdiff
path: root/src/toc.h
diff options
context:
space:
mode:
authorPatrick Schönberger2021-08-11 18:02:56 +0200
committerPatrick Schönberger2021-08-11 18:02:56 +0200
commit17860defa84c6d8bc0e8bc088a7e09361f17db07 (patch)
tree87d602a2d4419307e73928bc1993a6295ba2cb39 /src/toc.h
parent3715a3f575b615f66e8ea7e57f83849e8bae4deb (diff)
downloadtoc-17860defa84c6d8bc0e8bc088a7e09361f17db07.tar.gz
toc-17860defa84c6d8bc0e8bc088a7e09361f17db07.zip
structs and functions in ctx
Diffstat (limited to 'src/toc.h')
-rw-r--r--src/toc.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/toc.h b/src/toc.h
index 659c9f3..8bf0e68 100644
--- a/src/toc.h
+++ b/src/toc.h
@@ -408,12 +408,12 @@ void tocProgram (std::ostream & out, const Program & _p)
tocNamespace(out, n, true);
}
out << "\n\n";
- for (auto s : p.structs)
+ for (auto s : p.ctx->structs)
{
tocStruct(out, s, true);
}
out << "\n\n";
- for (auto f : p.functions)
+ for (auto f : p.ctx->functions)
{
tocFunction(out, f, true);
}
@@ -429,12 +429,12 @@ void tocProgram (std::ostream & out, const Program & _p)
tocNamespace(out, n, false);
}
out << "\n\n";
- for (auto s : p.structs)
+ for (auto s : p.ctx->structs)
{
tocStruct(out, s, false);
}
out << "\n\n";
- for (auto f : p.functions)
+ for (auto f : p.ctx->functions)
{
tocFunction(out, f, false);
}
@@ -461,12 +461,12 @@ void tocNamespace (std::ostream & out, const Namespace & n, bool stub)
tocNamespace(out, n, stub);
out << "\n\n";
}
- for (auto s : n.structs)
+ for (auto s : n.ctx->structs)
{
tocStruct(out, s, stub);
out << "\n\n";
}
- for (auto f : n.functions)
+ for (auto f : n.ctx->functions)
{
tocFunction(out, f, stub);
out << "\n\n";