Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xs_version_bootcheck() must use mortals, as {new,upg}_version() can c…
…roak. It's unlikely that XS_VERSION will contain a bogus version string (for long), but the value passed in (or derived from $XS_VERSION or $VERSION) might well. For that case, without this change, temporary SVs created within xs_version_bootcheck() won't be freed (before interpreter exit).
- Loading branch information
Showing
6 changed files
with
51 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "EXTERN.h" | ||
#include "perl.h" | ||
|
||
/* We have to be in a different .xs so that we can do this: */ | ||
|
||
#undef XS_VERSION | ||
#define XS_VERSION "" | ||
#include "XSUB.h" | ||
|
||
/* This can't be "MODULE = XS::APItest" as then we get duplicate bootstraps. */ | ||
MODULE = XS::APItest::XSUB1 PACKAGE = XS::APItest::XSUB | ||
|
||
PROTOTYPES: DISABLE | ||
|
||
void | ||
XS_VERSION_empty(...) | ||
PPCODE: | ||
XS_VERSION_BOOTCHECK; | ||
XSRETURN_EMPTY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters