[Perl/perl5] cd7ba9: locale.c: Clean up two DEBUG stmts
Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: cd7ba9418e8240306639e2f1fffa4abbf4bfeb5a https://github.com/Perl/perl5/commit/cd7ba9418e8240306639e2f1fffa4abbf4bfeb5a Author: Karl Williamson Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M locale.c Log Message: --- locale.c: Clean up two DEBUG stmts STMT_START...END aren't required in DEBUG() calls, as that macro already wraps its argument with those. So, they are just clutter here.
[Perl/perl5] efda6c: perl.h: Rmv duplicate #define
Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: efda6cc7c5338d7c9a482ac31ca4166045338adf https://github.com/Perl/perl5/commit/efda6cc7c5338d7c9a482ac31ca4166045338adf Author: Karl Williamson Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M perl.h Log Message: --- perl.h: Rmv duplicate #define LOCALE_LOCK has already been defined in all circumstances earlier in the file
[Perl/perl5] dd5ca6: Revert "perl.h: Move #defining SETLOCALE_LOCK"
Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: dd5ca6941615cc2e8217c6e5619f768c79138e79 https://github.com/Perl/perl5/commit/dd5ca6941615cc2e8217c6e5619f768c79138e79 Author: Karl Williamson Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M perl.h Log Message: --- Revert "perl.h: Move #defining SETLOCALE_LOCK" This reverts commit d0b8b8e8a48798446382161f988e6081140578d6. I got ahead of myself. This commit was premature
[Perl/perl5] f363bf: perl.h: Move #defining SETLOCALE_LOCK
Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: f363bf1f855ba0bb36562131723d11320368c7c4 https://github.com/Perl/perl5/commit/f363bf1f855ba0bb36562131723d11320368c7c4 Author: Karl Williamson Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M perl.h Log Message: --- perl.h: Move #defining SETLOCALE_LOCK This simplifies slightly, and will allow further simplification
[Perl/perl5] a76019: Move #include from locale.c to perl.h
Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: a760196638a4338f0a19155c78b1011e58784d8b https://github.com/Perl/perl5/commit/a760196638a4338f0a19155c78b1011e58784d8b Author: Karl Williamson Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M locale.c M perl.h Log Message: --- Move #include from locale.c to perl.h Without this commit, Perl won't compile if -DUSE_NL_LOCALE_NAME is specified to Configure. This is an undocumented feature that uses an undocumented glibc feature that is effectively the querylocale() found on Darwin and some other systems. POSIX 2017 has added a querylocale-like function to the repertoire, and should eventually supplant this option.
[Perl/perl5] ef4243: Update POSIX synopsis
Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: ef4243669d823be16f3bfc156d92e3d61964b87a https://github.com/Perl/perl5/commit/ef4243669d823be16f3bfc156d92e3d61964b87a Author: Elvin Aslanov Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M ext/POSIX/lib/POSIX.pm M ext/POSIX/lib/POSIX.pod Log Message: --- Update POSIX synopsis
[Perl/perl5] e464e1: locale.c: Initialize PL_underlying_numeric_obj
Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: e464e1ed069fae7acb29f65db0bf2c98c4af355a https://github.com/Perl/perl5/commit/e464e1ed069fae7acb29f65db0bf2c98c4af355a Author: Karl Williamson Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M locale.c Log Message: --- locale.c: Initialize PL_underlying_numeric_obj This probably doesn't matter, but it's better form to initialize it to a sane value. Commit: 3014c9721628fac7b68b2f59451f4515dcbae96a https://github.com/Perl/perl5/commit/3014c9721628fac7b68b2f59451f4515dcbae96a Author: Karl Williamson Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M locale.c Log Message: --- locale.c: Use locale change subs at initialization There are currently 4 functions that do special handling when the locale for their respective categories changes. One of these is for LC_ALL, which has and continues to be called at the end of initialization. But the other three have changed in recent commits to handle the trivial case specially of the locale being "C". These changes now avoid the complexities required for the general case (that needs everything to be set up at the time of the call). They can thus be called early in the initialization precess. This avoids having to duplicate their logics in the initialization code, which has led to some things being overlooked there. Now everything is guaranteed to stay in sync. Commit: ccbc6a9d874962038ac5a45c8ccfae17180f76ce https://github.com/Perl/perl5/commit/ccbc6a9d874962038ac5a45c8ccfae17180f76ce Author: Karl Williamson Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M locale.c Log Message: --- locale.c: Remove no-longer necessary conditionals The previous commit initialized this variable early in start up, so that we never have to now check that it is non-NULL. Commit: c1fa8ffb1b03a17736a6f98a97f7283ca6feba28 https://github.com/Perl/perl5/commit/c1fa8ffb1b03a17736a6f98a97f7283ca6feba28 Author: Karl Williamson Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M locale.c Log Message: --- Merge branch 'Change init of certain locale categories' into blead This series of commits adds initialization for an object, and changes the initialization process to call, for each locale category that has one, the specialty function that handles locale changes for that category, instead of duplicating the logic in the initialization section. This allows for the removal of a couple of conditionals that otherwise would need to be executed each time the locale changes. Compare: https://github.com/Perl/perl5/compare/360374e28fc8...c1fa8ffb1b03
[Perl/perl5] 360374: locale.c More new_ctype() refactoring
Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 360374e28fc8b4afaaf790f14eef602c9a9b192c https://github.com/Perl/perl5/commit/360374e28fc8b4afaaf790f14eef602c9a9b192c Author: Karl Williamson Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M locale.c Log Message: --- locale.c More new_ctype() refactoring Merge commit e4bbbfe02b9e9aae521b164eba0e518ca478945f refactored this function some. Most of the commits in that series dated to before when we could assume C99. In re-reading the result, I saw some opportunities to take advantage of C99, by, for example, moving declarations closer to their use. I also hadn't previously noticed that when changing to the C locale (a frequent occurrence), various things that we being recalculated are determinable at compile time. So this commit returns early under this circumstance. And, an obsolete comment is removed
[Perl/perl5] 95e474: locale.c: Silence C_codeset compiler warning
Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 95e4742c49bd11279dcd70828f262ea73db7633d https://github.com/Perl/perl5/commit/95e4742c49bd11279dcd70828f262ea73db7633d Author: Karl Williamson Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M locale.c Log Message: --- locale.c: Silence C_codeset compiler warning This fixes #20140 This static variable is used in just one or (unlikely) two places, and only in some Configureations. Rather than add #ifdefs, or make a PERL_UNUSED call somewhere, making it a #define fixes the issue without taking up extra memory except in some dumb compilers under unlikely Configurations. Commit: f4fdec1fc8df1ef0400134e720b67589da5c8200 https://github.com/Perl/perl5/commit/f4fdec1fc8df1ef0400134e720b67589da5c8200 Author: Karl Williamson Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M embed.fnc M embed.h M locale.c M proto.h Log Message: --- locale.c: Silence compiler warning about S_new_numeric This function is not used unless LC_NUMERIC is enabled, so need not be defined unless that is true. Commit: 988faa118b300f3ea030afabdbdbe464d204ddb1 https://github.com/Perl/perl5/commit/988faa118b300f3ea030afabdbdbe464d204ddb1 Author: Karl Williamson Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M embed.fnc M embed.h M locale.c M proto.h Log Message: --- locale.c: Silence compiler warning about S_mortalixzed_pv_copy This function is not used unless locales are enabled, so need not be defined unless that is true. Commit: 057f0a44eea6a371212bff64f2688e675bf4fa60 https://github.com/Perl/perl5/commit/057f0a44eea6a371212bff64f2688e675bf4fa60 Author: Karl Williamson Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M embed.fnc M embed.h M locale.c M proto.h Log Message: --- locale.c: Silence compiler warning when no LC_CTYPE On Configurations without LC_CTYPE, various unused warnings were being generated. Commit: e933b48fd1674fe37ae768a4726cbd451595dc07 https://github.com/Perl/perl5/commit/e933b48fd1674fe37ae768a4726cbd451595dc07 Author: Karl Williamson Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M embed.fnc M embed.h M locale.c M proto.h Log Message: --- locale.c: Silence compiler warning when no LC_COLLATE On Configurations without LC_COLLATE, various unused warnings were being generated. Compare: https://github.com/Perl/perl5/compare/952fa04f7f2a...e933b48fd167
[Perl/perl5] 952fa0: locale.c: Change macro name 'porcelain' => 'posix'
Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 952fa04f7f2a5518f11f811d9ee21670671c1994 https://github.com/Perl/perl5/commit/952fa04f7f2a5518f11f811d9ee21670671c1994 Author: Karl Williamson Date: 2022-09-10 (Sat, 10 Sep 2022) Changed paths: M locale.c Log Message: --- locale.c: Change macro name 'porcelain' => 'posix' When I wrote this I tought porcelain in git meant something different than it does. But what this macro does is to hide the non-POSIX vs POSIX differences from its callers.