summaryrefslogtreecommitdiff
path: root/makedef.pl
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-01-24 13:04:45 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-01-24 13:04:45 +0000
commit6f4183fe04888927cb36b966262c959c5166404b (patch)
tree32ab99da98da61a8b85e3421019af7edf6cc1fe4 /makedef.pl
parent6570f7848406340d371b9f81689299e3b739279f (diff)
downloadperl-6f4183fe04888927cb36b966262c959c5166404b.tar.gz
enable function wrappers for access to globals under MULTIPLICITY
(provides binary compatibility in the face of changes in interpreter structure) p4raw-id: //depot/perl@4878
Diffstat (limited to 'makedef.pl')
-rw-r--r--makedef.pl11
1 files changed, 3 insertions, 8 deletions
diff --git a/makedef.pl b/makedef.pl
index f640f2f2f7..1490f89b49 100644
--- a/makedef.pl
+++ b/makedef.pl
@@ -163,7 +163,7 @@ sub emit_symbols {
foreach my $symbol (@$list) {
my $skipsym = $symbol;
# XXX hack
- if ($define{PERL_OBJECT}) {
+ if ($define{PERL_OBJECT} || $define{MULTIPLICITY}) {
$skipsym =~ s/^Perl_[GIT](\w+)_ptr$/PL_$1/;
}
emit_symbol($symbol) unless exists $skip{$skipsym};
@@ -446,16 +446,11 @@ sub readvar {
return \@syms;
}
-if ($define{'USE_5005THREADS'} || $define{'MULTIPLICITY'}) {
+if ($define{'USE_5005THREADS'}) {
my $thrd = readvar($thrdvar_h);
skip_symbols $thrd;
}
-if ($define{'MULTIPLICITY'}) {
- my $interp = readvar($intrpvar_h);
- skip_symbols $interp;
-}
-
if ($define{'PERL_GLOBAL_STRUCT'}) {
my $global = readvar($perlvars_h);
skip_symbols $global;
@@ -487,7 +482,7 @@ for my $syms (@syms) {
# variables
-if ($define{'PERL_OBJECT'}) {
+if ($define{'PERL_OBJECT'} || $define{'MULTIPLICITY'}) {
for my $f ($perlvars_h, $intrpvar_h, $thrdvar_h) {
my $glob = readvar($f, sub { "Perl_" . $_[1] . $_[2] . "_ptr" });
emit_symbols $glob;