summaryrefslogtreecommitdiff
path: root/popt.h
diff options
context:
space:
mode:
authorjbj <jbj>2001-10-16 17:42:19 +0000
committerjbj <jbj>2001-10-16 17:42:19 +0000
commitcf0196a9be89d3c51adf47852354833a9b926387 (patch)
tree3af672517e065d99d6833466b1dab03ab7de412b /popt.h
parent8a4b514318c016cb0c0bf2f66297faad2a943c0f (diff)
downloadlibpopt-cf0196a9be89d3c51adf47852354833a9b926387.tar.gz
Factor -type problems into explicit code annotations.
Diffstat (limited to 'popt.h')
-rw-r--r--popt.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/popt.h b/popt.h
index 436f9f4..bb6a867 100644
--- a/popt.h
+++ b/popt.h
@@ -9,10 +9,6 @@
#ifndef H_POPT
#define H_POPT
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <stdio.h> /* for FILE * */
#define POPT_OPTION_DEPTH 10
@@ -184,6 +180,11 @@ enum poptCallbackReason { POPT_CALLBACK_REASON_PRE,
POPT_CALLBACK_REASON_POST,
POPT_CALLBACK_REASON_OPTION };
+#ifdef __cplusplus
+extern "C" {
+#endif
+/*@-type@*/
+
/** \ingroup popt
* Table callback prototype.
* @param con context
@@ -437,6 +438,7 @@ int poptStrippedArgv(poptContext con, int argc, char ** argv)
/*@modifies *argv @*/;
/*@=fcnuse@*/
+/*@=type@*/
#ifdef __cplusplus
}
#endif