From f13adf50dcbbf94da32c271fe38253113ba61d41 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 1 Feb 2020 19:24:46 +0100 Subject: vt: use 8-bit indices for parameters and sub parameters We only support 16 (sub) parameters and thus there's no need for 64-bit index variables. --- terminal.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 3bc8bd22..b9db2bfe 100644 --- a/terminal.h +++ b/terminal.h @@ -100,7 +100,7 @@ struct grid { struct vt_subparams { unsigned value[16]; - size_t idx; + uint8_t idx; }; struct vt_param { @@ -113,7 +113,7 @@ struct vt { wchar_t last_printed; struct { struct vt_param v[16]; - size_t idx; + uint8_t idx; } params; char private[2]; struct { @@ -123,8 +123,8 @@ struct vt { } osc; struct { uint8_t data[4]; - size_t idx; - size_t left; + uint8_t idx; + uint8_t left; } utf8; struct { uint8_t *data; -- cgit v1.3