Skip to content

Commit 8df915f

Browse files
committed
utf8.c: Initialize UTF8SKIP[] with INIT(), not DOINIT
1 parent 6ea5f2d commit 8df915f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

utf8.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,7 @@ For details, see the description for L<perlapi/uv_to_utf8_flags>.
235235

236236
START_EXTERN_C
237237

238-
# ifndef DOINIT
239-
EXTCONST unsigned char PL_utf8skip[];
240-
# else
241-
EXTCONST unsigned char PL_utf8skip[] = {
238+
EXTCONST unsigned char PL_utf8skip[] INIT( {
242239
/* 0x00 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* ascii */
243240
/* 0x10 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* ascii */
244241
/* 0x20 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* ascii */
@@ -260,8 +257,7 @@ EXTCONST unsigned char PL_utf8skip[] = {
260257
/* 0xFE */ 7,
261258
/* More extended, Up to 72 bits (64-bit + reserved) */
262259
/* 0xFF */ ASCII_PLATFORM_UTF8_MAXBYTES
263-
};
264-
# endif
260+
});
265261

266262
END_EXTERN_C
267263

0 commit comments

Comments
 (0)