Skip to content

Commit

Permalink
teach docs about true and false
Browse files Browse the repository at this point in the history
  • Loading branch information
flatcap committed Jun 22, 2018
1 parent 77c2177 commit 8b12587
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/makedoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,11 @@ static void pretty_default(char *t, size_t l, const char *s, int type)
}
case DT_BOOL:
{
if (atoi(s))
if (strcasecmp(s, "true") == 0)
strncpy(t, "yes", l);
else if (strcasecmp(s, "false") == 0)
strncpy(t, "no", l);
else if (atoi(s))
strncpy(t, "yes", l);
else
strncpy(t, "no", l);
Expand Down

0 comments on commit 8b12587

Please sign in to comment.