From b876f542835d4c6696d3731c79aac38f9814d6eb Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sun, 7 Sep 2025 17:43:54 +0100 Subject: [PATCH] Add a macro, UALIAS(), for aliases with Unicode mappings ALIAS() is now implemented in terms of UALIAS(). --- bedstead.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bedstead.c b/bedstead.c index 0f03c97..620c8dd 100644 --- a/bedstead.c +++ b/bedstead.c @@ -199,7 +199,9 @@ static struct weight const *weight = &weights[0]; /* U(N) sets the code point and name of a glyph not in AGLFN */ #define U(N) 0x ## N, 0x ## N >= 0x10000 ? "u" #N : "uni" #N -#define ALIAS(alias, canonical) {{.alias_of=canonical},-1,alias,IS_ALIAS} +#define UALIAS(alias_unicode, alias_name, canonical) \ + { { .alias_of = canonical }, alias_unicode, alias_name, IS_ALIAS } +#define ALIAS(alias, canonical) UALIAS(-1, alias, canonical) static struct glyph { union { -- 2.30.2