summaryrefslogtreecommitdiff
path: root/include/apr_getopt.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespaces.Ivan Zhakov2022-11-191-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905407 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.Joe Orton2006-08-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.Joe Orton2006-08-031-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* Improve some documentation comments.Garrett Rooney2006-02-131-3/+5
| | | | | | | | | | | | | | | | | Based on a patch from: Julian Foad <julianfoad btopenworld.com> * include/apr_getopt.h (apr_getopt_err_fn_t): Clarify, mention what the arg parameter is. (apr_getopt_init): Clarify how the error function is used. * include/apr_poll.h (apr_poll): Note that nsds is an output parameter. * include/apr_support.h (apr_wait_for_io_or_timeout): Document the arguments. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@377527 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-041-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0Justin Erenkrantz2004-02-131-49/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* Rebalance our exposed headers such that everything is nested properlyWilliam A. Rowe Jr2003-03-051-8/+9
| | | | | | | | | | | | | | between extern "C" blocks and doxygen blocks, that we never include other headers within our own header's extern "C" block, that we always tag the entire file contents for doxygen (within the APR_HEADER_H only-once block), and generally clean up doxygen so that it is all consistent and generates respectable (although not yet 'great') results. Major TODO after 0.9.2 releases; fill in the apr.h APR_HAVE/APR_HAS and apr_type_t documentation!!! git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64397 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.Thom May2003-01-011-1/+1
| | | | | | | No functional changes git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* Go through doxygen output and remove as many errors and warnings as I could.Justin Erenkrantz2002-11-101-0/+3
| | | | | | | | | | | No code changes. (Note removal of #define duplication in apr_poll.h/apr_network_io.h of the APR_POLL* values. This appears to have been an oversight and is now just in apr_poll.h) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64009 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* some more Doxygen goodnessIan Holsman2002-02-151-0/+3
| | | | | | | still alot more #defines to go git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62990 13f79535-47bb-0310-9956-ffa450edef68
* Small change that will allow Subversion to better document itsBen Collins-Sussman2002-01-171-0/+2
| | | | | | | | | | | command-line switches. Shouldn't break any existing users of this structure. Reviewed by Greg Stein <gstein@lyra.org> * apr_getopt.h (apr_getopt_option_t): add a new 'description' field to the end of the structure. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62804 13f79535-47bb-0310-9956-ffa450edef68
* Change getopt_t ->err flag to a real ->errfn that mirrors fprintf,William A. Rowe Jr2001-11-291-2/+7
| | | | | | | | | | | introduce an ->errarg to pass the first void* (e.g. stderr by default), and change apr_getopt_init() to initialize those to fprintf(stderr, so the -default- behavior is unchanged. This is necessary to get away from unwise assumptions within library code. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62580 13f79535-47bb-0310-9956-ffa450edef68
* Next batch of moving the docs from ScanDoc to DoxyGen.Ryan Bloom2001-08-141-6/+10
| | | | | | | Submitted by: Ian Holsman <ianh@cnet.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62158 13f79535-47bb-0310-9956-ffa450edef68
* GCC's -Wshadow option complains about "optarg" shadowing another definition.Greg Stein2001-06-011-7/+8
| | | | | | | | | | This has started showing up with the recent POSIX/BSD/whatever preprocessor defines for the R/W lock stuff. Name the argument something else to shut up GCC. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61687 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001Roy T. Fielding2001-02-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61235 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakeDoug MacEachern2001-02-081-6/+6
| | | | | | | | | | | see: http://apr.apache.org/~dougm/apr_rename.pl PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61194 13f79535-47bb-0310-9956-ffa450edef68
* be consistent with 'const char * const *' spacing (noticed when parsing the ↵Doug MacEachern2001-02-021-1/+1
| | | | | | | | | | | | tree with C::Scan) PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61179 13f79535-47bb-0310-9956-ffa450edef68
* Add remaining APR_DECLARE()s to all headers. Conditionally addedWilliam A. Rowe Jr2001-01-181-0/+9
| | | | | | | | | | | | | | | | | | | | APR_DECLARES() to the sources, based on compilation emits (there are many that should be changed eventually, but the compiler will emit errors if those sources are added for win32). This change also splits libapr from apr, so the two projects are compiled seperately. Both .dsp files must be kept up-to-date with source file revisions. Finally, libapr.def is no longer needed - so it is gone. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61072 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup getopt's docs.Ryan Bloom2000-12-041-4/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60874 13f79535-47bb-0310-9956-ffa450edef68
* Add an extra const into the getopt functions. We never attempt to modify anyGreg Stein2000-11-291-1/+1
| | | | | | | | of the data, so the const is proper. This also allows clients to pass const data in. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60812 13f79535-47bb-0310-9956-ffa450edef68
* Make the APR headers sane.Greg Stein2000-11-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | *) Reduce the dependencies between APR headers. This assists APR clients who generate dependencies, and (used to) pick up "all" of the APR headers. Basically, this was trimming back the headers to just what was needed. Some unneeded system headers were removed, too. The most common headers to put back in were: apr.h, apr_pools.h, and apr_errno.h. *) move apr_pool_t declaration and a few pool functions from apr_general.h to apr_pools.h. *) move kill_conditions and process_chain from apr_pools.h to apr_thread_proc.h. *) move apr_note_subprocess() from apr_general.h to apr_thread_proc.h *) add stdio.h to apr_pools.c (compensate for removal from apr_general.h) *) add apr_lib.h to apr_strnatcmp.c (compensate for apr_strings.h no longer including apr_lib.h) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60796 13f79535-47bb-0310-9956-ffa450edef68
* (apr_getopt_t): doc clarification.Karl Fogel2000-11-251-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60791 13f79535-47bb-0310-9956-ffa450edef68
* More changes from Greg Hudson <ghudson@mit.edu>, w/ small doc tweaksKarl Fogel2000-11-251-11/+11
| | | | | | | | | | | | | | | | | | from Karl Fogel <kfogel@collab.net>: (apr_getopt_option_t): rename from apr_longopt_t, because more accurate. (apr_initopt, apr_getopt_long, reverse): take "char *const *argv", act on a copy instead of the original, since we may permute the array. This is a compromise. The parameter must be compatible with the argv value passed to main, since that is the primary purpose of the function. But as has been pointed out, people might want to use the function with arrays other than argv, and we shouldn't touch the caller's data. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60790 13f79535-47bb-0310-9956-ffa450edef68
* Changes from Greg Hudson <ghudson@mit.edu> (with minor meddling fromKarl Fogel2000-11-251-38/+32
| | | | | | | | | | | | | | | | | | | | | | Greg Stein <gstein@lyra.org> and Karl Fogel <kfogel@collab.net>): Simplify apr_getopt_long interface and add support for interleaving options with arguments. (apr_getopt_t, apr_initopt): Add "interleave" settable flag and "skip_start" and "skip_end" fields to keep track of skipped non-option arguments. Change argv to a char ** so that we can permute it. (apr_long_option_t): Renamed to apr_longopt_t. (apr_longopt_t): Rename "val" to "optch" and use for the short option name as well as the result. "name" can now be NULL, and a structure with an "optch" of 0 now terminates the list. (reverse, permute, serr, cerr): New helper functions. (apr_getopt_long): Rewrite for simplified interface and for interleaved option support. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60788 13f79535-47bb-0310-9956-ffa450edef68
* include/apr_getopt.h:Greg Stein2000-11-171-4/+53
| | | | | | | | | | | | | | | | | | | *) Added new struct and typedef for apr_getopt_long_t. *) Added prototype and inline documentation for new apr_getopt_long function. misc/unix/getopt.c: *) Added new apr_getopt_long function to handle long option processing. *) Added static method pretty_path() to avoid duplicating code *) modified apr_getopt to use pretty_path. Removed cut-and-paste code as well as char *p. Submitted by: B. W. Fitzpatrick <fitz@red-bean.com> Reviewed by: Greg Stein git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60752 13f79535-47bb-0310-9956-ffa450edef68
* Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbolsWilliam A. Rowe Jr2000-10-161-2/+2
| | | | | | | | | | for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper) and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE. All _VAR_ flavors changes to _DATA to be absolutely clear. Thank you Greg, for the most obvious suggestion. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60587 13f79535-47bb-0310-9956-ffa450edef68
* Add some docs to APR.Ryan Bloom2000-10-091-10/+26
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60569 13f79535-47bb-0310-9956-ffa450edef68
* Fix some warnings from initopt and getopt.Ryan Bloom2000-08-171-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60500 13f79535-47bb-0310-9956-ffa450edef68
* Tweak apr_getopt() and its use in ab to avoid compiler warnings.Jeff Trawick2000-08-101-3/+3
| | | | | | | | | (Note: apr_initopt() and/or its callers still need tweaking.) Submitted by: Bill Rowe Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60496 13f79535-47bb-0310-9956-ffa450edef68
* Doc it correctly, even if the const'ness is wrong.William A. Rowe Jr2000-08-091-2/+2
| | | | | | | | | | PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60495 13f79535-47bb-0310-9956-ffa450edef68
* Commit two fixes while I'm considering Jeff's comments.William A. Rowe Jr2000-08-091-2/+2
| | | | | | | | | | | | | apr_getopt_t->cont is not really necessary, but I don't yet see a reason to kill it outright. Might come in handy later. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60494 13f79535-47bb-0310-9956-ffa450edef68
* Eliminate apr_opt*** symbols from the namespace, and allow parallelWilliam A. Rowe Jr2000-08-091-25/+37
| | | | | | | | | | | | | | | | | | | or multiple argument parsers to play with the argument list. This change forces the user to call apr_initopt followed by the usual calls to apr_getopt, with one exception. The argument to a switch (-x) option is passed to apr_getopt as the &((const char *) arg). Also, the old int rv status/switch value is now simply the switch value, and the status is returned as the ap_status_t result. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60491 13f79535-47bb-0310-9956-ffa450edef68
* Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...William A. Rowe Jr2000-08-061-5/+5
| | | | | | | | | | | | | see src/lib/apr/apr_compat.h for most details. Also a few minor nits to get Win32 to build. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60481 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_Doug MacEachern2000-08-021-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
* Update apr_getopt.h's documentation to use ScanDocRyan Bloom2000-07-231-23/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60413 13f79535-47bb-0310-9956-ffa450edef68
* PR:William A. Rowe Jr2000-05-281-2/+2
| | | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Fix the last of the tags APR_EXPORT_VAR and APR_IMPORT_VAR to the accepted APR_VAR_EXPORT and APR_VAR_IMPORT. This patch finally includes the apr.h.in file (newly added to my grepper). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60111 13f79535-47bb-0310-9956-ffa450edef68
* PR:William A. Rowe Jr2000-05-261-2/+3
| | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Just a few functions missing linkage specs. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60103 13f79535-47bb-0310-9956-ffa450edef68
* Mass update of API_IMPORT/EXPORT symbols TO APR_ symbols.William A. Rowe Jr2000-05-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | APR is -NOT- the Apache server, so the import/export declations cannot use the same defined symbols. Other minor changes API_THREAD_PROC is now APR_THREAD_PROC. API_VAR_IMPORT/EXPORT are now APR_IMPORT/EXPORT_VAR, to allow easier grepping. The new compilation switches APR_STATIC and APR_EXPORT_SYMBOLS allow the builder to select either static linked or the creation of the export symbols for APR. The aprlib and aprlibdll .dsp projects now include the later symbol. More cleanups from recent commits are still needed, as well as a thorough review of the distinction between APR_EXPORT and APR_EXPORT_NONSTD. The later is used only for pure __cdecl required functions, such as variable arguments (not va array arguments, those are not an issue.) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60101 13f79535-47bb-0310-9956-ffa450edef68
* Change the format for APR function documentation. This uses the perldocRyan Bloom2000-04-161-18/+23
| | | | | | | | | 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
* Change ap_context_t to ap_pool_t. This compiles, runs, and serves pagesRyan Bloom2000-04-141-1/+1
| | | | | | | on Linux, but probably breaks somewhere. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59856 13f79535-47bb-0310-9956-ffa450edef68
* more documentation movementdgaudet2000-04-141-0/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59841 13f79535-47bb-0310-9956-ffa450edef68
* Update to Apache Software License version 1.1Roy T. Fielding2000-03-311-32/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59754 13f79535-47bb-0310-9956-ffa450edef68
* Fix more docs and change some parameter order on ap_getopt. This makesRyan Bloom2000-03-141-2/+2
| | | | | | | ap_getopt look more like the rest of the apor functions. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59703 13f79535-47bb-0310-9956-ffa450edef68
* Fix all the License issues. Including:Ryan Bloom2000-03-101-9/+9
| | | | | | | | | s/Apache Group/Apache Software Foundation/ s/1999/2000/ s/Sascha's license/ASF license git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59688 13f79535-47bb-0310-9956-ffa450edef68
* Clean up the getopt stuff a bit. Basically, I am removing the #define's,Ryan Bloom1999-11-221-17/+9
| | | | | | | | and changing the names in the getopt.c file so that we are sure there is no namespace collision between regular getopt's, and APR's getopt. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59483 13f79535-47bb-0310-9956-ffa450edef68
* Under Linux, I always got aMartin Kraemer1999-11-201-0/+80
"libc.so.6: Warning: definition of 'optarg' overriding common libapr(getopt.o): warning: common is here" To make matters cleaner, I added an apr_getopt.h to go with the various copies of getopt.c in the os subdirectories. In this header, I renamed all getopt-API functions to "apr_<apiname>". This avoids name clashes with system libraries. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59481 13f79535-47bb-0310-9956-ffa450edef68