From: Ben Harris Date: Sun, 7 Sep 2025 16:43:54 +0000 (+0100) Subject: Add a macro, UALIAS(), for aliases with Unicode mappings X-Git-Tag: bedstead-3.261~95 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=b876f542835d4c6696d3731c79aac38f9814d6eb;p=bedstead.git Add a macro, UALIAS(), for aliases with Unicode mappings ALIAS() is now implemented in terms of UALIAS(). --- 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 {