diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-12-07 17:31:04 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-12-07 17:31:04 +0100 |
commit | 9ac4adf1a2d4a6c5270085da4d5e4079c68f1442 (patch) | |
tree | f00dcd054b5f5bf710aa020f32e55c71aa31b7b5 /src | |
parent | m derp (diff) | |
download | mds-9ac4adf1a2d4a6c5270085da4d5e4079c68f1442.tar.gz mds-9ac4adf1a2d4a6c5270085da4d5e4079c68f1442.tar.bz2 mds-9ac4adf1a2d4a6c5270085da4d5e4079c68f1442.tar.xz |
... derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-kbdc/compile-layout.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mds-kbdc/compile-layout.c b/src/mds-kbdc/compile-layout.c index 73fc25c..e3f53e6 100644 --- a/src/mds-kbdc/compile-layout.c +++ b/src/mds-kbdc/compile-layout.c @@ -930,18 +930,18 @@ static char32_t* parse_keys(mds_kbdc_tree_t* restrict tree, const char* restrict buf[buf_ptr] = '\0', buf_ptr = 0; \ fail_if (subrc = string_decode(buf), subrc == NULL); \ COPY -#define SPECIAL(VAL /* [1, 63] */) \ - do \ - { \ - /* (above 2³¹, yet guaranteed not to be -1). */ \ - size_t i; \ - for (i = 0; i < 7; i++) \ - GROW_BUF; \ - buf[buf_ptr++] = (char)0xFE; \ - for (i = 0; i < 5; i++) \ - buf[buf_ptr++] = 0x00; \ - buf[buf_ptr++] = (char)(((1ULL << 31) ^ VAL##ULL) & 255); \ - } \ +#define SPECIAL(VAL /* [1, 63] */) \ + do \ + { \ + /* (above 2³¹, yet guaranteed not to be -1). */ \ + size_t i; \ + for (i = 0; i < 7; i++) \ + GROW_BUF; \ + buf[buf_ptr++] = (char)0xFE; \ + for (i = 0; i < 5; i++) \ + buf[buf_ptr++] = 0x80; \ + buf[buf_ptr++] = (char)((((1ULL << 31) ^ VAL##ULL) & 255) | 0x80); \ + } \ while (0) /* Actually, UTF-8 does not suppot beyond plane 16 nowadays, but we ignore that. */ |