mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-08 05:34:00 -04:00
debug: rename assert() to xassert(), to avoid clashing with <assert.h>
This commit is contained in:
parent
22f25a9e4f
commit
e56136ce11
31 changed files with 387 additions and 388 deletions
4
main.c
4
main.c
|
|
@ -82,7 +82,7 @@ print_usage(const char *prog_name)
|
|||
bool
|
||||
locale_is_utf8(void)
|
||||
{
|
||||
assert(strlen(u8"ö") == 2);
|
||||
xassert(strlen(u8"ö") == 2);
|
||||
|
||||
wchar_t w;
|
||||
if (mbtowc(&w, u8"ö", 2) != 2)
|
||||
|
|
@ -240,7 +240,7 @@ main(int argc, char *const *argv)
|
|||
|
||||
/* Strip trailing spaces */
|
||||
char *end = font + strlen(font);
|
||||
assert(*end == '\0');
|
||||
xassert(*end == '\0');
|
||||
end--;
|
||||
while (end > font && isspace(*end))
|
||||
*(end--) = '\0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue