Skip to content

ExtUtils::ParseXS: make filename hack work with linenumbers => 0 - #24663

Merged
mauke merged 1 commit into
Perl:bleadfrom
mauke:extend-eu-pxs-hack-lineno
Aug 7, 2026
Merged

ExtUtils::ParseXS: make filename hack work with linenumbers => 0#24663
mauke merged 1 commit into
Perl:bleadfrom
mauke:extend-eu-pxs-hack-lineno

Conversation

@mauke

@mauke mauke commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

We now always pipe our output through ExtUtils::ParseXS::CountLines (so we can always get the current output line number), but this should make no difference to normal output, which checks config_WantLineNumbers before actually switching to a different file with a custom #line directive. Which is to say, the documented behavior of linenumbers => 0 should remain unchanged.

Follow-up to PR #24651.


  • This set of changes does not require a perldelta entry.

We now always pipe our output through ExtUtils::ParseXS::CountLines (so
we can always get the current output line number), but this should make
no difference to normal output, which checks 'config_WantLineNumbers'
before actually switching to a different file with a custom '#line'
directive. Which is to say, the documented behavior of 'linenumbers =>
0' should remain unchanged.

Follow-up to PR Perl#24651.
@mauke
mauke merged commit 38b2d84 into Perl:blead Aug 7, 2026
34 checks passed
@mauke
mauke deleted the extend-eu-pxs-hack-lineno branch August 7, 2026 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants