Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant code that handles mg_obj of PERL_MAGIC_symtab #23138

Open
wants to merge 1 commit into
base: blead
Choose a base branch
from

Conversation

leonerd
Copy link
Contributor

@leonerd leonerd commented Mar 19, 2025

The (badly-named) PERL_MAGIC_symtab no longer uses the mg_obj field. It is only applied in one place (at time of writing, toke.c line 10711) with the obj field set to NULL. Therefore, there is no point having code in dump.c to print it if non-NULL, nor in sv.c to special-case setting a non-NULL value in sv_magicext().

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

The (badly-named) PERL_MAGIC_symtab no longer uses the `mg_obj` field.
It is only applied in one place (at time of writing, toke.c line 10711)
with the `obj` field set to NULL. Therefore, there is no point having
code in `dump.c` to print it if non-NULL, nor in `sv.c` to special-case
setting a non-NULL value in `sv_magicext()`.
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