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_perl_includes.h
Date Tue, 25 Sep 2001 17:30:32 GMT
dougm       01/09/25 10:30:32

  Modified:    lib/Apache ParseSource.pm
               src/modules/perl modperl_perl_includes.h
  Log:
  C::Scan does not properly remove __attribute__ within
  function prototypes; so we just rip them all out via cpp
  
  Revision  Changes    Path
  1.28      +1 -1      modperl-2.0/lib/Apache/ParseSource.pm
  
  Index: ParseSource.pm
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/lib/Apache/ParseSource.pm,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- ParseSource.pm	2001/09/25 16:33:30	1.27
  +++ ParseSource.pm	2001/09/25 17:30:31	1.28
  @@ -60,7 +60,7 @@
       my $c = C::Scan->new(filename => $self->{scan_filename});
   
       $c->set(includeDirs => $self->includes);
  -    $c->set(Defines => '-DCORE_PRIVATE');
  +    $c->set(Defines => '-DCORE_PRIVATE -DMP_SOURCE_SCAN');
   
       bless $c, 'Apache::ParseSource::Scan';
   }
  
  
  
  1.5       +8 -0      modperl-2.0/src/modules/perl/modperl_perl_includes.h
  
  Index: modperl_perl_includes.h
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_perl_includes.h,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- modperl_perl_includes.h	2001/03/15 01:26:18	1.4
  +++ modperl_perl_includes.h	2001/09/25 17:30:32	1.5
  @@ -18,6 +18,14 @@
   #   define PERL_CORE
   #endif
   
  +#ifdef MP_SOURCE_SCAN
  +/* XXX: C::Scan does not properly remove __attribute__ within
  + * function prototypes; so we just rip them all out via cpp
  + */
  +#   undef __attribute__
  +#   define __attribute__(arg)
  +#endif
  +
   #include "EXTERN.h"
   #include "perl.h"
   #include "XSUB.h"
  
  
  

Mime
View raw message