summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDavid Reid <dreid@apache.org>2001-05-19 13:53:06 +0000
committerDavid Reid <dreid@apache.org>2001-05-19 13:53:06 +0000
commit9bc1b70c4c408702303d7e9c2f870a537752aa0e (patch)
treefc3dfad9af34f717e04032108249b5c1f60b436f /misc
parent286a780a1eca8368e77e6346c5f3e6d1194f6e2c (diff)
downloadapr-9bc1b70c4c408702303d7e9c2f870a537752aa0e.tar.gz
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 <striker@samba-tng.org> Reviewed by: David Reid git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61660 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc')
-rw-r--r--misc/unix/errorcodes.c9
1 files changed, 8 insertions, 1 deletions
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";
}
}