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



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.

Joerg


Home | Main Index | Thread Index | Old Index