<div dir="ltr">Hi Rob,<div><br></div><div>_mkflags_ had an issue for generating FLAG_xxxx macros for long options.</div><div><br></div><div>Only the first __long__ option, without any __short__ option had a proper</div><div>
flag value, rest all were defined to ZERO. Becaus the _flist_ was not moved </div><div>to the next in this case.</div><div><br></div><div>The issue is fixed in the patch.</div><div><br></div><div><div>@@ -117,7 +117,12 @@</div>
<div> flist->lopt = flist->lopt->next;</div><div> } else sprintf(out, "#define FLAG_%s 0\n", aflist->lopt->command);</div><div> aflist->lopt = aflist->lopt->next;</div>
<div>- if (!aflist->command) aflist = aflist->next;</div><div>+ if (!aflist->command) {</div><div>+ aflist = aflist->next;</div><div>+ if (flist) {flist = flist->next;</div><div>
+ bit++;</div><div>+ }</div><div>+ }</div><div> } else if (aflist->command) {</div><div> if (flist && (!aflist->command || *aflist->command == *flist->command))</div>
<div> {</div></div><div><br></div><div>regards,</div><div>Ashwini</div></div>