From 5ab6b560e8528c27ba934b90f94b1828b7771e27 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Tue, 13 Oct 2026 14:27:58 +0300 Subject: Encapsulate stream queue context and consolidate forwarding wrappers - Create struct stream_emit_ctx packing stream queue arguments into 1 cache line - Reduce emit_stream_bulk_wrapped from 13 parameters to 3 - Reduce flush_stream_queue from 10 parameters to 1 - Extract stream_queue_finish to eliminate duplicated cleanup in kernel instantiations - Replace EMIT_STREAM_ROW macros with typed inline functions - Move pending_wrap clearing directly into term_screen_erase, insert, delete, and scroll - Remove sc_erase_display, sc_erase_line, sc_insert_chars, and sc_delete_chars wrappers - Consolidate term_row and remove duplicated row_fill_gap helper --- src/core.h | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'src/core.h') diff --git a/src/core.h b/src/core.h index 2460938..beec4e0 100644 --- a/src/core.h +++ b/src/core.h @@ -103,34 +103,6 @@ static inline void sc_erase_span(struct term *t, int y, int from, int to) t->scr.slot[p].version++; } -/* Erase display mode 0, 1, 2, or 3. */ -static inline void sc_erase_display(struct term *t, int mode) -{ - t->pending_wrap = false; - term_screen_erase(t, mode); -} - -/* Erase line mode 0, 1, or 2. */ -static inline void sc_erase_line(struct term *t, int mode) -{ - t->pending_wrap = false; - term_screen_erase_line(t, mode); -} - -/* Insert n blank characters at cursor. */ -static inline void sc_insert_chars(struct term *t, int n) -{ - t->pending_wrap = false; - term_screen_insert_chars(t, n); -} - -/* Delete n characters at cursor. */ -static inline void sc_delete_chars(struct term *t, int n) -{ - t->pending_wrap = false; - term_screen_delete_chars(t, n); -} - /* Scroll margins: top to bottom, n lines up or down. */ void term_sc_scroll_region(struct term *t, int top, int bottom, int n, bool down); -- cgit v1.2.3