summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2001-01-02 01:48:02 +0000
committerRyan Bloom <rbb@apache.org>2001-01-02 01:48:02 +0000
commit6ae1b02c97776c5ed2f1db213b3e53f0281f1d80 (patch)
treefd4b601e3ea0217e0fca657a7690f33fb5a0bd98
parent62083d491103e2b9c7b81b6c2281a421dfa570dc (diff)
downloadapr-6ae1b02c97776c5ed2f1db213b3e53f0281f1d80.tar.gz
Begin to update APRDesign
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61004 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--APRDesign11
1 files changed, 8 insertions, 3 deletions
diff --git a/APRDesign b/APRDesign
index 8334732f5..70472d2f5 100644
--- a/APRDesign
+++ b/APRDesign
@@ -128,7 +128,7 @@ Those structures are then typedef'ed in an external header file. For example
in file_io/unix/fileio.h:
struct ap_file_t {
- ap_context_t *cntxt;
+ apr_pool_t *cntxt;
int filedes;
FILE *filehand;
...
@@ -145,8 +145,13 @@ The only exception to the incomplete type rule can be found in apr_portable.h.
This file defines the native types for each platform. Using these types, it
is possible to extract native types for any APR type.
-You may notice the ap_context_t field. All APR types have this field. This
-type is used to allocate memory within APR.
+You may notice the apr_pool_t field. Most APR types have this field. This
+type is used to allocate memory within APR. Any APR type that has this
+field should place this field first. If it is important to retrieve the
+pool from an APR variable, it is possible to use the macro APR_GET_POOL to
+accomplish this. This macro will only work on types that actually have
+a pool in them as the first field. On any other type, this Macro will cause
+a seg fault as soon as the pool is used.
New Function