You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by ge...@apache.org on 2003/09/04 18:39:44 UTC

cvs commit: modperl-2.0/xs/maps apr_functions.map

geoff       2003/09/04 09:39:44

  Modified:    xs/maps  apr_functions.map
  Log:
  remove deprecated apr_pool_sub_make
  
  Revision  Changes    Path
  1.57      +0 -1      modperl-2.0/xs/maps/apr_functions.map
  
  Index: apr_functions.map
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/xs/maps/apr_functions.map,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- apr_functions.map	29 Aug 2003 14:30:59 -0000	1.56
  +++ apr_functions.map	4 Sep 2003 16:39:44 -0000	1.57
  @@ -166,7 +166,6 @@
   !apr_pool_cleanup_run
   -apr_pool_cleanup_null
    apr_pool_cleanup_register | mpxs_ | p, SV *:cv, SV *:arg=Nullsv
  - apr_pool_sub_make
   !apr_pool_note_subprocess
   -apr_palloc
   >apr_palloc_debug
  
  
  

Re: cvs commit: modperl-2.0/xs/maps apr_functions.map

Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> Currently APR::Pool::new() can create only parent pools, since it calls 
> apr_pool_create which is defined as:
> 
> #define apr_pool_create(newpool, parent) \
>     apr_pool_create_ex(newpool, parent, NULL, NULL)
> 
> We probably will need to provide functionality to create sub-pools, 
> either by extending the new() method to accept optional arguments (in 
> which case we don't need to have a direct access to apr_pool_create_ex 
> (keep it -), or by providing a new function in which case we will need it.

APR::Pool->new() should create a new pool, while $pool->new() should create 
a subpool.

I'll write some tests and document it ;)

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: cvs commit: modperl-2.0/xs/maps apr_functions.map

Posted by Stas Bekman <st...@stason.org>.
Geoffrey Young wrote:
> 
> 
> Stas Bekman wrote:
> 
>> geoff@apache.org wrote:
>>
>>> geoff       2003/09/04 09:39:44
>>>
>>>   Modified:    xs/maps  apr_functions.map
>>>   Log:
>>>   remove deprecated apr_pool_sub_make
>>
>>
>>
>> in that case shouldn't be the replacement function apr_pool_create_ex 
>> be enabled? I suppose it was disabled because the apr_pool_sub_make
>> wrapper existed, which is no longer the case.
> 
> 
> yeah, you're probably right, except that apr_pool_sub_make wasn't being 
> offered at all, since it didn't have an entry in the function table.
> 
> enabling apr_pool_create_ex will require that we define apr_abortfunc_t 
> someplace.

Currently APR::Pool::new() can create only parent pools, since it calls 
apr_pool_create which is defined as:

#define apr_pool_create(newpool, parent) \
     apr_pool_create_ex(newpool, parent, NULL, NULL)

We probably will need to provide functionality to create sub-pools, either by 
extending the new() method to accept optional arguments (in which case we 
don't need to have a direct access to apr_pool_create_ex (keep it -), or by 
providing a new function in which case we will need it.


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: cvs commit: modperl-2.0/xs/maps apr_functions.map

Posted by Geoffrey Young <ge...@modperlcookbook.org>.

Stas Bekman wrote:
> geoff@apache.org wrote:
> 
>> geoff       2003/09/04 09:39:44
>>
>>   Modified:    xs/maps  apr_functions.map
>>   Log:
>>   remove deprecated apr_pool_sub_make
> 
> 
> in that case shouldn't be the replacement function apr_pool_create_ex be 
> enabled? I suppose it was disabled because the apr_pool_sub_make
> wrapper existed, which is no longer the case.

yeah, you're probably right, except that apr_pool_sub_make wasn't being 
offered at all, since it didn't have an entry in the function table.

enabling apr_pool_create_ex will require that we define apr_abortfunc_t 
someplace.

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: cvs commit: modperl-2.0/xs/maps apr_functions.map

Posted by Stas Bekman <st...@stason.org>.
geoff@apache.org wrote:
> geoff       2003/09/04 09:39:44
> 
>   Modified:    xs/maps  apr_functions.map
>   Log:
>   remove deprecated apr_pool_sub_make

in that case shouldn't be the replacement function apr_pool_create_ex be 
enabled? I suppose it was disabled because the apr_pool_sub_make
wrapper existed, which is no longer the case.

>   Revision  Changes    Path
>   1.57      +0 -1      modperl-2.0/xs/maps/apr_functions.map
>   
>   Index: apr_functions.map
>   ===================================================================
>   RCS file: /home/cvs/modperl-2.0/xs/maps/apr_functions.map,v
>   retrieving revision 1.56
>   retrieving revision 1.57
>   diff -u -r1.56 -r1.57
>   --- apr_functions.map	29 Aug 2003 14:30:59 -0000	1.56
>   +++ apr_functions.map	4 Sep 2003 16:39:44 -0000	1.57
>   @@ -166,7 +166,6 @@
>    !apr_pool_cleanup_run
>    -apr_pool_cleanup_null
>     apr_pool_cleanup_register | mpxs_ | p, SV *:cv, SV *:arg=Nullsv
>   - apr_pool_sub_make
>    !apr_pool_note_subprocess
>    -apr_palloc
>    >apr_palloc_debug
>   
>   
>   


-- 


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org