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.
This commit is contained in:
Daniel Eklöf 2020-02-01 19:24:46 +01:00
parent 26d39fe96e
commit f13adf50dc
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 7 additions and 7 deletions

View file

@ -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;