Skip to content

Conversation

@khwilliamson
Copy link
Contributor

This series of commits mostly just moves code around and tidies things so that the error checking of flags in embed.fnc lines is more coherent.

It adds two checks that had been omitted. A symbol can't both be one type of macro, and another type of macro; nor public and non-public, and we don't want symbols whose names begin with S_ to be public. (We want Perl_ for those.)

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

Use the same format and similar wording for these for consistency.
By using a regex capture group we can collapse several statements
This and the next 5 commits move some error checks around to be
adjacent.  The code had gotten kind of wild.  This regularizes it.
A means there is unlimited proclaimed external visibility
C means there is unlimited reluctant external visibility, that isn't
    announced.
S means there shouldn't be external visibility because the symbol is
    static to the file declaring it.
The error message here was not very clear.  And the previous commit just
added a check ruling out both A and C being present, so the error
message no longer needs to have weasel words for that case.
Fit into 78 columns
@khwilliamson khwilliamson added the Use merge commit Don't merge this p.r. from github It contains multiple related commits. Instructions in perlgit label Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Use merge commit Don't merge this p.r. from github It contains multiple related commits. Instructions in perlgit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant