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/xs/maps apache_functions.map modperl_functions.map
Date Mon, 21 Jan 2002 08:27:30 GMT
stas        02/01/21 00:27:30

  Modified:    xs/Apache/Response Apache__Response.h
               xs/maps  apache_functions.map modperl_functions.map
  Log:
  - write a wrapper for $r->set_last_modified() to be the same as in 1.x
  - specify default values for $r->set_content_length and $r->update_mtime
  as in 1.x
  
  Revision  Changes    Path
  1.6       +9 -0      modperl-2.0/xs/Apache/Response/Apache__Response.h
  
  Index: Apache__Response.h
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/xs/Apache/Response/Apache__Response.h,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Apache__Response.h	6 Jan 2002 22:23:24 -0000	1.5
  +++ Apache__Response.h	21 Jan 2002 08:27:30 -0000	1.6
  @@ -25,3 +25,12 @@
   
       rcfg->wbucket->header_parse = 0; /* turn off PerlOptions +ParseHeaders */
   }
  +
  +static MP_INLINE void
  +mpxs_Apache__RequestRec_set_last_modified(request_rec *r, apr_time_t mtime)
  +{
  +    if (mtime) {
  +        ap_update_mtime(r, mtime);
  +    }
  +    ap_set_last_modified(r);
  +}
  
  
  
  1.42      +3 -3      modperl-2.0/xs/maps/apache_functions.map
  
  Index: apache_functions.map
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/xs/maps/apache_functions.map,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- apache_functions.map	20 Jan 2002 18:37:05 -0000	1.41
  +++ apache_functions.map	21 Jan 2002 08:27:30 -0000	1.42
  @@ -100,16 +100,16 @@
   
   MODULE=Apache::Response   PACKAGE=guess
    ap_make_etag | | r, force_weak=0
  - ap_set_content_length
  + ap_set_content_length | | r, length=r->finfo.csize
    ap_set_etag
    ap_meets_conditions
    ap_rationalize_mtime
  - ap_update_mtime
  + ap_update_mtime | | r, dependency_mtime=0
    ap_send_error_response
   ~ap_send_fd
    ap_send_mmap | | r, mm, offset, length
    ap_set_keepalive
  - ap_set_last_modified
  +-ap_set_last_modified
    ap_custom_response
   
   MODULE=Apache::Access   PACKAGE=Apache::RequestRec
  
  
  
  1.33      +2 -0      modperl-2.0/xs/maps/modperl_functions.map
  
  Index: modperl_functions.map
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/xs/maps/modperl_functions.map,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- modperl_functions.map	8 Jan 2002 22:48:38 -0000	1.32
  +++ modperl_functions.map	21 Jan 2002 08:27:30 -0000	1.33
  @@ -43,6 +43,8 @@
   MODULE=Apache::Response   PACKAGE=Apache::RequestRec
   DEFINE_send_cgi_header | | request_rec *:r, SV *:buffer
    mpxs_Apache__RequestRec_send_http_header | | r, type=NULL
  + mpxs_Apache__RequestRec_set_last_modified | | r, mtime=0
  +
   
   MODULE=Apache::ServerUtil   PACKAGE=guess
    mpxs_Apache__Server_push_handlers
  
  
  

Mime
View raw message