develooper Front page | perl.perl5.porters | Postings from April 2016

Re: Inconsistencies in memory size types

Thread Previous | Thread Next
H.Merijn Brand
April 6, 2016 19:27
Re: Inconsistencies in memory size types
Message ID:
On Wed, 06 Apr 2016 11:08:33 +0100, (Dagfinn Ilmari
Mannsåker) wrote:

> > I don't think there are issues anymore.  Unfortunately, XS code likely
> > uses a mix of Size_t, MEM_SIZE, and STRLEN, so I'm not sure there's
> > much you can actually do.  
> This is why my patch makes Size_t, MEM_SIZE and STRLEN available #ifndef
> PERL_CORE.  On second though, though, standardising on Size_t and
> SSize_t will make things easier for upstream-blead dual-life modules
> (unless they all use Devel::PPPort and we add the defines there).

Which is what I wanted to suggest. Make the core cleaner and have all
backward compat available in Devel::PPPort should only cause a *little*
extra effort on those XS modules that do not use it correct. It is
unlikely to affect end users and cpan clients

H.Merijn Brand   Perl Monger
using perl5.00307 .. 5.23   porting perl5 on HP-UX, AIX, and openSUSE

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About