Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: e0993acfe19e64409299c35a5a1d6b86e560e7c4 https://github.com/Perl/perl5/commit/e0993acfe19e64409299c35a5a1d6b86e560e7c4 Author: Karl Williamson <k...@cpan.org> Date: 2024-01-16 (Tue, 16 Jan 2024)
Changed paths: M locale.c Log Message: ----------- locale.c: Don't compile unreachable code The switch statement affected by this commit has numerous case: statements within it. Prior to this commit, if any of them was required, all would be compiled. But in many Configurations only a portion of them are required. Skip the others. This takes advantage of the fact that an undefined preprocessor macro evaluates to 0 (false) when used in an #if conditional. In this case, #foo_AVAIL is often undefined, so evaluates to false. (Although locale_table.h could be changed to always define it to 'false', should it become necessary.)