diff options
author | David Mitchell <davem@iabyn.com> | 2018-12-26 20:50:16 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2019-02-19 13:28:12 +0000 |
commit | 3680775c4add74dd105f844256620954f5378054 (patch) | |
tree | d5f922f488e17bd7ff1a2edd04b97f3b70997e96 /globals.c | |
parent | 37137b990496477796ac4de6505577c12f281b58 (diff) | |
download | perl-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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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: */ |