dougm       02/05/23 15:18:48

  Modified:    src/modules/perl modperl_util.c modperl_util.h
  Log:
  add modperl_perl_sv_setref_uv function
  
  Revision  Changes    Path
  1.42      +8 -0      modperl-2.0/src/modules/perl/modperl_util.c
  
  Index: modperl_util.c
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_util.c,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- modperl_util.c    19 May 2002 02:10:13 -0000      1.41
  +++ modperl_util.c    23 May 2002 22:18:47 -0000      1.42
  @@ -164,6 +164,14 @@
       return sv;
   }
   
  +/* XXX: sv_setref_uv does not exist in 5.6.x */
  +MP_INLINE SV *modperl_perl_sv_setref_uv(pTHX_ SV *rv,
  +                                        const char *classname, UV uv)
  +{
  +    sv_setuv(newSVrv(rv, classname), uv);
  +    return rv;
  +}
  +
   apr_pool_t *modperl_sv2pool(pTHX_ SV *obj)
   {
       apr_pool_t *p = NULL;
  
  
  
  1.33      +3 -0      modperl-2.0/src/modules/perl/modperl_util.h
  
  Index: modperl_util.h
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_util.h,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- modperl_util.h    13 May 2002 03:17:54 -0000      1.32
  +++ modperl_util.h    23 May 2002 22:18:47 -0000      1.33
  @@ -59,6 +59,9 @@
   
   MP_INLINE SV *modperl_ptr2obj(pTHX_ char *classname, void *ptr);
   
  +MP_INLINE SV *modperl_perl_sv_setref_uv(pTHX_ SV *rv,
  +                                        const char *classname, UV uv);
  +
   apr_pool_t *modperl_sv2pool(pTHX_ SV *obj);
   
   char *modperl_apr_strerror(apr_status_t rv);
  
  
  


Reply via email to