This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move the temporary definitions for PERLVAR* macros inside #ifdef MULTIPLICITY
authorNicholas Clark <nick@ccl4.org>
Sat, 30 Apr 2011 15:10:20 +0000 (16:10 +0100)
committerNicholas Clark <nick@ccl4.org>
Sun, 12 Jun 2011 14:15:21 +0000 (16:15 +0200)
commit8c1cc0174d3700e1f36bbe55f4021b04bf11aa77
tree48a00fdc66fc6b59d583d6bb990c8ea64fff87a5
parent7c509e8a1cdc2eb305c87d3b26dce38c106b3ae2
Move the temporary definitions for PERLVAR* macros inside #ifdef MULTIPLICITY

Under MULTIPLICITY, intrpvar.h is included "early", as:

struct interpreter {
#  include "intrpvar.h"
};

with local definitions of PERLVAR{,A,I,IS,ISC} that generate output text for the
"variables" as structure members. Additionally, under PERL_GLOBAL_STRUCT
"perlvars.h" is included within struct perl_vars { ... }.

Move the definition/undefining of these 5 macros to within the
#ifdef MULTIPLICITY block, to clarify the limited intent of their scope.

Move some additional related PERL_GLOBAL_STRUCT setup to within the block.
perl.h