tech-kern archive

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

Re: [patch] put ptrdiff_t in the kernel and create sys/stddef.h



Hi Joerg,

On Wed, Dec 4, 2013 at 12:25 PM, Joerg Sonnenberger
<joerg%britannica.bec.de@localhost> wrote:
> On Wed, Dec 04, 2013 at 12:04:23PM -0200, Lourival Vieira Neto wrote:
>> Hi Mindaugas,
>>
>> >> Here is a patch that puts ptrdiff_t in the kernel. It also creates a
>> >> sys/stddef.h header.
>> >
>> > Why sys/stddef.h?  Just keep them in sys/types.h please.
>>
>> To avoid redefining ptrdiff_t on stddef.h. I think it would be more
>> coherent, since ptrdiff_t is a stddef.h definition and stddef.h
>> shouldn't include sys/types.h.
>
> Weak reason. stddef.h must not include sys/types.h, but it doesn't mean
> they can't both define it.

I didn't state that it can't be defined by both. I just said it would
be more coherent to define it in just one place. Why it is a bad idea?

Regards,
-- 
Lourival Vieira Neto


Home | Main Index | Thread Index | Old Index