diff options
author | Karl Williamson <khw@cpan.org> | 2021-06-14 12:29:59 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2021-08-07 05:14:44 -0600 |
commit | 6736ce803b72875a4cb392927e8ac445ddea2626 (patch) | |
tree | a9ebf0a87fa27a0994e54393e7c66f043526cb33 /utf8.h | |
parent | 473bd7939eb908a550b65ad14bc58789d6f3b87c (diff) | |
download | perl-6736ce803b72875a4cb392927e8ac445ddea2626.tar.gz |
utf8.h: Reorder some preprocessor directives
This is just so that things are clearer to the reader
Diffstat (limited to 'utf8.h')
-rw-r--r-- | utf8.h | 24 |
1 files changed, 10 insertions, 14 deletions
@@ -87,24 +87,22 @@ the string is invariant. * some #ifdef's */ #define UTF_EBCDIC_CONTINUATION_BYTE_INFO_BITS 5 -#ifdef EBCDIC -/* The equivalent of these macros but implementing UTF-EBCDIC - are in the following header file: - */ - -#include "utfebcdic.h" - -#else /* ! EBCDIC */ -START_EXTERN_C - /* See explanation below at 'UTF8_MAXBYTES' */ #define ASCII_PLATFORM_UTF8_MAXBYTES 13 +#ifdef EBCDIC +/* The equivalent of the next few macros but implementing UTF-EBCDIC are in the + * following header file: */ +# include "utfebcdic.h" +#else /* ! EBCDIC */ +START_EXTERN_C -#ifdef DOINIT +# ifndef DOINIT +EXTCONST unsigned char PL_utf8skip[]; +# else EXTCONST unsigned char PL_utf8skip[] = { /* 0x00 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* ascii */ /* 0x10 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* ascii */ @@ -128,9 +126,7 @@ EXTCONST unsigned char PL_utf8skip[] = { /* More extended, Up to 72 bits (64-bit + reserved) */ /* 0xFF */ ASCII_PLATFORM_UTF8_MAXBYTES }; -#else -EXTCONST unsigned char PL_utf8skip[]; -#endif +# endif END_EXTERN_C |