summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authordreid <dreid@13f79535-47bb-0310-9956-ffa450edef68>2001-05-19 13:53:06 +0000
committerdreid <dreid@13f79535-47bb-0310-9956-ffa450edef68>2001-05-19 13:53:06 +0000
commitccc2d11cf38a23619cb90bc239782c3310b9f851 (patch)
treefc3dfad9af34f717e04032108249b5c1f60b436f /misc
parent62971d0c948b7c65d35b803f25d7173305534ad3 (diff)
downloadlibapr-ccc2d11cf38a23619cb90bc239782c3310b9f851.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: http://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";
}
}