X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmultibyte%2Finternal.h;h=53d62edaffb9e1143a3f4a2aa34758b7e215ab01;hb=e8cbe0bad4284906230a53af4c91ad2b9713d03b;hp=cc017fa27761638c1bdb97a600bf447bd7a1dfdf;hpb=9d836f444fbbf9e56155e5f2589d2bb8698c033c;p=musl diff --git a/src/multibyte/internal.h b/src/multibyte/internal.h index cc017fa2..53d62eda 100644 --- a/src/multibyte/internal.h +++ b/src/multibyte/internal.h @@ -23,3 +23,10 @@ extern const uint32_t bittab[]; #define SA 0xc2u #define SB 0xf4u + +/* Arbitrary encoding for representing code units instead of characters. */ +#define CODEUNIT(c) (0xdfff & (signed char)(c)) +#define IS_CODEUNIT(c) ((unsigned)(c)-0xdf80 < 0x80) + +/* Get inline definition of MB_CUR_MAX. */ +#include "locale_impl.h"