Codebase list libmodule-install-xsutil-perl / 62cc5a7
[svn-upgrade] new version libmodule-install-xsutil-perl (0.35) Angel Abad Contreras 13 years ago
4 changed file(s) with 21 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
00 Revision history for Perl extension Module::Install::XSUtil
1
2 0.35 Wed Sep 29 23:46:17 2010
3 - Checks C99 specification more strictly
4 - Add some macros to xshelper.h
15
26 0.34 Sun Sep 26 12:18:18 2010
37 - Oops! The change in 0.33 did not work.
3030 resources:
3131 license: http://dev.perl.org/licenses/
3232 repository: git://github.com/gfx/Perl-Module-Install-XSUtil.git
33 version: 0.34
33 version: 0.35
11
22 use 5.005_03;
33
4 $VERSION = '0.34';
4 $VERSION = '0.35';
55
66 use Module::Install::Base;
77 @ISA = qw(Module::Install::Base);
217217 my $tmpfile = File::Temp->new(SUFFIX => '.c');
218218
219219 $tmpfile->print(<<'C99');
220 // include a C99 header
221 #include <stdbool.h>
220222 inline // a C99 keyword with C99 style comments
221223 int test_c99() {
222224 int i = 0;
317319
318320 if ( ! $self->{xsu_loaded_checklib} ) {
319321 my $loaded_lib = 0;
320 foreach my $checklib qw(inc::Devel::CheckLib Devel::CheckLib) {
322 foreach my $checklib (qw(inc::Devel::CheckLib Devel::CheckLib)) {
321323 eval "use $checklib 0.4";
322324 if (!$@) {
323325 $loaded_lib = 1;
553555 $cppflags .= ' ' . $mm->{DEFINE} if $mm->{DEFINE};
554556
555557 my $add_include = _is_msvc() ? '-FI' : '-include';
556 $cppflags .= ' ' . join ' ', map{ qq{$add_include "$_"} } qw(EXTERN.h perl.h XSUB.h);
558 $cppflags .= ' ' . join ' ',
559 map{ qq{$add_include "$_"} } qw(EXTERN.h perl.h XSUB.h);
557560
558561 my $cppcmd = qq{$Config{cpprun} $cppflags $h_file};
559562
658661 :
659662 :#define PERL_NO_GET_CONTEXT /* we want efficiency */
660663 :#include <EXTERN.h>
661 :
662664 :#include <perl.h>
663665 :#define NO_XSLOCKS /* for exceptions */
664666 :#include <XSUB.h>
684686 :#endif
685687 :
686688 :#ifndef LIKELY /* they are just a compiler's hint */
687 :#define LIKELY(x) (x)
688 :#define UNLIKELY(x) (x)
689 :#define LIKELY(x) (!!(x))
690 :#define UNLIKELY(x) (!!(x))
689691 :#endif
690692 :
691693 :#ifndef newSVpvs_share
715717 :#define LooksLikeNumber(x) (SvPOKp(x) ? looks_like_number(x) : (I32)SvNIOKp(x))
716718 :#endif
717719 :
718 :#define newAV_mortal() (AV*)sv_2mortal((SV*)newAV())
719 :#define newHV_mortal() (HV*)sv_2mortal((SV*)newHV())
720 :#define newAV_mortal() (AV*)sv_2mortal((SV*)newAV())
721 :#define newHV_mortal() (HV*)sv_2mortal((SV*)newHV())
722 :#define newRV_inc_mortal(sv) sv_2mortal(newRV_inc(sv))
723 :#define newRV_noinc_mortal(sv) sv_2mortal(newRV_noinc(sv))
720724 :
721725 :#define DECL_BOOT(name) EXTERN_C XS(CAT2(boot_, name))
722726 :#define CALL_BOOT(name) STMT_START { \
771775
772776 =head1 VERSION
773777
774 This document describes Module::Install::XSUtil version 0.34.
778 This document describes Module::Install::XSUtil version 0.35.
775779
776780 =head1 SYNOPSIS
777781
1818 Nishino
1919 lestrrat
2020 ACKNOWLEDGEMENT
21 XS
22 RT
23 co