develooper Front page | perl.perl5.porters | Postings from May 2021

Re: C99

Thread Previous | Thread Next
From:
Ben Bullock
Date:
May 19, 2021 12:41
Subject:
Re: C99
Message ID:
CAN5Y6m_+MMjHDgPZ1rvSPX7JPEb318psz02TZTQ55FVSX99=Ww@mail.gmail.com
On Tue, 18 May 2021 at 22:24, Paul "LeoNerd" Evans <leonerd@leonerd.org.uk>
wrote:

> On Tue, 18 May 2021 12:01:02 +0000
> Nicholas Clark <nick@ccl4.org> wrote:
>
> > Feature:     mixed declarations and code
>
> > Feature:     member structure initialisers
>
> > Feature:     vararg macros
>
> In case it is of interest, I've been using all three of these in XS
> modules on CPAN for a while now, and haven't yet encountered any
> platforms which complain. No doubt there are some around, but those
> don't seem to be ones that report smoketest results.
>

For CPAN XS modules, there used to be a lot of problems with mixed
declarations and code on ActiveState Perl which was using a Microsoft C
compiler which didn't allow that. The ActiveState test results didn't
appear at CPAN testers and they didn't email them to people or anything. I
think that ActiveState Perl is doing something different now, the old web
pages for their ppm system don't display newer versions of modules.

I've used vararg macros:

https://metacpan.org/source/BKB/Text-Fuzzy-0.29/text-fuzzy-single.c#L146

// comments:

https://metacpan.org/source/BKB/Text-Fuzzy-0.29/text-fuzzy-single.c#L684

for nearly a decade without once encountering a problem at CPAN testers.

Incidentally there is some Solaris testing at CPAN testers and the Solaris
C compiler has some kind of very very strange problem with the dir part of
include statements like

#include "dir/file.h"

under some circumstances.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About