TerminalFont: migrate cJSON to yyjson

yyjson provides faster JSON parsing and supports JSON with comments ( which is allowed in WT config file )
https://github.com/ibireme/yyjson
This commit is contained in:
李通洲
2023-03-03 19:39:45 +08:00
parent e5f851dcbb
commit fdd0d47762
7 changed files with 14422 additions and 99 deletions
+10
View File
@@ -120,4 +120,14 @@ static inline bool wrapClose(FFNativeFD* pfd)
}
#define FF_AUTO_CLOSE_FD __attribute__((__cleanup__(wrapClose)))
static inline bool wrapFclose(FILE** pfile)
{
assert(pfile);
if (!*pfile)
return false;
fclose(*pfile);
return true;
}
#define FF_AUTO_CLOSE_FILE __attribute__((__cleanup__(wrapFclose)))
#endif // FF_INCLUDED_common_io_io
+8336
View File
File diff suppressed because it is too large Load Diff
+6003
View File
File diff suppressed because it is too large Load Diff