summaryrefslogtreecommitdiff
path: root/poptint.h
diff options
context:
space:
mode:
authorjbj <jbj>2008-02-13 08:27:00 +0000
committerjbj <jbj>2008-02-13 08:27:00 +0000
commit79cde3f53166decc012aa4178eee8b2f510f4480 (patch)
treea3b1b25c389676f61e91ba06a9c7a6096613dbb5 /poptint.h
parentc73cffed187772be4b680f961c38ade3e3b32418 (diff)
downloadlibpopt-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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/poptint.h b/poptint.h
index 80186eb..180e50c 100644
--- a/poptint.h
+++ b/poptint.h
@@ -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) \