nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH 4/5] chars: speed up the determination whether s


From: Benno Schulenberg
Subject: Re: [Nano-devel] [PATCH 4/5] chars: speed up the determination whether something is a control character
Date: Sun, 05 Jun 2016 09:54:14 +0200

On Sun, Jun 5, 2016, at 09:46, Benno Schulenberg wrote:
> +     return ((c[0] & 0xE0) == 0 || c[0] == 127 ||
> +                                     (c[0] == -62 && c[1] < -96));

My question is: is it permissible to assume that variables of type char
will have values in the range -128 .. 127?  Or are there platforms where
there are treated as all postive, 0 .. 255?

Benno

-- 
http://www.fastmail.com - Accessible with your email software
                          or over the web




reply via email to

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