perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From do...@apache.org
Subject cvs commit: modperl-2.0/src/modules/perl modperl_filter.c modperl_util.h
Date Sun, 14 Oct 2001 17:18:11 GMT
dougm       01/10/14 10:18:11

  Modified:    src/modules/perl modperl_filter.c modperl_util.h
  Log:
  function pointer typedefs need _stdcall #ifdef WIN32
  Submitted by:	Randy Kobes <randy@theoryx5.uwinnipeg.ca>
  Reviewed by:	dougm
  
  Revision  Changes    Path
  1.27      +2 -2      modperl-2.0/src/modules/perl/modperl_filter.c
  
  Index: modperl_filter.c
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_filter.c,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- modperl_filter.c	2001/10/06 21:05:40	1.26
  +++ modperl_filter.c	2001/10/14 17:18:10	1.27
  @@ -414,8 +414,8 @@
       }
   }
   
  -typedef ap_filter_t * (*filter_add_t) (const char *, void *,
  -                                       request_rec *, conn_rec *);
  +typedef ap_filter_t * MP_FUNC_T(filter_add_t) (const char *, void *,
  +                                               request_rec *, conn_rec *);
   
   static int modperl_filter_register_connection(conn_rec *c,
                                                 int idx,
  
  
  
  1.26      +6 -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.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- modperl_util.h	2001/10/13 03:22:15	1.25
  +++ modperl_util.h	2001/10/14 17:18:10	1.26
  @@ -7,6 +7,12 @@
   #define MP_INLINE APR_INLINE
   #endif
   
  +#ifdef WIN32
  +#   define MP_FUNC_T(name) (_stdcall *name)
  +#else
  +#   define MP_FUNC_T(name)          (*name)
  +#endif
  +
   #ifndef strcaseEQ
   #   define strcaseEQ(s1,s2) (!strcasecmp(s1,s2))
   #endif
  
  
  

Mime
View raw message