This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove CALL_FPTR and CPERLscope.
authorBen Morrow <ben@morrow.me.uk>
Sat, 14 Aug 2010 01:07:09 +0000 (02:07 +0100)
committerJan Dubois <jand@activestate.com>
Sat, 21 Aug 2010 01:34:09 +0000 (18:34 -0700)
commit16c915390a3e066a7c2c13fac10d8dd8ebfea0c6
treea6b0edcad061ae27097b6ba19e535af2fa232ffb
parentd88e091f660036722622a815efa9ef3779605ea6
Remove CALL_FPTR and CPERLscope.

These are left from PERL_OBJECT, which was an implementation of
multiplicity using C++ objects. PERL_OBJECT was removed in 5.8, but the
macros seem to have been cargo-culted all over the core (including in
places where they would have been inappropriate originally). Since they
now do exactly nothing, it's cleaner to remove them.

I have left the definitions in perl.h, under #ifndef PERL_CORE, since
some CPAN XS code uses them (also often incorrectly). I have also left
STATIC alone, since it seems potentially more useful and is much more
ingrained.

The only appearance of these macros this patch doesn't touch is in
Devel-PPPort, because that's a CPAN module.
15 files changed:
dist/threads-shared/shared.xs
dump.c
mg.c
mg.h
op.c
op.h
perl.c
perl.h
pod/perlhack.pod
pp_ctl.c
pp_hot.c
run.c
sv.c
sv.h
toke.c