From a84c0f57b5efde85c195cbc706715bf4a4116018 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Mon, 15 Mar 2021 02:39:41 +0200 Subject: cleanup and optimizations. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit · No longer rewinding a stream being split, just to skip half through it again, which was not only stupid, but inneficient. · No longer using "index" anywhere when working with lists, lest we get accused of not actually doing lists. Signed-off-by: Gediminas Jakutis --- src/util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index 090a4a0..8435ccf 100644 --- a/src/util.h +++ b/src/util.h @@ -8,6 +8,7 @@ #include "defs.h" int stream_rewind(struct stream * const restrict in); +int stream_skip(struct stream * const restrict in); int split(struct stream * const src, struct stream * const A, struct stream * const B); int print_data(struct stream * const in); -- cgit v1.2.3