diff options
author | Aaron Crane <arc@cpan.org> | 2017-10-13 17:07:13 +0200 |
---|---|---|
committer | Aaron Crane <arc@cpan.org> | 2017-10-21 16:53:07 +0100 |
commit | 0000db226ca2999be36123959cf44b594c5c8cf9 (patch) | |
tree | f0221044ba48d2b75fbfa5bb541f62e09e16c2da /opcode.h | |
parent | 0cbb9d6e5110600ac96ca9d7544c8956082ebf0f (diff) | |
download | perl-0000db226ca2999be36123959cf44b594c5c8cf9.tar.gz |
opcode.pl: simplify cpp conditionals
This affects the generated opcode.h.
Diffstat (limited to 'opcode.h')
-rw-r--r-- | opcode.h | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -959,11 +959,9 @@ START_EXTERN_C #ifdef PERL_GLOBAL_STRUCT_INIT # define PERL_PPADDR_INITED static const Perl_ppaddr_t Gppaddr[] -#else -# ifndef PERL_GLOBAL_STRUCT -# define PERL_PPADDR_INITED +#elif !defined(PERL_GLOBAL_STRUCT) +# define PERL_PPADDR_INITED EXT Perl_ppaddr_t PL_ppaddr[] /* or perlvars.h */ -# endif #endif /* PERL_GLOBAL_STRUCT */ #if (defined(DOINIT) && !defined(PERL_GLOBAL_STRUCT)) || defined(PERL_GLOBAL_STRUCT_INIT) # define PERL_PPADDR_INITED @@ -1373,11 +1371,9 @@ EXT Perl_ppaddr_t PL_ppaddr[] /* or perlvars.h */ #ifdef PERL_GLOBAL_STRUCT_INIT # define PERL_CHECK_INITED static const Perl_check_t Gcheck[] -#else -# ifndef PERL_GLOBAL_STRUCT -# define PERL_CHECK_INITED +#elif !defined(PERL_GLOBAL_STRUCT) +# define PERL_CHECK_INITED EXT Perl_check_t PL_check[] /* or perlvars.h */ -# endif #endif #if (defined(DOINIT) && !defined(PERL_GLOBAL_STRUCT)) || defined(PERL_GLOBAL_STRUCT_INIT) # define PERL_CHECK_INITED |