Serialize errors to make them sortable, deterministic, and generally more control

This commit is contained in:
gingerBill
2024-03-19 15:34:29 +00:00
parent 8ff788f4ff
commit 9a2fc6cf4c
12 changed files with 159 additions and 94 deletions

View File

@@ -1107,7 +1107,7 @@ gb_internal void odin_doc_write_docs(OdinDocWriter *w) {
}
debugf("odin_doc_update_entities sort pkgs %s\n", w->state ? "preparing" : "writing");
gb_sort_array(pkgs.data, pkgs.count, cmp_ast_package_by_name);
array_sort(pkgs, cmp_ast_package_by_name);
for_array(i, pkgs) {
gbAllocator allocator = heap_allocator();