perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: modperl-2.0 Changes
Date Thu, 24 Apr 2003 04:31:25 GMT
stas        2003/04/23 21:31:25

  Modified:    xs/Apache/Filter Apache__Filter.h
               .        Changes
  Log:
  $filter->seen_eos() now accepts 1/0 to set/unset the flag so streaming
  filters can control the sending of EOS.
  
  Revision  Changes    Path
  1.30      +10 -1     modperl-2.0/xs/Apache/Filter/Apache__Filter.h
  
  Index: Apache__Filter.h
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/xs/Apache/Filter/Apache__Filter.h,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- Apache__Filter.h	17 Apr 2003 08:04:47 -0000	1.29
  +++ Apache__Filter.h	24 Apr 2003 04:31:25 -0000	1.30
  @@ -166,7 +166,16 @@
                                                     SV **MARK, SV **SP)
   {
       modperl_filter_t *modperl_filter;
  -    mpxs_usage_va_1(modperl_filter, "$filter->seen_eos()");
  +
  +    if ((items < 1) || (items > 2) || !(mpxs_sv2_obj(modperl_filter, *MARK))) {
  +        Perl_croak(aTHX_ "usage: $filter->seen_eos([$set])");
  +    }
  +    MARK++;
  +    
  +    if (items == 2) {
  +        modperl_filter->seen_eos = SvIV(*MARK) ? 1 : 0;
  +    }
  +    
       return modperl_filter->seen_eos ? &PL_sv_yes : &PL_sv_no;
   }
   
  
  
  
  1.179     +3 -0      modperl-2.0/Changes
  
  Index: Changes
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/Changes,v
  retrieving revision 1.178
  retrieving revision 1.179
  diff -u -r1.178 -r1.179
  --- Changes	22 Apr 2003 07:53:21 -0000	1.178
  +++ Changes	24 Apr 2003 04:31:25 -0000	1.179
  @@ -12,6 +12,9 @@
   
   =item 1.99_09-dev
   
  +$filter->seen_eos() now accepts 1/0 to set/unset the flag so streaming
  +filters can control the sending of EOS. [Stas]
  +
   support systems where apr header files are installed separately from
   httpd header files ["Andres Salomon" <dilinger@voxel.net>]
   
  
  
  

Mime
View raw message