summaryrefslogtreecommitdiff
path: root/src/core.h
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-13 14:27:58 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-13 14:27:58 +0300
commit5ab6b560e8528c27ba934b90f94b1828b7771e27 (patch)
tree409c2a2e864529ccda0ff3e3b75b0280279e2a33 /src/core.h
parent7633ab2c60b40bd5aa67ef391b2a0d149685742f (diff)
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
Diffstat (limited to 'src/core.h')
-rw-r--r--src/core.h28
1 files changed, 0 insertions, 28 deletions
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);