stream: stream_line_col: get the line/column of stream currently

Best part is that this should only use cached data, so no chunking
required.
This commit is contained in:
2026-02-05 04:02:56 +00:00
parent d14f015c38
commit 1e451c57e8
2 changed files with 39 additions and 0 deletions

View File

@@ -82,6 +82,9 @@ sv_t stream_till(stream_t *, const char *);
// present.
sv_t stream_while(stream_t *, const char *);
// Get the line and column of the stream at its current position.
void stream_line_col(stream_t *, u64 *line, u64 *col);
#endif
/* Copyright (C) 2026 Aryadev Chavali