summaryrefslogtreecommitdiff
path: root/strings
Commit message (Collapse)AuthorAgeFilesLines
...
* Add .deps to cvsignore since APR may now generate .deps files.jerenkrantz2002-04-221-0/+1
| | | | | | | (somehow CVS ignored updating these on the last commit.) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63287 13f79535-47bb-0310-9956-ffa450edef68
* Allow VPATH builds to properly generate build dependencies. This requiresjerenkrantz2002-04-221-0/+2
| | | | | | | | | | | | srcdir to always be available in a Makefile, so we need to stop adding this only when we use VPATH. Change the dependency generation to use .deps instead of appending to the Makefile. This makes us consistent with the dependency style of httpd-2.0. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63286 13f79535-47bb-0310-9956-ffa450edef68
* Fix a problem where we were walking off the end of the string.jwoolley2002-04-051-8/+8
| | | | | | | | Discovered by: Brad Nicholes Submitted by: Cliff Woolley, Jim Jagielski git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63226 13f79535-47bb-0310-9956-ffa450edef68
* clean up the use of apr_sockaddr_t (stay out of family-specifictrawick2002-03-151-3/+2
| | | | | | | struct sockaddr* as much as possible) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63137 13f79535-47bb-0310-9956-ffa450edef68
* PR: 9932 (apache 1.3)jim2002-03-141-0/+4
| | | | | | | | | | Obtained from: Submitted by: Joshua Colvin <joshua@jammed.com> Reviewed by: Martin Kraemer, Jim Jagielski Bring up fix from 1.3 patch git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63121 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.fielding2002-03-134-4/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* Someone wasn't minding the p's and q's ... forgot to advance over awrowe2002-02-271-22/+17
| | | | | | | | | trailing quote - so we always bombed by allocating too few entries in the char* vector. Also, many use cases will presume a trailing NULL entry in the argv, need to put one there. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63067 13f79535-47bb-0310-9956-ffa450edef68
* Toss an assert call that only checks input parameters validity which isjerenkrantz2002-02-121-7/+0
| | | | | | | not our style. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62960 13f79535-47bb-0310-9956-ffa450edef68
* WinCE port from Mladen Turk <mturk@mappingsoft.com>wrowe2002-02-121-3/+6
| | | | | | | I think this question deserves an answer - is this assert legit???????? git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62959 13f79535-47bb-0310-9956-ffa450edef68
* Formatting cleanup only - I'm now convince this code is clean - but somewrowe2002-02-121-2/+2
| | | | | | | | products may identify the va_args from apr_Xsprintf() calls as living on another fn's stack [true] and toss up memory violations [not true.] git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62948 13f79535-47bb-0310-9956-ffa450edef68
* You know the style was horrendous when it requires *two* passes to getjerenkrantz2002-02-051-43/+43
| | | | | | | a decent style. Sorry. No functional changes. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62914 13f79535-47bb-0310-9956-ffa450edef68
* Style changes - tabs to spaces primarily.jerenkrantz2002-02-051-679/+683
| | | | | | | | | No functional changes. (This file is a stylistic nightmare to read. We're seeing an OS/X stack smash with SVN. We need a reformat so we can understand it.) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62913 13f79535-47bb-0310-9956-ffa450edef68
* When in Rome... or better put... eat our own dogfood.wrowe2001-12-131-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62640 13f79535-47bb-0310-9956-ffa450edef68
* This patch adds a function apr_strmemdup(), which works likewrowe2001-12-021-0/+13
| | | | | | | | | | | apr_pstrndup() except that it's optimized for the case where the caller can guarantee that the length of the supplied string is >= 'n' Submitted by: Brian Pane <bpane@pacbell.net> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62594 13f79535-47bb-0310-9956-ffa450edef68
* this time make it actually an optimizationianh2001-09-281-1/+0
| | | | | | | ;( git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62380 13f79535-47bb-0310-9956-ffa450edef68
* optimize apr_pstrcat by storing the lengths of the first 6 stringsianh2001-09-281-1/+18
| | | | | | | | | | (changed const to #define as suggested, and so that it compiles on NT) Submitted by: Brian Pane <bpane@pacbell.net> Reviewed by: Ian Holsman git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62379 13f79535-47bb-0310-9956-ffa450edef68
* Silence warnings:jwoolley2001-07-261-7/+5
| | | | | | | | - sprintf() was used without including stdio.h (fixed by using apr_want.h) - too many arguments to sprintf() for the format string given git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62025 13f79535-47bb-0310-9956-ffa450edef68
* Replace the very limited-use ap_send_size with apr_strfsize(), whichwrowe2001-07-251-0/+34
| | | | | | | | | works within a fixed buffer. I'm open to using the old ap_send_size() text formatting, but this result is one character shorter in size and equally readable. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62023 13f79535-47bb-0310-9956-ffa450edef68
* Yes, this is a bogus cast. It's necessary since win32 figures out thewrowe2001-07-251-1/+1
| | | | | | | | same calculation in apr_ltoa() is safe, but can't figure this out for an int64 value :( git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62020 13f79535-47bb-0310-9956-ffa450edef68
* Change the size_t into apr_size_t (It causes problems on Solaris with gcc).jfclere2001-07-251-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62018 13f79535-47bb-0310-9956-ffa450edef68
* Fix build breakage due to mismatch between function and prototypejwoolley2001-07-251-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62016 13f79535-47bb-0310-9956-ffa450edef68
* Reduce CPU consumption in conv_10 function, used to format "%d" by apr_*printfgregames2001-07-241-0/+72
| | | | | | | | | | | | | | | | | | | | This includes two changes to APR: * new functions apr_itoa, apr_ltoa, and apr_off_t_toa that provide itoa-type functionality based on pools * Inline code in inet_ntop4 to replace sprintf for converting binary IP addresses into dotted-decimal format and two changes to Apache: * use the apr_itoa functions in setting the content length, in place of apr_psprintf * use the apr_itoa functions to replace frequent uses of 'sprintf("%d",...)' in mod_log_config. Submitted by: Brian Pane Reviewed by: Dean Gaudet, Greg Ames git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62015 13f79535-47bb-0310-9956-ffa450edef68
* make termination of apr_pstrcat-ed string a bit faster (from jeff trawick)dougm2001-06-201-1/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61787 13f79535-47bb-0310-9956-ffa450edef68
* apr_pstrcat() optimizations:dougm2001-06-191-3/+4
| | | | | | | | | | | | reuse calculated strlen() length use memcpy instead of strcpy PR: Obtained from: Submitted by: dougm Reviewed by: jeff trawick, ryan bloom, bill stoddard git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61783 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_strtok(), a thread-safe flavor of strtok() which has thetrawick2001-05-232-1/+96
| | | | | | | same interface as strtok_r(). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61673 13f79535-47bb-0310-9956-ffa450edef68
* Sing, "we are apr"... and make all hash functions accept apr_ssize_twrowe2001-05-161-4/+4
| | | | | | | | if we are going to bury -1 flags (I'd prefer the flag cast to apr_size_t and use that value throughout the hash api, however.) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61649 13f79535-47bb-0310-9956-ffa450edef68
* * apr_pstrndup: Check string length with memchr instead of strlen sobrane2001-05-101-4/+18
| | | | | | | | that s doesn't have to be null-terminated. * Provide memchr implementation if !APR_HAS_MEMCHR. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61606 13f79535-47bb-0310-9956-ffa450edef68
* Patch to allow %qd within apr_snprintf, but handle the platform specificwrowe2001-05-031-1/+7
| | | | | | | APR_INT64_T_FMT string regardless (e.g. older lld or win32 I64d). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61584 13f79535-47bb-0310-9956-ffa450edef68
* Get apr_snprintf() compiling again on platforms without isnan() ortrawick2001-04-271-3/+8
| | | | | | | | | isinf(). (Such platforms include Solaris and OS/390.) Submitted by: Justin Erenkrantz <jerenkrantz@ebuilt.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61557 13f79535-47bb-0310-9956-ffa450edef68
* Make ap_snprintf() more robust against border situations withmartin2001-04-271-10/+20
| | | | | | | | | floating point numbers. Submitted by: Lukas Schroeder <lukas@edeal.de> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61555 13f79535-47bb-0310-9956-ffa450edef68
* Fix the hosed #ifdef APR_HAVE_FOO_H tests, the #if HAVE_ tests, andwrowe2001-02-253-8/+8
| | | | | | | also cleanup s/#ifdef HAVE_FOO_H/#if APR_HAVE_FOO_H/ whrere appropriate. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61303 13f79535-47bb-0310-9956-ffa450edef68
* Clean up a warning.wrowe2001-02-231-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61283 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001fielding2001-02-163-3/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61235 13f79535-47bb-0310-9956-ffa450edef68
* *) rename apr_memdup() to apr_pmemdup()gstein2001-02-121-8/+7
| | | | | | | *) optimize the allocation size in apr_pstrndup() git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61222 13f79535-47bb-0310-9956-ffa450edef68
* ap_pstrndup could have caused out-of-bounds memory accesses (this is aben2001-02-111-2/+7
| | | | | | | theoretical problem that I happened to notice). Only lightly tested. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61215 13f79535-47bb-0310-9956-ffa450edef68
* Add memdup function.ben2001-02-111-0/+11
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61214 13f79535-47bb-0310-9956-ffa450edef68
* Moved the prototypes for apr_snprintf and apr_vsnprintf to therbb2001-02-111-0/+1
| | | | | | | | apr_strings.h header, from apr_lib.h. This location makes more sense. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61205 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakedougm2001-02-081-1/+1
| | | | | | | | | | | see: http://apr.apache.org/~dougm/apr_rename.pl PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61194 13f79535-47bb-0310-9956-ffa450edef68
* Eliminate some missing prototype warnings.fielding2001-01-281-0/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61145 13f79535-47bb-0310-9956-ffa450edef68
* Add remaining APR_DECLARE()s to all headers. Conditionally addedwrowe2001-01-181-2/+4
| | | | | | | | | | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@61072 13f79535-47bb-0310-9956-ffa450edef68
* Libtool-ize APR.gstein2001-01-092-28/+13
| | | | | | | | | | | | | | | | | To simplify the task, I also shifted the Makefiles to include a rules.mk (based on APRUTIL's with a few tweaks). Still needs some work to remove the INCLUDES setup in all the Makefiles (these can be shared). buildconf now does more work (and generates some output) aclocal.m4 is based on a number of M4 files, rather than standalone apr/test/ has been updated but is probably broken in a few ways. objs/ is now gone. we link directly from the .lo files. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61037 13f79535-47bb-0310-9956-ffa450edef68
* These two patches for apr and apr-util fix compile warnings on Solaris fortrawick2000-12-221-1/+1
| | | | | | | | | | str* and mem* functions. This fixes all of them. APR_HAVE_STRINGS_H is now defined in apr.h. Submitted by: Dale Ghent <daleg@elemental.org> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60987 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup a group of apr compil warnings on Solarisrbb2000-12-211-0/+3
| | | | | | | Submitted by: Dale Ghent <daleg@elemental.org> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60978 13f79535-47bb-0310-9956-ffa450edef68
* apr_snprintf()'s %pI format string now takes apr_sockaddr_t *trawick2000-12-161-8/+26
| | | | | | | instead of sockaddr_in *. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60958 13f79535-47bb-0310-9956-ffa450edef68
* Move apr_private.h.in from the include directory to the arch/unixrbb2000-12-081-1/+2
| | | | | | | | | | | directory. This removes all temptation to include apr_private.h from outside of APR, because it just isn't available. This also highlighted a bunch of holes in our header file setup. Basically, just directories that were never migrated to the curret setup. Submitted by: Will Rowe and Ryan Bloom git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60919 13f79535-47bb-0310-9956-ffa450edef68
* Get NULL defined on some systems (e.g., FreeBSD 3.4).trawick2000-11-271-0/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60800 13f79535-47bb-0310-9956-ffa450edef68
* Make the APR headers sane.gstein2000-11-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | *) 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: http://svn.apache.org/repos/asf/apr/apr/trunk@60796 13f79535-47bb-0310-9956-ffa450edef68
* This patch removes the dependencies from Makefile.in. Dependenciestrawick2000-11-151-51/+2
| | | | | | | | | | | | | | | | | will not be checked into CVS, as they are added to Makefile when the user runs "make depend." The exact mechanism for building dependencies is moved to a script called mkdep.sh in the APR helpers directory. Folks are free to make the mechanism more general (i.e., work on systems without gcc -MM), but for now it still requires gcc -MM. The patch also removes some commented out variable definitions and rules. BeOS- and OS/2-specific makefiles have not been updated. I'll post a patch to those or go ahead and commit them later, but David and Brian will get to test them. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60727 13f79535-47bb-0310-9956-ffa450edef68
* Clean up a Makefilerbb2000-11-091-2/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60658 13f79535-47bb-0310-9956-ffa450edef68
* don't print anything for "%n"gstein2000-11-021-4/+8
| | | | | | | | | Submitted by: Karl Fogel <kfogel@collab.net< Message-ID: <200010302044.e9UKiuj09461@galois.collab.net> Reviewed by: Greg Stein git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60619 13f79535-47bb-0310-9956-ffa450edef68