Skip to content

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

Open
mauke wants to merge 1 commit into
Perl:bleadfrom
mauke:extend-eu-pxs-hack-lineno
Open

ExtUtils::ParseXS: make filename hack work with linenumbers => 0#24663
mauke wants to merge 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.
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.

1 participant