diff options
author | jbj <jbj> | 2008-02-13 08:27:00 +0000 |
---|---|---|
committer | jbj <jbj> | 2008-02-13 08:27:00 +0000 |
commit | 79cde3f53166decc012aa4178eee8b2f510f4480 (patch) | |
tree | a3b1b25c389676f61e91ba06a9c7a6096613dbb5 /poptint.h | |
parent | c73cffed187772be4b680f961c38ade3e3b32418 (diff) | |
download | libpopt-79cde3f53166decc012aa4178eee8b2f510f4480.tar.gz |
- jbj: free aliases/execs with common code.
- jbj: rewrite the callback logic using a switch for simplicity.
- jbj: hide bit field structure behind F_ISSET/LF_ISSET/CBF_ISSET macros.
Diffstat (limited to 'poptint.h')
-rw-r--r-- | poptint.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -69,7 +69,10 @@ typedef union poptArg_u { } poptArg; /*@=exporttype =fielduse@*/ -#define poptArgType(opt) ((opt)->argInfo & POPT_ARG_MASK) +#define poptArgType(_opt) ((_opt)->argInfo & POPT_ARG_MASK) +#define F_ISSET(_opt, _FLAG) ((_opt)->argInfo & POPT_ARGFLAG_##_FLAG) +#define LF_ISSET(_FLAG) (argInfo & POPT_ARGFLAG_##_FLAG) +#define CBF_ISSET(_opt, _FLAG) ((_opt)->argInfo & POPT_CBFLAG_##_FLAG) /* XXX sick hack to preserve pretense of a popt-1.x ABI. */ #define poptSubstituteHelpI18N(opt) \ |