From 8df915f5caa02ccb5cccd6f94b2f03e3ed47172d Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 20 Sep 2025 12:37:14 -0600 Subject: [PATCH] utf8.c: Initialize UTF8SKIP[] with INIT(), not DOINIT --- utf8.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/utf8.h b/utf8.h index c4262d77df..24cad99c82 100644 --- a/utf8.h +++ b/utf8.h @@ -235,10 +235,7 @@ For details, see the description for L. START_EXTERN_C -# ifndef DOINIT -EXTCONST unsigned char PL_utf8skip[]; -# else -EXTCONST unsigned char PL_utf8skip[] = { +EXTCONST unsigned char PL_utf8skip[] INIT( { /* 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 */ /* 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[] = { /* 0xFE */ 7, /* More extended, Up to 72 bits (64-bit + reserved) */ /* 0xFF */ ASCII_PLATFORM_UTF8_MAXBYTES -}; -# endif +}); END_EXTERN_C