From 9bc1b70c4c408702303d7e9c2f870a537752aa0e Mon Sep 17 00:00:00 2001 From: David Reid Date: Sat, 19 May 2001 13:53:06 +0000 Subject: More cleanup and improvement of the memory code... - general code clean up (from Sander Striker) - add a type flag to the cleanup's we register (from Sander Striker) - add an extra error code to signify you asked for a function that isn't available in a memory system - add the new memory codes into errorcodes.c so we can report the errors (missed first time around) The types for the cleanups should allow us to be much more selective in the cleanup we call. Sander has some work in progress that will use these to provide a better feel of how they'll work. Submitted by: Sander Striker Reviewed by: David Reid git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61660 13f79535-47bb-0310-9956-ffa450edef68 --- misc/unix/errorcodes.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'misc') diff --git a/misc/unix/errorcodes.c b/misc/unix/errorcodes.c index 2e8099116..1a12b9a34 100644 --- a/misc/unix/errorcodes.c +++ b/misc/unix/errorcodes.c @@ -166,7 +166,14 @@ static char *apr_error_string(apr_status_t statcode) return "The given path was above the root path"; case APR_EBADPATH: return "The given path misformatted or contained invalid characters"; - default: + case APR_EMEMSYS: + return "The memory system passed does not exist"; + case APR_EMEMFUNC: + return "The function requested is not available in the memory " + "system used"; + case APR_ENOCLEANUP: + return "The requested cleanup function does not exist"; + default: return "Error string not specified yet"; } } -- cgit v1.2.1