mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 12:15:12 +00:00
[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:
parent
44d6df3be8
commit
b0cf0961a3
13 changed files with 35 additions and 25 deletions
|
|
@ -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--; \
|
||||
} \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue