summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbj <jbj>2014-11-11 18:51:50 +0000
committerjbj <jbj>2014-11-11 18:51:50 +0000
commitaf2231fac0d8fe8a5664e2c137d6eb84edfcce98 (patch)
tree19c5e734483ca856306802442520313454606749
parentc224abf28f4ff9bbf292908324359cb5905addf8 (diff)
downloadlibpopt-af2231fac0d8fe8a5664e2c137d6eb84edfcce98.tar.gz
- popt: include external symbols within extern "C" scope.
-rw-r--r--popt.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/popt.h b/popt.h
index 9d01747..6489fa7 100644
--- a/popt.h
+++ b/popt.h
@@ -167,6 +167,10 @@ typedef struct poptItem_s {
*/
/*@{*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* Empty table marker to enable displaying popt alias/exec options.
*/
@@ -220,9 +224,6 @@ enum poptCallbackReason {
};
/*@=exportconst@*/
-#ifdef __cplusplus
-extern "C" {
-#endif
/*@-type@*/
/** \ingroup popt
@@ -230,8 +231,8 @@ extern "C" {
* @param con context
* @param reason reason for callback
* @param opt option that triggered callback
- * @param arg @todo Document.
- * @param data @todo Document.
+ * @param arg arg value
+ * @param data callback data
*/
typedef void (*poptCallbackType) (poptContext con,
enum poptCallbackReason reason,