summaryrefslogtreecommitdiff
path: root/include/apr_getopt.h
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2000-04-16 04:46:56 +0000
committerRyan Bloom <rbb@apache.org>2000-04-16 04:46:56 +0000
commit8d7cc60c98970f66eccdc57ec29d10d855a099b7 (patch)
tree7d4506f999ed4d9bb53c0fb15ab4154d5d97d033 /include/apr_getopt.h
parent15a9af1ee2581ec698f7d5988e6b928f48755c58 (diff)
downloadapr-8d7cc60c98970f66eccdc57ec29d10d855a099b7.tar.gz
Change the format for APR function documentation. This uses the perldoc
scripts to generate either plain text, html, or any other format perldoc can generate. This also fixes the comments to say ap_pool instead of ap_context. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59869 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_getopt.h')
-rw-r--r--include/apr_getopt.h41
1 files changed, 23 insertions, 18 deletions
diff --git a/include/apr_getopt.h b/include/apr_getopt.h
index 044c45760..f9ae7603f 100644
--- a/include/apr_getopt.h
+++ b/include/apr_getopt.h
@@ -63,24 +63,29 @@ API_VAR_IMPORT int
API_VAR_IMPORT char *
ap_optarg; /* argument associated with option */
-/* ***APRDOC********************************************************
- * ap_status_t ap_getopt(ap_int32_t nargc, char *const *nargv,
- * const char *ostr, ap_int32_t *rv, ap_context_t *cont)
- * Parse the command line options passed to the program.
- * arg 1) The number of arguments passed to ap_getopt to parse
- * arg 2) The array of command line options to parse
- * arg 3) A string of characters that are acceptable options to the program.
- * characters followed by ":" are required to have an option
- * associated
- * arg 4) The next option found. There are four potential values for
- * this variable on exit. They are:
- * APR_EOF -- No more options to parse
- * APR_BADCH -- Found a bad option character
- * APR_BADARG -- Missing parameter for the found option
- * Other -- The next option found.
- * arg 5) The context to operate on.
- * NOTE: Arguments 2 and 3 are most commonly argc and argv from
- * main(argc, argv)
+/*
+
+=head1 ap_status_t ap_getopt(ap_int32_t nargc, char *const *nargv, const char *ostr, ap_int32_t *rv, ap_pool_t *cont)
+
+B<Parse the command line options passed to the program.>
+
+ arg 1) The number of arguments passed to ap_getopt to parse
+ arg 2) The array of command line options to parse
+ arg 3) A string of characters that are acceptable options to the program.
+ characters followed by ":" are required to have an option
+ associated
+ arg 4) The next option found. There are four potential values for
+ this variable on exit. They are:
+ APR_EOF -- No more options to parse
+ APR_BADCH -- Found a bad option character
+ APR_BADARG -- Missing parameter for the found option
+ Other -- The next option found.
+ arg 5) The pool to operate on.
+
+B<NOTE>: Arguments 2 and 3 are most commonly argc and argv from
+ main(argc, argv)
+
+=cut
*/
ap_status_t ap_getopt(ap_int32_t nargc, char *const *nargv, const char *ostr,
ap_int32_t *rv, ap_pool_t *cont);