Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: 8c1024baa9c0cf407cc5d3d009e5744d413ea1e8
https://github.com/Perl/perl5/commit/8c1024baa9c0cf407cc5d3d009e5744d413ea1e8
Author: Karl Williamson <[email protected]>
Date: 2026-01-15 (Thu, 15 Jan 2026)
Changed paths:
M toke.c
Log Message:
-----------
scan_num: Reorder case: statements in switch()
Move the default to the end, and the shortest to the beginning. This is
in preparation for future commits.
Commit: d31aa9e5b25f253193d4683cd260eac9333fe9bd
https://github.com/Perl/perl5/commit/d31aa9e5b25f253193d4683cd260eac9333fe9bd
Author: Karl Williamson <[email protected]>
Date: 2026-01-15 (Thu, 15 Jan 2026)
Changed paths:
M toke.c
Log Message:
-----------
scan_num: Convert switch() to elsif series
By using isDIGIT(), the cases for individual digits 1-9 collapse into a
single one, leaving just three possibilities, which are more clearly
handled by an if and two 'else if's
Commit: 6295a5898fafaf58f67fbe570a75711bb15d4d55
https://github.com/Perl/perl5/commit/6295a5898fafaf58f67fbe570a75711bb15d4d55
Author: Karl Williamson <[email protected]>
Date: 2026-01-15 (Thu, 15 Jan 2026)
Changed paths:
M toke.c
Log Message:
-----------
scan_num: indentation, reorder-comments only
Some blocks have been removed, so can outdent; others will be added in
future commits, so indent.
Commit: 8de9351fc412b72d81d5be3e333d42b3e2cc7866
https://github.com/Perl/perl5/commit/8de9351fc412b72d81d5be3e333d42b3e2cc7866
Author: Karl Williamson <[email protected]>
Date: 2026-01-15 (Thu, 15 Jan 2026)
Changed paths:
M toke.c
Log Message:
-----------
toke.c: Convert do/while to modern STMT_START/END
Commit: c1becd7fcc34e15bbfb0955e14023a23f7744b39
https://github.com/Perl/perl5/commit/c1becd7fcc34e15bbfb0955e14023a23f7744b39
Author: Karl Williamson <[email protected]>
Date: 2026-01-15 (Thu, 15 Jan 2026)
Changed paths:
M embed.fnc
M embed.h
M numeric.c
M proto.h
Log Message:
-----------
numeric.c: Make S_output_nonportable() callable from core
Instead of being internal to this file, changing its name to
Perl_output_nonportable
Commit: 62f47072c9b8176589a735cc0cd3d025b8fe7f55
https://github.com/Perl/perl5/commit/62f47072c9b8176589a735cc0cd3d025b8fe7f55
Author: Karl Williamson <[email protected]>
Date: 2026-01-15 (Thu, 15 Jan 2026)
Changed paths:
M toke.c
Log Message:
-----------
scan_num: Replace code by equivalent function call
The previous commit has made this function, long in numeric.c,
available to the rest of core. The code removed here duplicated what it
does. Two variables are now unused, and are removed.
Commit: 3b349d42ed83d69bf432207bfd80bcb9caf44e39
https://github.com/Perl/perl5/commit/3b349d42ed83d69bf432207bfd80bcb9caf44e39
Author: Karl Williamson <[email protected]>
Date: 2026-01-15 (Thu, 15 Jan 2026)
Changed paths:
M toke.c
Log Message:
-----------
scan_num: Macroize common code
This avoids repeating code snippets. It also changes things so adjacent
underscores are all absorbed at once (and warned about). That means we
no longer have to keep track of if the previous character was an
underscore, so the variable that did that is removed.
Only two checks need be done for running off either end of the buffer.
The buffer is NUL-terminated, so if we see an underscore in the current
position, the next position exists (there is a NUL there if nothing
else); and the macro that looks behind one position is called in only
one place where we haven't always parsed beyond the first character.
Compare: https://github.com/Perl/perl5/compare/2bdcfe0cb24c...3b349d42ed83
To unsubscribe from these emails, change your notification settings at
https://github.com/Perl/perl5/settings/notifications