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

Minor XS simplifications #122

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

JRaspass
Copy link
Contributor

Collection of XS simplifications, see each commit for details.

Also I think I've found a bug, see the first commit for details.

As per the docs, the perl_require_pv form is deprecated.

Note I think the second of these calls is actually a bug since
profile_class is a package name with colons, not a filename with
slashes. We're not currently checking ERRSV after this call so it's
probably silently failing. But such a fix is out of scope of this
commit.

Also it's probably worth moving to load_module instead as per the docs:

  It is analogous to the Perl code eval "require '$file'". It's even
  implemented that way; consider using load_module instead.
Also use an XPUSH macro to replace as explicit EXTEND.
Note hv_stores also drops the trailing hash param from its hv_store
counterpart as the hash is computed automatically at compile time.
Copy link
Member

@Tux Tux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DBI is expected to run on 5.8.0, so for these kind of changes we should heavily depend on Devel::PPPort and its reports. DBI's version of ppport.h is dbipport. My own git checkout has a symlink from the last to the first. Problem with using it is that - due to that name choice - the tool keeps suggesting to add it.
The current Devel::PPPort suggests to remove the Perl_ prefixes completely, and I tend to agree, but as this has no functional or visible change (yet), I decided to postpone that work till after the 1.644 release

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