diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-24 13:04:45 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-24 13:04:45 +0000 |
commit | 6f4183fe04888927cb36b966262c959c5166404b (patch) | |
tree | 32ab99da98da61a8b85e3421019af7edf6cc1fe4 /makedef.pl | |
parent | 6570f7848406340d371b9f81689299e3b739279f (diff) | |
download | perl-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.pl | 11 |
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; |