perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From do...@hyperreal.org
Subject cvs commit: modperl/src/modules/perl Apache.xs mod_perl.h
Date Tue, 07 Jul 1998 16:19:53 GMT
dougm       98/07/07 09:19:53

  Modified:    src/modules/perl Apache.xs mod_perl.h
  Log:
  more const cruft compat
  
  Revision  Changes    Path
  1.37      +5 -5      modperl/src/modules/perl/Apache.xs
  
  Index: Apache.xs
  ===================================================================
  RCS file: /export/home/cvs/modperl/src/modules/perl/Apache.xs,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- Apache.xs	1998/06/26 00:11:45	1.36
  +++ Apache.xs	1998/07/07 16:19:51	1.37
  @@ -756,7 +756,7 @@
       register int x;
       int m;
       char *t;
  -    array_header *reqs_arr;
  +    MP_CONST_ARRAY_HEADER *reqs_arr;
       require_line *reqs;
   
       CODE:
  @@ -811,11 +811,11 @@
       Apache    r
       char *val
   
  -char *
  +const char *
   auth_type(r)
       Apache    r
   
  -char *
  +const char *
   document_root(r)
       Apache    r
   
  @@ -853,14 +853,14 @@
       Apache r
   
       PREINIT:
  -    char *sent_pw = NULL;
  +    MP_CONST_CHAR *sent_pw = NULL;
       int ret;
   
       PPCODE:
       ret = get_basic_auth_pw(r, &sent_pw);
       XPUSHs(sv_2mortal((SV*)newSViv(ret)));
       if(ret == OK)
  -	XPUSHs(sv_2mortal((SV*)newSVpv(sent_pw, 0)));
  +	XPUSHs(sv_2mortal((SV*)newSVpv((char *)sent_pw, 0)));
       else
   	XPUSHs(&sv_undef);
   
  
  
  
  1.28      +8 -0      modperl/src/modules/perl/mod_perl.h
  
  Index: mod_perl.h
  ===================================================================
  RCS file: /export/home/cvs/modperl/src/modules/perl/mod_perl.h,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- mod_perl.h	1998/06/16 18:49:59	1.27
  +++ mod_perl.h	1998/07/07 16:19:52	1.28
  @@ -305,6 +305,14 @@
   /* some 1.2.x/1.3.x compat stuff */
   /* once 1.3.0 is here, we can toss most of this junk */
   
  +#if MODULE_MAGIC_NUMBER >= 19980627
  +#define MP_CONST_CHAR const char
  +#define MP_CONST_ARRAY_HEADER const array_header
  +#else
  +#define MP_CONST_CHAR char
  +#define MP_CONST_ARRAY_HEADER array_header
  +#endif
  +
   #if MODULE_MAGIC_NUMBER > 19970912 
   #define cmd_infile   parms->config_file
   #define cmd_filename parms->config_file->name
  
  
  

Mime
View raw message