summaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2017-10-13 17:07:13 +0200
committerAaron Crane <arc@cpan.org>2017-10-21 16:53:07 +0100
commit0000db226ca2999be36123959cf44b594c5c8cf9 (patch)
treef0221044ba48d2b75fbfa5bb541f62e09e16c2da /opcode.h
parent0cbb9d6e5110600ac96ca9d7544c8956082ebf0f (diff)
downloadperl-0000db226ca2999be36123959cf44b594c5c8cf9.tar.gz
opcode.pl: simplify cpp conditionals
This affects the generated opcode.h.
Diffstat (limited to 'opcode.h')
-rw-r--r--opcode.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/opcode.h b/opcode.h
index 943daa5939..d3ff17c1a0 100644
--- a/opcode.h
+++ b/opcode.h
@@ -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