Start work on allowing unlimited codepoints per cell

This is needed to properly support zero-width joiner based emoji
sequences.
This commit is contained in:
Kovid Goyal
2024-07-14 12:56:43 +05:30
parent 847433dba2
commit c572adf677
3 changed files with 150 additions and 0 deletions

View File

@@ -224,6 +224,14 @@ typedef struct {
} GPUCell;
static_assert(sizeof(GPUCell) == 20, "Fix the ordering of GPUCell");
typedef union CharOrIndex {
struct {
char_type ch_is_index: 1;
char_type ch: sizeof(char_type) - 1;
};
char_type val;
} CharOrIndex;
typedef struct {
char_type ch;
hyperlink_id_type hyperlink_id;