X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/177f020f122827214159c46dcfe7ded1e3c8d1c3..9f1e781a5c2beb9df943c832300a3f5bee1e4ed3:/sbr/print_sw.c diff --git a/sbr/print_sw.c b/sbr/print_sw.c index ad92b882..42df6d22 100644 --- a/sbr/print_sw.c +++ b/sbr/print_sw.c @@ -5,13 +5,14 @@ * complete copyright information. */ -#include +#include "h/mh.h" void print_sw (const char *substr, const struct swit *swp, char *prefix, FILE *fp) { - int len, optno; + int len; + bool optno; int i; char *cp, *cp1, *sp; char buf[128]; @@ -20,14 +21,14 @@ print_sw (const char *substr, const struct swit *swp, char *prefix, FILE *fp) for (; swp->sw; swp++) { /* null matches all strings */ if (!*substr || (ssequal (substr, swp->sw) && len >= swp->minchars)) { - optno = 0; + optno = false; /* next switch */ if ((sp = (&swp[1])->sw)) { if (!*substr && sp[0] == 'n' && sp[1] == 'o' && strcmp (&sp[2], swp->sw) == 0 && ( ((&swp[1])->minchars == 0 && swp->minchars == 0) || ((&swp[1])->minchars == (swp->minchars) + 2))) - optno++; + optno = true; } if (swp->minchars > 0) {