diff options
| author | gingerBill <bill@gingerbill.org> | 2023-01-14 12:33:42 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-01-14 12:33:42 +0000 |
| commit | 1ab90de4931f07ea61b1195de602f282a853568b (patch) | |
| tree | 1e5ef6379eeefc1fed8da78948bd6d38e472bdfb /src/docs.cpp | |
| parent | 1064bcd0602c9ff86e2a304ecb46b8d86bb07d52 (diff) | |
Minimize `StringMap` structure usage
Diffstat (limited to 'src/docs.cpp')
| -rw-r--r-- | src/docs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/docs.cpp b/src/docs.cpp index b1efa2b46..54bb0c7a2 100644 --- a/src/docs.cpp +++ b/src/docs.cpp @@ -210,7 +210,7 @@ gb_internal void print_doc_package(CheckerInfo *info, AstPackage *pkg) { } if (pkg->scope != nullptr) { - auto entities = array_make<Entity *>(heap_allocator(), 0, pkg->scope->elements.entries.count); + auto entities = array_make<Entity *>(heap_allocator(), 0, pkg->scope->elements.count); defer (array_free(&entities)); for (auto const &entry : pkg->scope->elements) { Entity *e = entry.value; @@ -348,7 +348,7 @@ gb_internal void generate_documentation(Checker *c) { odin_doc_write(info, output_file_path); } else { - auto pkgs = array_make<AstPackage *>(permanent_allocator(), 0, info->packages.entries.count); + auto pkgs = array_make<AstPackage *>(permanent_allocator(), 0, info->packages.count); for (auto const &entry : info->packages) { AstPackage *pkg = entry.value; if (build_context.cmd_doc_flags & CmdDocFlag_AllPackages) { |