summaryrefslogtreecommitdiff
path: root/globals.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2018-12-26 20:50:16 +0000
committerDavid Mitchell <davem@iabyn.com>2019-02-19 13:28:12 +0000
commit3680775c4add74dd105f844256620954f5378054 (patch)
treed5f922f488e17bd7ff1a2edd04b97f3b70997e96 /globals.c
parent37137b990496477796ac4de6505577c12f281b58 (diff)
downloadperl-3680775c4add74dd105f844256620954f5378054.tar.gz
regcomp.c: don't include INTERN.h
This file only needs including by globals.c; it was being included in regcomp.c too as the declarations in regcomp.h aren't included by perl.h and thus don't get pulled into globals.c. This was a confusing and hacky workaround. Instead, this commit causes globals.c to #include regcomp.h directly After this commit, only globals.c #includes INTERN.h
Diffstat (limited to 'globals.c')
-rw-r--r--globals.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/globals.c b/globals.c
index 14a53a45b4..8d6f2b1968 100644
--- a/globals.c
+++ b/globals.c
@@ -33,6 +33,13 @@
#include "perlapi.h" /* bring in PL_force_link_funcs */
+/* regcomp.h * isn't #included in perl.h, as its only included within a
+ * few specific files such as regcomp.c, regexec.c. So include it
+ * explicitly to process any data declarations within it.
+ */
+#include "regcomp.h"
+
+
/*
* ex: set ts=8 sts=4 sw=4 et:
*/