From 6d68793fa0e50c58a5ab90b6de5ecf8ce061dc04 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 14:42:23 -0700 Subject: Print line number anchors through one helper --- source/ui-shared.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source/ui-shared.h') diff --git a/source/ui-shared.h b/source/ui-shared.h index ee350f0..32337d9 100644 --- a/source/ui-shared.h +++ b/source/ui-shared.h @@ -114,6 +114,13 @@ extern void cgit_print_age(time_t t, int tz, time_t max_relative); */ extern void cgit_print_date(timestamp_t date, int tz); +/* + * Print the anchor of every line from first to last, each linking to itself. + * The anchors are handed over in batches rather than a write per line, and + * never built whole, which would come to several times the blob's size. + */ +extern void cgit_print_line_anchors(size_t first, size_t last); + /* * Print name through the email filter, followed by the address when * show_email is set and enable-plain-email is on. A missing address reaches -- cgit 2.11.1