[Top][All Lists]

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

Re: Suspicious code in search.c

From: Kenichi Handa
Subject: Re: Suspicious code in search.c
Date: Fri, 21 Oct 2005 11:27:21 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

In article <address@hidden>, Nick Roberts <address@hidden> writes:
> The original expression is equivalent to:

>         else if ((charset_base
>                  && (pat_end - ptr) == 1) || CHAR_HEAD_P (ptr[1]))

> I don't know which expression is right, but you've changed the logic.

Oops, you are right.  I misunderstood.  Yes, I changed the
logic and I think the change is correct.  This is the place
to check if *ptr is the last byte of a multibyte character.
It is so if *ptr is the last byte of the whole text or
ptr[1] is the first byte of a character.

Kenichi Handa

reply via email to

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