httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apache-2.0/src/modules/standard mod_include.c
Date Tue, 19 Sep 2000 20:57:19 GMT
rbb         00/09/19 13:57:19

  Modified:    src/modules/standard mod_include.c
  Log:
  Cleanup the brigade split in mod_include.  It turns out that we have had
  a brigade split function for quite some time.
  
  Revision  Changes    Path
  1.60      +1 -10     apache-2.0/src/modules/standard/mod_include.c
  
  Index: mod_include.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_include.c,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- mod_include.c	2000/09/19 20:56:09	1.59
  +++ mod_include.c	2000/09/19 20:57:19	1.60
  @@ -2269,7 +2269,6 @@
       ap_bucket *tagbuck, *dptr2;
       ap_bucket *endsec;
       ap_bucket_brigade *before_tag = NULL;
  -    ap_bucket *hackbucket = NULL;
       int ret;
   
       apr_cpystrn(error, DEFAULT_ERROR_MSG, sizeof(error));
  @@ -2317,15 +2316,7 @@
   		ap_rputs(error, r);
                   return;
               }
  -            hackbucket = AP_BRIGADE_FIRST(bb);
  -            AP_BRIGADE_UNSPLICE(hackbucket, dptr);
  -            before_tag = ap_brigade_create(r->pool);
  -            while (hackbucket != dptr) {
  -                ap_bucket *foo = AP_BUCKET_NEXT(hackbucket);
  -
  -                AP_BRIGADE_INSERT_TAIL(before_tag, hackbucket);
  -                hackbucket = foo;
  -            }
  +            before_tag = ap_brigade_split(bb, dptr);
               ap_pass_brigade(f->next, before_tag);
               if (!strcmp(directive, "if")) {
                   if (!printing) {
  
  
  

Mime
View raw message