mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-26 06:46:45 -04:00
features: +/-ucurl
This commit is contained in:
parent
b1fe241215
commit
f1f46edc7d
3 changed files with 15 additions and 4 deletions
5
client.c
5
client.c
|
|
@ -67,12 +67,13 @@ version_and_features(void)
|
|||
{
|
||||
static char buf[256];
|
||||
snprintf(buf, sizeof(buf),
|
||||
"version: %s %cpgo %cime %cgraphemes %cassertions",
|
||||
"version: %s %cpgo %cime %cgraphemes %cassertions %cucurl",
|
||||
FOOT_VERSION,
|
||||
feature_pgo() ? '+' : '-',
|
||||
feature_ime() ? '+' : '-',
|
||||
feature_graphemes() ? '+' : '-',
|
||||
feature_assertions() ? '+' : '-');
|
||||
feature_assertions() ? '+' : '-',
|
||||
feature_ext_underline() ? '+' : '-');
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,3 +37,12 @@ static inline bool feature_graphemes(void)
|
|||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline bool feature_ext_underline(void)
|
||||
{
|
||||
#if FOOT_EXT_UNDERLINE
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
5
main.c
5
main.c
|
|
@ -53,12 +53,13 @@ version_and_features(void)
|
|||
{
|
||||
static char buf[256];
|
||||
snprintf(buf, sizeof(buf),
|
||||
"version: %s %cpgo %cime %cgraphemes %cassertions",
|
||||
"version: %s %cpgo %cime %cgraphemes %cassertions %cucurl",
|
||||
FOOT_VERSION,
|
||||
feature_pgo() ? '+' : '-',
|
||||
feature_ime() ? '+' : '-',
|
||||
feature_graphemes() ? '+' : '-',
|
||||
feature_assertions() ? '+' : '-');
|
||||
feature_assertions() ? '+' : '-',
|
||||
feature_ext_underline() ? '+' : '-');
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue