[libvirt] [PATCH] start using c-ctype functions

Jim Meyering jim at meyering.net
Thu May 15 16:06:04 UTC 2008


"Daniel P. Berrange" <berrange at redhat.com> wrote:

> On Thu, May 15, 2008 at 05:56:57PM +0200, Jim Meyering wrote:
>>
>> >From db0ed598dfc045f3937a3629a432d2d703449f50 Mon Sep 17 00:00:00 2001
>> From: Jim Meyering <meyering at redhat.com>
>> Date: Wed, 14 May 2008 23:06:15 +0200
>> Subject: [PATCH] start using c-ctype functions
>>
>> Up to now, we've been avoiding ctype functions like isspace, isdigit, etc.
>> Now that we have the c-ctype functions, we can start using them to make
>> the code more readable with changes like these:
>
> I must have missed the previous discussion of c-ctype functions...

The first patch was discussed here:

  http://thread.gmane.org/gmane.comp.emulators.libvirt/6353

> What are the c-ctype functions and where do they come from ?  I'm guessing
> from the description, they're variants of ctype functions which are
> guarenteed to operate in the C/USASCII  locale, regardless of LANG setting.
> Are they from gnulib ?

That's right.
It's the c-ctype module.

  http://www.gnu.org/software/gnulib/MODULES.html#module=c-ctype




More information about the libvir-list mailing list