Date: Tue, 24 Jun 2003 22:57:04 +0400 From: Andrey Chernov <ache@nagual.pp.ru> To: Garance A Drosihn <drosih@rpi.edu> Cc: das@freebsd.org Subject: Re: scanf(3) patch for C99-conformant FP parsing Message-ID: <20030624185704.GB92022@nagual.pp.ru> In-Reply-To: <p0521063ebb1e4c770918@[128.113.24.47]> References: <20030624114418.GA58305@HAL9000.homeunix.com> <20030624124233.GA83552@nagual.pp.ru> <p0521063ebb1e4c770918@[128.113.24.47]>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 24, 2003 at 14:49:22 -0400, Garance A Drosihn wrote: > #define isdigitch(Anychar) isdigit(((int) Anychar) & 255) > #define isupperch(Anychar) isupper(((int) Anychar) & 255) > #define isxdigitch(Anychar) isdigit(((int) Anychar) & 255) > #define tolowerch(Anychar) tolower(((int) Anychar) & 255) Just (unsigned char) cast produce better code and more readable. In any case & 255 alone will be enough without needs to convert to (int) first.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030624185704.GB92022>