util: add helpers for generating colored check mark glyphs from bools

This commit is contained in:
Lennart Poettering
2021-03-03 03:08:31 +09:00
committed by Yu Watanabe
parent 7e40042b55
commit 312dff1760
3 changed files with 10 additions and 2 deletions
+4
View File
@@ -90,3 +90,7 @@ void locale_variables_free(char* l[_VARIABLE_LC_MAX]);
static inline void locale_variables_freep(char*(*l)[_VARIABLE_LC_MAX]) {
locale_variables_free(*l);
}
static inline const char *special_glyph_check_mark(bool b) {
return b ? special_glyph(SPECIAL_GLYPH_CHECK_MARK) : special_glyph(SPECIAL_GLYPH_CROSS_MARK);
}