This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/6] vfprintf: Introduce THOUSANDS_SEP_T


On 03/03/2015 02:59 AM, Paul Eggert wrote:
> Florian Weimer wrote:
>>   # define INT_T        int
>> +typedef const char *THOUSANDS_SEP_T;
> 
> A nit: if the name's not a macro, I'd keep it lower-case.  Upper-case is
> for shouting "WATCH OUT! I LOOK LIKE A NORMAL NAME, BUT I ACTUALLY AM A
> MACRO!"

In this case, I was more going for âcareful, this depends on whether you
are in the wide variant or notâ (like CHAR_T).  I agree with you that we
should avoid the preprocessor if possible, so I used a typedef.

-- 
Florian Weimer / Red Hat Product Security


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]