Re: [PATCH v2 3/7] sane-ctype.h: move sane-ctype macros from git-compat-util.h

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

 



Phillip Wood <phillip.wood123@xxxxxxxxx> writes:
> > Any specific reason for the "sane-" prefix? I think it would make more
> > sense if it was just named ctype.h: see below.
> 
> I don't have a strong opinion either way but "sane-ctype.h" makes it 
> clearer why we're doing something different to the standard library.

Ah...that's true.

> >> -extern const signed char hexval_table[256];
> > 
> > And this one has nothing to do with ctypes or sanity, but rather, what's
> > considered to be a hex character. I think we need another patch to move
> > this to hex.h.
> 
> Isn't "what's considered  to be a hex character" related to ctypes and 
> sanity though as it is used by the "sane" definition of isxdigit().
> 
> >> -#define isxdigit(x) (hexval_table[(unsigned char)(x)] != -1)
> > 
> > Same for this one.
> 
> I'd much rather keep all of our "sane" ctype replacements in one place 
> as Calvin is proposing. isxdigit() is defined in <ctype.h> so it should 
> be in our "sane" version of that header.

Good point. 



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux