dougm       01/11/01 14:18:25

  Modified:    xs/Apache/RequestUtil Apache__RequestUtil.h
  Log:
  change mpxs_Apache__RequestRec_location to return char * rather than SV *
  and do not need the if (r->per_dir_config) check
  
  Revision  Changes    Path
  1.9       +3 -12     modperl-2.0/xs/Apache/RequestUtil/Apache__RequestUtil.h
  
  Index: Apache__RequestUtil.h
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/xs/Apache/RequestUtil/Apache__RequestUtil.h,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Apache__RequestUtil.h     2001/10/29 01:19:16     1.8
  +++ Apache__RequestUtil.h     2001/11/01 22:18:25     1.9
  @@ -181,18 +181,9 @@
       modperl_dir_config(aTHX_ r, r->server, key, sv_val)
   
   static MP_INLINE
  -SV *mpxs_Apache__RequestRec_location(request_rec *r)
  +char *mpxs_Apache__RequestRec_location(request_rec *r)
   {
  -    dTHX; /* XXX */
  +    MP_dDCFG;
   
  -    if (r->per_dir_config) {                            
  -        MP_dDCFG;
  -        char *location;
  -        
  -        if ((location = dcfg->location)) {
  -            return newSVpv(location, 0); 
  -        }
  -    }
  -    
  -    return &PL_sv_undef;
  +    return dcfg->location;
   }
  
  
  


Reply via email to