summaryrefslogtreecommitdiff
path: root/makedef.pl
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2015-04-17 20:38:49 +0100
committerDavid Mitchell <davem@iabyn.com>2015-04-19 18:42:00 +0100
commit1fafe688be3ff13b81d5e18b2a8766dd719ee8eb (patch)
tree20f30acb1bdcf2fb7761b3d570ac7c18630b6e5c /makedef.pl
parente7c18dde420590ee76509d2187610a43444ad069 (diff)
downloadperl-1fafe688be3ff13b81d5e18b2a8766dd719ee8eb.tar.gz
op_parent(): only exist under -DPERL_OP_PARENT
Make the function Perl_op_parent() only be present in perls built with -DPERL_OP_PARENT. Previously the function was present in all builds, but always returned NULL on non PERL_OP_PARENT builds.
Diffstat (limited to 'makedef.pl')
-rw-r--r--makedef.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/makedef.pl b/makedef.pl
index b31d8a0aa1..8a570830e2 100644
--- a/makedef.pl
+++ b/makedef.pl
@@ -421,6 +421,13 @@ unless ($define{'PERL_IMPLICIT_CONTEXT'}) {
Perl_my_cxt_index
);
}
+
+unless ($define{'PERL_OP_PARENT'}) {
+ ++$skip{$_} foreach qw(
+ Perl_op_parent
+ );
+}
+
if ($define{'NO_MATHOMS'}) {
# win32 builds happen in the win32/ subdirectory, but vms builds happen
# at the top level, so we need to look in two candidate locations for