  static fz_document *
  cbz_open_document_with_stream(fz_context *ctx, fz_stream *file)
  {
-@@ -246,6 +340,7 @@ cbz_open_document_with_stream(fz_context *ctx, fz_stream *file)
+@@ -246,6 +349,7 @@ cbz_open_document_with_stream(fz_context *ctx, fz_stream *file)
  	doc->super.lookup_metadata = cbz_lookup_metadata;
  	doc->super.needs_password = cbz_needs_password;
  	doc->super.authenticate_password = cbz_authenticate_password;

commit b15ca8974ab7a686c09f70a0025ddda8097d0194
Author: Marcel Röthke <marcel@roethke.info>
Date:   Sun Nov 13 22:10:06 2022 +0100


+cbz_load_outline(fz_context *ctx, fz_document *doc_)
+{
+	cbz_document *doc = (cbz_document *) doc_;
+	fz_outline *outline = NULL;
+	size_t max_chapter_stack_depth = 10;
+	fz_outline *chapter_stack[max_chapter_stack_depth];
+	size_t chapter_stack_depth = 0;
