develooper Front page | perl.perl5.porters | Postings from August 2017

Re: my_strerror() as API function

Thread Previous | Thread Next
From:
Zefram
Date:
August 13, 2017 01:14
Subject:
Re: my_strerror() as API function
Message ID:
20170813011420.GA309@fysh.org
Karl Williamson wrote:
>patches welcome.

Branch zefram/sv_string_from_errnum implements the first thing that
I want.  New API function, doing my_strerror() but with return as an SV.
There's no change in the decoding heuristics; this is just making $!'s
logic available to XS modules.  If there's any change in the decoding
for $! in the future (or any change in the locale selection logic),
that would be reflected in the behaviour of this API function.

I'm dubious about this function going into the "Magical Functions"
section of perlapi(1).  It ends up there by default, because it's in mg.c,
because it calls a static function that's defined there (and which is
called from other locations in that file).  It's not really a suitable
section, but I don't see what the correct section would be.

If there are no objections, I'll probably merge this in a few days,
possibly doing something about the doc section.

-zefram

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