diff options
author | Karl Williamson <khw@cpan.org> | 2020-10-07 20:52:28 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-10-07 21:14:54 -0600 |
commit | ea48e9f5560a3b28a1ef3698a91a5c4c30c76ecf (patch) | |
tree | e4e1a79bdd00d036f17a82933d826c26f04caa0e /perl.h | |
parent | 6f17df98e8527068a9b9b55caf1492a90a9ac340 (diff) | |
download | perl-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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[]; |