]> git.ipfire.org Git - thirdparty/systemd.git/commit
locale-util: make SpecialGlyph more like our usual enums
authorLennart Poettering <lennart@poettering.net>
Thu, 8 Apr 2021 20:59:43 +0000 (22:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Apr 2021 21:00:43 +0000 (23:00 +0200)
commiteff60d8ceaba1a34b75f9dbfd3b362024530314a
treec632ea85a4caa6e789a31cd9b07048935848bb86
parentd0b3039837d610c5c5b8486b864806e578d55a8d
locale-util: make SpecialGlyph more like our usual enums

Let's define both an enum and a typedef named SpecialGlyph, the way we
usually do it.

Also, introduce an "invalid" special glyph, assigned to -EINVAL, also
like we always do it. (And handle it somewhat sanely in special_glyph()
src/basic/locale-util.c
src/basic/locale-util.h