summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-10-07 20:52:28 -0600
committerKarl Williamson <khw@cpan.org>2020-10-07 21:14:54 -0600
commitea48e9f5560a3b28a1ef3698a91a5c4c30c76ecf (patch)
treee4e1a79bdd00d036f17a82933d826c26f04caa0e /perl.h
parent6f17df98e8527068a9b9b55caf1492a90a9ac340 (diff)
downloadperl-ea48e9f5560a3b28a1ef3698a91a5c4c30c76ecf.tar.gz
perl.h: Restrict to core likely to conflict macro names
This header defines symbols like N0, N1 that could easily be used innocently by some XS code for its own purposes. We shouldn't pollute the name space with names the likes of these.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 327e1b5c6b..67139f1ae1 100644
--- a/perl.h
+++ b/perl.h
@@ -5841,6 +5841,7 @@ EXTCONST U8 PL_extended_utf8_dfa_tab[] = {
* byte ones (as they are always legal) are to this state.
*/
+# if defined(PERL_CORE)
# define NUM_CLASSES 18
# define N0 0
# define N1 ((N0) + NUM_CLASSES)
@@ -6114,6 +6115,7 @@ EXTCONST U8 PL_c9_utf8_dfa_tab[] = {
/*N7*/ 1, 1, 1, 1, 1, 1, 1, 1, 1, N2, 1, 1,
};
+# endif /* defined(PERL_CORE) */
# else /* End of is DOINIT */
EXTCONST U8 PL_extended_utf8_dfa_tab[];