Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: b188d37a96881a63a94826e2126746968b845200
https://github.com/Perl/perl5/commit/b188d37a96881a63a94826e2126746968b845200
Author: Karl Williamson <[email protected]>
Date: 2024-01-02 (Tue, 02 Jan 2024)
Changed paths:
M embed.fnc
M embed.h
M locale.c
M perl_langinfo.h
M proto.h
Log Message:
-----------
Hoist nl_item typedef definition
nl_item is a typedef defined in <langinfo.h> for use by nl_langinfo().
But on platforms without this, perl emulates it, and hence needs to
create its own nl_item typedef.
Prior to this commit, the definition was in locale.c, which meant that
there needed to be two definitions in embed.fnc for each function that
has an argument of this type.
Simply putting it in "perl_langinfo.h" when there is no <langinfo.h>
allows those duplicate definitions to be removed