Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 76d4023d4c3943f6baae2f455aabc658930dd54e https://github.com/Perl/perl5/commit/76d4023d4c3943f6baae2f455aabc658930dd54e Author: Karl Williamson <k...@cpan.org> Date: 2024-10-28 (Mon, 28 Oct 2024)
Changed paths: M autodoc.pl M regen/embed.pl Log Message: ----------- regen/embed.pl: Handle m with p flags Prior to this commit these were illegal. This allows it when there is no pesky thread context in the way. This causes embed.fnc to generate macro 'Perl_foo' #defined to be macro 'foo'. This could be used to easily convert existing macros into having long names should that become a name space pollution problem. But more immediately, we have scattered around, various one line functions that simply call something else. Those were typically created to preserve the pre-existing API should someone be using the long name, and the implementation changed. This commit allows those (that don't use thread context) to be conveniently replaced by a macro. The next couple commits will do that for a couple of them. Commit: 959e6a9b6e6719e269ea0131e47931d73f50a3eb https://github.com/Perl/perl5/commit/959e6a9b6e6719e269ea0131e47931d73f50a3eb Author: Karl Williamson <k...@cpan.org> Date: 2024-10-28 (Mon, 28 Oct 2024) Changed paths: M embed.fnc M embed.h M inline.h M proto.h Log Message: ----------- Add utf8_hop_back_overshoot() This is like plain utf8_hop_back() except it returns how many characters the request would have overshot the edge if it had been allowed to go beyond the edge. This allows the caller to do error handling. The code has to be changed to be more careful (than before this commit) with counting the actual number of characters consumed in the hop. Commit: a98fcf3e6994e02feb2779cf3cc5371bfbaf379d https://github.com/Perl/perl5/commit/a98fcf3e6994e02feb2779cf3cc5371bfbaf379d Author: Karl Williamson <k...@cpan.org> Date: 2024-10-28 (Mon, 28 Oct 2024) Changed paths: M inline.h Log Message: ----------- utf8_hop_forward: Do nothing if distance is 0 There is a subtle difference here with existing behavior. Most of the time a zero hop already does nothing; but if the initial conditions were that we were starting the hop past the edge, a runtime error was raised, even though the action was a no-op. Its arguable what to do in this case, but I believe the new behavior is more correct, and it paves the way for future commits where it is more clearly more correct. This adds a conditional and indents the code within the new block, removing now-redundant conditionals. Commit: 075b05717541a47ec49cb72a39f4ab9493165882 https://github.com/Perl/perl5/commit/075b05717541a47ec49cb72a39f4ab9493165882 Author: Karl Williamson <k...@cpan.org> Date: 2024-10-28 (Mon, 28 Oct 2024) Changed paths: M inline.h Log Message: ----------- utf8_hop_forward: Break from loop instead of returning early This is in preparation for a future commit where we will need to do finish-up work before returning. Commit: 4334805306ff40d4cde3e4895b0087502876de47 https://github.com/Perl/perl5/commit/4334805306ff40d4cde3e4895b0087502876de47 Author: Karl Williamson <k...@cpan.org> Date: 2024-10-28 (Mon, 28 Oct 2024) Changed paths: M embed.fnc M embed.h M inline.h M proto.h Log Message: ----------- Add utf8_hop_forward_overshoot() This is like plain utf8_hop_forward() except it returns how many characters the request would have overshot the edge if it had been allowed to go beyond the edge. This allows the caller to do error handling. The code has to be changed to be more careful (than before this commit) with counting the actual number of characters consumed in the hop. Commit: 9b8296529a614ace3d91452ec3f494c352f8d0a8 https://github.com/Perl/perl5/commit/9b8296529a614ace3d91452ec3f494c352f8d0a8 Author: Karl Williamson <k...@cpan.org> Date: 2024-10-28 (Mon, 28 Oct 2024) Changed paths: M embed.fnc M embed.h M inline.h M proto.h Log Message: ----------- Add utf8_hop_overshoot() This is like utf8_hop_safe(), but also returns the number of characters that would have overshot the edge if it had been allowed to go beyond the edge Compare: https://github.com/Perl/perl5/compare/5403449fb387...9b8296529a61 To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications