[FIX] Make codebase *slightly* NetBSD-friendly

I need to make it so that NetBSD targets get their own
correctness/build checks in CI. I also had to do some hacks with
Cytoplasm, will make a PR for those soon.
This commit is contained in:
LDA 2024-10-22 10:21:54 +02:00
commit b0cf0961a3
13 changed files with 35 additions and 25 deletions

View file

@ -83,7 +83,7 @@ ParseAyadoc(char *raw)
if (!strncmp(start, " *", 2) || !strncmp(start, "*", 1))
{
start += 1 + (*start == ' ');
while (start && isspace(*start))
while (start && isspace((int) *start))
{
start++;
}
@ -112,7 +112,7 @@ ParseAyadoc(char *raw)
char *val = del ? del + 1 : NULL;
if (del && strlen(del) >= 1)
{
while (*val && isspace(*val))
while (*val && isspace((int) *val))
{
val++;
}
@ -214,7 +214,7 @@ HandleSeeValue(Stream *out, AyadocComment *aya, HeaderDeclaration d, char *field
{ \
char *temporary, *field = NULL, *index; \
char *last_char; \
while (*start_of_arg && isspace(*start_of_arg)) \
while (*start_of_arg && isspace((int) *start_of_arg)) \
{ \
start_of_arg++; \
} \
@ -230,7 +230,7 @@ HandleSeeValue(Stream *out, AyadocComment *aya, HeaderDeclaration d, char *field
\
/* Trim out spaces */ \
last_char = separator - 1; \
while (*last_char && isspace(*last_char)) \
while (*last_char && isspace((int) *last_char)) \
{ \
last_char--; \
} \