diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2001-01-02 01:48:02 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2001-01-02 01:48:02 +0000 |
commit | 30959f607e25231622a106f3015a50822677825a (patch) | |
tree | fd4b601e3ea0217e0fca657a7690f33fb5a0bd98 /APRDesign | |
parent | 6eb54b95f709598bf9c6084b041728e76aed2ac3 (diff) | |
download | libapr-30959f607e25231622a106f3015a50822677825a.tar.gz |
Begin to update APRDesign
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61004 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'APRDesign')
-rw-r--r-- | APRDesign | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |