Add filename headers to toc output

Format:
  lib/filename.c:
  [start-end] declaration;

  lib/filename.h:
  [start-end] typedef struct { ... } name;
This commit is contained in:
Evgeny committed 2026-02-13 02:51:32 +03:00
1 parent a7fe66dbea
commit 1befe1911e
1 file changed
+3
+3
View File
@@ -647,6 +647,9 @@ def main():
print()
first_file = False
# Print filename header
print(f"{f}:")
# Print in new format
for start, end, text in declarations:
print(f"[{start + 1}-{end + 1}] {text}")