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

Re: my_strerror() as API function

Thread Previous | Thread Next
August 13, 2017 01:14
Re: my_strerror() as API function
Message ID:
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.


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