[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking through multibyte_char_to_unibyte

From: Andreas Schwab
Subject: Re: Looking through multibyte_char_to_unibyte
Date: Sun, 22 Jun 2014 19:39:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux)

Dmitry Antipov <address@hidden> writes:

> Looking through preprocessed src/character.c, I found the following function:
> int
> multibyte_char_to_unibyte (int c)
> {
>   if (c < 0x80)
>     return c;
>   if (((c) > 0x3FFF7F))
>     return (((c) > 0x3FFF7F) ? (c) - 0x3FFF00 : multibyte_char_to_unibyte 
> (c));
>   return (c & 0xFF);
> }
> Is this a subtle trick which I just can't understand and explain, or something
> is really wrong with this?

That's the expansion of the CHAR_BYTE8_P and CHAR_TO_BYTE8 macros.


Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]