Skip to content

embed.pl: Add some constraints#24282

Open
khwilliamson wants to merge 2 commits intoPerl:bleadfrom
khwilliamson:more_embed_constraints
Open

embed.pl: Add some constraints#24282
khwilliamson wants to merge 2 commits intoPerl:bleadfrom
khwilliamson:more_embed_constraints

Conversation

@khwilliamson
Copy link
Contributor

I did some more grepping of the source to look for symbols that we can assume are undefined for general usage, cpan and darkpan. An example is PERL_EXT_POSIX (seeing that in the source prompted this endeavour). That symbol should only be defined when compiling the POSIX module, so any symbols created only while it is #defined, won't be visible to the outside world.

I looked for "/ \b PERL_ \w+ /x" and scanned through the list. The result are the symbols added here, which showed that 5 symbols this previously thought were visible everywhere actually aren't. So they are removed from the list.

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

PERL_EXT_RE_BUILD was listed twice.  Remove the one where it was
unconditionally set false; retaining the more flexible, hence accurate,
one.
I did some more grepping of the source to look for symbols that we can
assume are undefined for general usage, cpan and darkpan.  An example is
PERL_EXT_POSIX (seeing that in the source prompted this endeavor).  That
symbol should only be defined when compiling the POSIX module, so any
symbols created only while it is #defined, won't be visible to the
outside world.

I looked for "/ \b PERL_ \w+ /x" and scanned through the list.  The
result are the symbols added here, which showed that 5 symbols this
previously thought were visible everywhere actually aren't.  So they are
removed from the list.
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