int this;
while (opt->longName || opt->shortName || opt->arg) {
- if (opt->argInfo == POPT_ARG_INCLUDE_TABLE) {
+ if ((opt->argInfo & POPT_ARG_MASK) == POPT_ARG_INCLUDE_TABLE) {
this = maxArgWidth(opt->arg);
} else {
this = opt->shortName ? 2 : 0;
opt = table;
while (opt->longName || opt->shortName || opt->arg) {
- if (opt->argInfo == POPT_ARG_INCLUDE_TABLE) {
+ if ((opt->argInfo & POPT_ARG_MASK) == POPT_ARG_INCLUDE_TABLE) {
if (opt->descrip)
fprintf(f, "\n%s\n", opt->descrip);
singleTableHelp(f, opt->arg, left);
const char * item = shortStr;
if (opt->shortName) {
- if (!opt->argInfo) return cursor; /* we did these already */
+ if (!(opt->argInfo & POPT_ARG_MASK))
+ return cursor; /* we did these already */
len++;
*shortStr = opt->shortName;
shortStr[1] = '\0';
while (opt->longName || opt->shortName || opt->arg) {
if (opt->longName || opt->shortName)
cursor = singleOptionUsage(f, cursor, opt);
- else if (opt->argInfo == POPT_ARG_INCLUDE_TABLE)
+ else if ((opt->argInfo & POPT_ARG_MASK) == POPT_ARG_INCLUDE_TABLE)
cursor = singleTableUsage(f, cursor, opt->arg);
opt++;
}
}
while (opt->longName || opt->shortName || opt->arg) {
- if (opt->shortName && !opt->argInfo)
+ if (opt->shortName && !(opt->argInfo & POPT_ARG_MASK))
str[strlen(str)] = opt->shortName;
- else if (opt->argInfo == POPT_ARG_INCLUDE_TABLE)
+ else if ((opt->argInfo & POPT_ARG_MASK) == POPT_ARG_INCLUDE_TABLE)
showShortOptions(opt->arg, f, str);
opt++;